aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/studiowelcome/qml
diff options
context:
space:
mode:
authorHenning Gruendl <henning.gruendl@qt.io>2021-04-16 16:25:45 +0200
committerThomas Hartmann <thomas.hartmann@qt.io>2021-04-16 14:54:43 +0000
commite6c28a7844cd5d798cf74d56c5906e6354cbbc01 (patch)
tree4da0ca4e736d9f1e6fadae1d181c8c35b147231c /src/plugins/studiowelcome/qml
parent1f2b0cbf3997b85c1c36c9acf0f29375ba27e815 (diff)
QmlDesigner: Fix ProjectsGrid delegate MouseArea
Task-number: QDS-4193 Change-Id: I68897288a75f864f5d361c41b52cf6e888f91bce Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/plugins/studiowelcome/qml')
-rw-r--r--src/plugins/studiowelcome/qml/welcomepage/HoverOverDesaturate.qml5
-rw-r--r--src/plugins/studiowelcome/qml/welcomepage/ProjectsGrid.qml6
2 files changed, 6 insertions, 5 deletions
diff --git a/src/plugins/studiowelcome/qml/welcomepage/HoverOverDesaturate.qml b/src/plugins/studiowelcome/qml/welcomepage/HoverOverDesaturate.qml
index a7d7501a52..8386f7939d 100644
--- a/src/plugins/studiowelcome/qml/welcomepage/HoverOverDesaturate.qml
+++ b/src/plugins/studiowelcome/qml/welcomepage/HoverOverDesaturate.qml
@@ -29,6 +29,7 @@ import welcome 1.0
import StudioFonts 1.0
Item {
+ id: root
visible: true
width: 270
height: 175
@@ -37,6 +38,8 @@ Item {
property alias downloadIcon: downloadCloud.visible
+ signal clicked()
+
onVisibleChanged: {
animateOpacity.start()
animateScale.start()
@@ -92,6 +95,8 @@ Item {
label.color = "#686868"
}
+ onClicked: root.clicked()
+
Image {
id: downloadCloud
x: 210
diff --git a/src/plugins/studiowelcome/qml/welcomepage/ProjectsGrid.qml b/src/plugins/studiowelcome/qml/welcomepage/ProjectsGrid.qml
index 6a18d10ded..099c123ecf 100644
--- a/src/plugins/studiowelcome/qml/welcomepage/ProjectsGrid.qml
+++ b/src/plugins/studiowelcome/qml/welcomepage/ProjectsGrid.qml
@@ -40,6 +40,7 @@ GridView {
imageSource: typeof(thumbnail) === "undefined" ? "images/thumbnail_test.png" : thumbnail;
labelText: displayName
downloadIcon: typeof(showDownload) === "undefined" ? false : showDownload;
+ onClicked: root.itemSelected(index, root.model.get(index))
SequentialAnimation {
id: animation
@@ -62,10 +63,5 @@ GridView {
easing.type: Easing.InOutExpo
}
}
-
- MouseArea {
- anchors.fill: parent
- onClicked: root.itemSelected(index, root.model.get(index))
- }
}
}