summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/planets-qml/StyledSlider.qml
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2020-06-19 20:25:20 +0100
committerMike Krus <mike.krus@kdab.com>2020-06-25 07:19:28 +0100
commitd285e73c634df20f680b2661be6b20ba32e9335a (patch)
treefff62abe5cacd16a9f2c1abf56b5ea57e7c75c05 /examples/qt3d/planets-qml/StyledSlider.qml
parentd788bcd6fd1b28994f467433b1486ac759952348 (diff)
Update examples
Not all work Change-Id: I7954f9fe41160c929ff48f8bdeae635b900fef33 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/qt3d/planets-qml/StyledSlider.qml')
-rw-r--r--examples/qt3d/planets-qml/StyledSlider.qml35
1 files changed, 1 insertions, 34 deletions
diff --git a/examples/qt3d/planets-qml/StyledSlider.qml b/examples/qt3d/planets-qml/StyledSlider.qml
index 6694d136e..69b0cc218 100644
--- a/examples/qt3d/planets-qml/StyledSlider.qml
+++ b/examples/qt3d/planets-qml/StyledSlider.qml
@@ -49,42 +49,9 @@
****************************************************************************/
import QtQuick 2.0
-import QtQuick.Controls 1.2
-import QtQuick.Controls.Styles 1.3
+import QtQuick.Controls 2.0
Slider {
id: styledSlider
-
- style: SliderStyle {
- groove: Rectangle {
- implicitWidth: 200
- implicitHeight: 5
- color: "#5d5b59"
- Rectangle {
- anchors.verticalCenter: parent.verticalCenter
- width: styleData.handlePosition
- height: 5
- gradient: Gradient {
- GradientStop { position: 0.0; color: "#80c342" }
- GradientStop { position: 1.0; color: "#328930" }
- }
- }
- }
- handle: Rectangle {
- Rectangle {
- anchors.centerIn: parent
- color: "#aeadac"
- border.color: "#1e1b18"
- border.width: 1
- implicitWidth: 8
- implicitHeight: 20
- }
- anchors.centerIn: parent
- color: "transparent"
- border.width: 0
- implicitWidth: 50
- implicitHeight: 50
- }
- }
}