diff options
author | Bernd Weimer <bernd.weimer@pelagicore.com> | 2018-02-08 11:17:24 +0100 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2018-02-08 11:11:06 +0000 |
commit | 12dc27d97b20c026ce86ec419942e791d27290af (patch) | |
tree | 62632c356e684ad8b01aabc80b64e93a54b74319 | |
parent | 8df633d8195f16221ca348d527ab8671142f7426 (diff) |
Update minidesk example
Since Qt5.8 and older are not supported any more, the "onPressed"
workaround could be removed.
Used ApplicationInterface.icon which was added some time ago instead
of hard coded string.
Change-Id: I2a5a283d8cded5b7f2113068116867439e602063
Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
-rw-r--r-- | examples/minidesk/apps/tld.minidesk.app1/app1.qml | 4 | ||||
-rw-r--r-- | examples/minidesk/apps/tld.minidesk.app2/app2.qml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/minidesk/apps/tld.minidesk.app1/app1.qml b/examples/minidesk/apps/tld.minidesk.app1/app1.qml index 452cd169..f7797a91 100644 --- a/examples/minidesk/apps/tld.minidesk.app1/app1.qml +++ b/examples/minidesk/apps/tld.minidesk.app1/app1.qml @@ -63,7 +63,7 @@ ApplicationManagerWindow { color: "peru" Image { - source: "icon.png" + source: ApplicationInterface.icon anchors.centerIn: parent } @@ -74,7 +74,7 @@ ApplicationManagerWindow { MouseArea { anchors.fill: parent - onPressed: { // onClicked: see QTBUG-60725 + onClicked: { if (rotation.paused) { rotation.resume(); } else { diff --git a/examples/minidesk/apps/tld.minidesk.app2/app2.qml b/examples/minidesk/apps/tld.minidesk.app2/app2.qml index 790a6b12..88b1f745 100644 --- a/examples/minidesk/apps/tld.minidesk.app2/app2.qml +++ b/examples/minidesk/apps/tld.minidesk.app2/app2.qml @@ -58,7 +58,7 @@ ApplicationManagerWindow { Image { anchors.centerIn: parent - source: "icon.png" + source: ApplicationInterface.icon MouseArea { anchors.fill: parent |