aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/calendar/TumblerDelegate.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/calendar/TumblerDelegate.qml')
-rw-r--r--examples/quick/calendar/TumblerDelegate.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/quick/calendar/TumblerDelegate.qml b/examples/quick/calendar/TumblerDelegate.qml
index dcfb83e4..e9c7a143 100644
--- a/examples/quick/calendar/TumblerDelegate.qml
+++ b/examples/quick/calendar/TumblerDelegate.qml
@@ -40,11 +40,12 @@
import QtQuick 2.6
import QtQuick.Controls 2.0
+import QtQuick.Templates 2.0 as T
Text {
text: isNaN(modelData) ? modelData : modelData + 1
color: "#666666"
- opacity: 0.4 + Math.max(0, 1 - Math.abs(AbstractTumbler.displacement)) * 0.6
+ opacity: 0.4 + Math.max(0, 1 - Math.abs(T.Tumbler.displacement)) * 0.6
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter