aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorSamuel Ghinet <samuel.ghinet@qt.io>2021-11-19 14:25:54 +0200
committerSamuel Ghinet <samuel.ghinet@qt.io>2021-11-22 12:37:28 +0000
commit4c36e157af974a046de408e65183eefc1fa49ab4 (patch)
tree1ce392a5357ef58fc24bb538aa5e469b6df21140 /share
parent470beadce134687c4c57d689a69d6685d75abadd (diff)
QDS New Project dialog: capitalize the first letter of the Project Name
Capitalize the first letter of the project name When the user finished editing. Change-Id: I7222bbd9a13d275fa13028cdc24cfd781c7a791f Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'share')
-rw-r--r--share/qtcreator/qmldesigner/newprojectdialog/imports/NewProjectDialog/Details.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/newprojectdialog/imports/NewProjectDialog/Details.qml b/share/qtcreator/qmldesigner/newprojectdialog/imports/NewProjectDialog/Details.qml
index 7399db6914..9c4f259648 100644
--- a/share/qtcreator/qmldesigner/newprojectdialog/imports/NewProjectDialog/Details.qml
+++ b/share/qtcreator/qmldesigner/newprojectdialog/imports/NewProjectDialog/Details.qml
@@ -73,6 +73,10 @@ Item {
color: DialogValues.textColor
selectByMouse: true
+ onEditingFinished: {
+ text = text.charAt(0).toUpperCase() + text.slice(1)
+ }
+
font.pixelSize: DialogValues.paneTitlePixelSize
}