From 20cbf4d34b5256e28139b15875f67d2ffdd3f279 Mon Sep 17 00:00:00 2001 From: Pranta Dastider Date: Wed, 4 Jan 2023 16:33:38 +0100 Subject: [PATCH] QmlDesigner: Update Tooltips for Component Section This patch update tooltip text for Componemt Section fields. Fixes: QDS-8724 Change-Id: Id3fed9163c4ad6e61b762a5760cd5f2d7c079183 Reviewed-by: Mats Honkamaa Reviewed-by: Thomas Hartmann --- .../imports/HelperWidgets/ComponentSection.qml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ComponentSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ComponentSection.qml index b61c15cece2..0196000cee3 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ComponentSection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ComponentSection.qml @@ -19,7 +19,10 @@ Section { property bool showState: false SectionLayout { - PropertyLabel { text: qsTr("Type") } + PropertyLabel { + text: qsTr("Type") + tooltip: qsTr("Sets the QML type of the component.") + } SecondColumnLayout { z: 2 @@ -44,7 +47,7 @@ Section { typeLineEdit.visible = !typeLineEdit.visible typeLineEdit.forceActiveFocus() } - tooltip: qsTr("Changes the type of this component.") + tooltip: qsTr("Sets the QML type of the component.") enabled: !modelNodeBackend.multiSelection } @@ -83,7 +86,10 @@ Section { ExpandingSpacer {} } - PropertyLabel { text: qsTr("ID") } + PropertyLabel { + text: qsTr("ID") + tooltip: qsTr("Sets a unique identification or name.") + } SecondColumnLayout { Spacer { implicitWidth: StudioTheme.Values.actionIndicatorWidth } @@ -167,7 +173,10 @@ Section { ExpandingSpacer {} } - PropertyLabel { text: qsTr("Name") } + PropertyLabel { + text: qsTr("Name") + tooltip: qsTr("Adds a note with a title to explain the component.") + } SecondColumnLayout { enabled: !modelNodeBackend.multiSelection @@ -247,6 +256,7 @@ Section { PropertyLabel { visible: root.showState text: qsTr("State") + tooltip: qsTr("Sets the state of the component.") } SecondColumnLayout {