summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Palettes/Slide/SlideView.qml
diff options
context:
space:
mode:
authorMahmoud Badri <mahmoud.badri@qt.io>2019-02-28 12:31:57 +0200
committerMahmoud Badri <mahmoud.badri@qt.io>2019-03-04 12:06:32 +0000
commitd365c795bb03e7650dc095068bf02599101e274f (patch)
tree02e563cf3e69542962a9386b9c193f6dac1ce2ee /src/Authoring/Studio/Palettes/Slide/SlideView.qml
parentbddb943092efb0cc59f90109d4f6bfbbdad77bfc (diff)
Implement variant tags slide view tooltipv2.3.0-beta2
Task-number: QT3DS-3114 Change-Id: I9003913ab919ad53ae0ec1e4192f41772fb4141f Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Janne Kangas <janne.kangas@qt.io> Reviewed-by: Antti Määttä <antti.maatta@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Palettes/Slide/SlideView.qml')
-rw-r--r--src/Authoring/Studio/Palettes/Slide/SlideView.qml16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/Authoring/Studio/Palettes/Slide/SlideView.qml b/src/Authoring/Studio/Palettes/Slide/SlideView.qml
index 4113c947..93865fa3 100644
--- a/src/Authoring/Studio/Palettes/Slide/SlideView.qml
+++ b/src/Authoring/Studio/Palettes/Slide/SlideView.qml
@@ -270,8 +270,20 @@ Rectangle {
verticalAlignment: Text.AlignVCenter
background: Rectangle { color:"#111111" }
wrapMode: Text.WordWrap
- visible: model.variants !== ""
- text: model.variants
+ visible: model.variants !== undefined && model.variants !== ""
+ text: model.variants ? model.variants : ""
+
+ MouseArea {
+ anchors.fill: parent
+ hoverEnabled: true
+ onEntered: {
+ _parentView.showVariantsTooltip(
+ model.index, mapToGlobal(x + width + 2, y));
+ }
+ onExited : {
+ _parentView.hideVariantsTooltip();
+ }
+ }
}
Item {