diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2018-09-05 13:23:47 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2018-09-05 10:31:40 +0000 |
commit | b75a1c4afda43917dfb694178dac8717b8b7c35e (patch) | |
tree | cbcf3c49b69df04f1c20434250b7595d7504a2d4 /src/Authoring/Studio | |
parent | ef967b211331f7a45f9f49e9eadc3e49ee95da11 (diff) |
Add tooltip for inspector buttons
Added tooltips for property animation and data input buttons.
Task-number: QT3DS-2266
Change-Id: Ia366c176fb51821a13dcfcc8c3d3efe6f3b52d6d
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/Authoring/Studio')
-rw-r--r-- | src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml index 5fae9904..e91aa5a5 100644 --- a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml +++ b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml @@ -191,8 +191,10 @@ Rectangle { } MouseArea { + id: animateButtonMouseArea anchors.fill: parent acceptedButtons: Qt.RightButton | Qt.LeftButton + hoverEnabled: true onClicked: { if (mouse.button === Qt.LeftButton) { _inspectorModel.setPropertyAnimated( @@ -207,6 +209,11 @@ Rectangle { } } } + StyledTooltip { + text: qsTr("Enable animation") + enabled: animateButtonMouseArea.containsMouse + } + } } StyledLabel { // Property label @@ -223,7 +230,7 @@ Rectangle { Layout.alignment: Qt.AlignTop MouseArea { - id: mouseArea + id: propertyLabelMouseArea anchors.fill: parent acceptedButtons: Qt.RightButton hoverEnabled: true @@ -235,7 +242,7 @@ Rectangle { StyledTooltip { id: valueToolTip text: modelData.toolTip - enabled: mouseArea.containsMouse + enabled: propertyLabelMouseArea.containsMouse } } } @@ -249,7 +256,7 @@ Rectangle { visible: model.modelData.controllable MouseArea { - id: mousearea + id: dataInputButtonMouseArea anchors.fill: parent acceptedButtons: Qt.RightButton | Qt.LeftButton hoverEnabled: true @@ -280,6 +287,10 @@ Rectangle { : "Objects-DataInput-Disabled.png") } } + StyledTooltip { + text: qsTr("Select Data Input control") + enabled: dataInputButtonMouseArea.containsMouse + } } StyledLabel { id: dataInputName @@ -435,7 +446,6 @@ Rectangle { } MouseArea { - id: mouseAreaX anchors.fill: parent property int clickedPos preventStealing: true |