summaryrefslogtreecommitdiff
path: root/components/custom/Slider.qml
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@nokia.com>2011-03-02 14:26:40 +0100
committerJens Bache-Wiig <jens.bache-wiig@nokia.com>2011-03-02 14:28:06 +0100
commit259c6e5e754a9fd45737a47e2e84ca7add334b5b (patch)
tree34691e79f2be0ffd26c5c5c3e0ff0aa46a313dc9 /components/custom/Slider.qml
parent5604df2a798012065a0a9aaea99873cb60a5035f (diff)
downloadqtquickcontrols-259c6e5e754a9fd45737a47e2e84ca7add334b5b.tar.gz
Clean up custom components and remove things that are
not needed for desktop.
Diffstat (limited to 'components/custom/Slider.qml')
-rw-r--r--components/custom/Slider.qml17
1 files changed, 7 insertions, 10 deletions
diff --git a/components/custom/Slider.qml b/components/custom/Slider.qml
index 55d39ea1..6797e6e0 100644
--- a/components/custom/Slider.qml
+++ b/components/custom/Slider.qml
@@ -26,7 +26,6 @@
import QtQuick 1.0
import "../plugin"
-import "./styles/default" as DefaultStyles
Item {
id: slider
@@ -53,8 +52,8 @@ Item {
property color progressColor: palette.highlight
property color backgroundColor: palette.window
- property int leftMargin: defaultStyle.leftMargin
- property int rightMargin: defaultStyle.rightMargin
+ property int leftMargin: 0
+ property int rightMargin: 0
// EXTENSIONS
// Indicate that we want animations in the Slider, people customizing should
@@ -73,13 +72,13 @@ Item {
return Math.round(v);
}
- property int minimumWidth: defaultStyle.minimumWidth
- property int minimumHeight: defaultStyle.minimumHeight
+ property int minimumWidth: 0
+ property int minimumHeight: 0
// Hooks for customizing the pieces of the slider
- property Component groove: defaultStyle.groove
- property Component handle: defaultStyle.handle
- property Component valueIndicator: defaultStyle.valueIndicator
+ property Component groove: null
+ property Component handle: null
+ property Component valueIndicator: null
// PRIVATE/CONVENIENCE
property bool _isVertical: orientation == Qt.Vertical
@@ -87,8 +86,6 @@ Item {
width: _isVertical ? minimumHeight : minimumWidth
height: _isVertical ? minimumWidth : minimumHeight
- DefaultStyles.SliderStyle { id: defaultStyle }
-
// This is a template slider, so every piece can be modified by passing a
// different Component. The main elements in the implementation are
//