summaryrefslogtreecommitdiff
path: root/src/tutorials/TooltipArea.qml
diff options
context:
space:
mode:
authorBrian Munro <brian.alexander.munro@gmail.com>2017-10-24 06:18:00 +0200
committerGitHub <noreply@github.com>2017-10-24 06:18:00 +0200
commit126f8deb55b64a17ba3acb677fd4283532855551 (patch)
tree8b6cb71a669fdb8dc7546e46863f12cb8216fdb7 /src/tutorials/TooltipArea.qml
parent03608230acd0faa7d5fefdc11c75713a0b6c733e (diff)
parentf0f2112c1562ae123b0cd1f0b2f4f542322f2937 (diff)
Merge pull request #106 from Silarn/mainline_dev
Updates for tutorials and nexus description links
Diffstat (limited to 'src/tutorials/TooltipArea.qml')
-rw-r--r--src/tutorials/TooltipArea.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tutorials/TooltipArea.qml b/src/tutorials/TooltipArea.qml
index 48a50f76..8d404beb 100644
--- a/src/tutorials/TooltipArea.qml
+++ b/src/tutorials/TooltipArea.qml
@@ -1,4 +1,4 @@
-import QtQuick 1.1
+import QtQuick 2.7
Rectangle {
radius: 2
@@ -17,7 +17,7 @@ Rectangle {
anchors.fill: parent
hoverEnabled: true
- onMousePositionChanged: {
+ onPositionChanged: {
if (parent.parent.width - (parent.x + mouseX) < tooltip.width + 50) {
tooltip.x = parent.x + mouseX - 15 - tooltip.width
} else {