diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-13 23:05:26 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-13 23:05:26 (GMT) |
commit | a5e9e86a6daddde6fb906cbf09bf562e50b17698 (patch) | |
tree | 18e1fbc22574ae2168500349a04f758d91a37c8e /examples/declarative/dial/dial-example.qml | |
parent | c46c06d363b7c90fecd84e7ef333ffa449f1d71c (diff) | |
parent | a15c2d6ba9c2da1c709fbb23d0c07ad51450d93e (diff) | |
download | Qt-a5e9e86a6daddde6fb906cbf09bf562e50b17698.zip Qt-a5e9e86a6daddde6fb906cbf09bf562e50b17698.tar.gz Qt-a5e9e86a6daddde6fb906cbf09bf562e50b17698.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: (26 commits)
Remove warning on ASCII cast
Fix compilation on Solaris, AIX and HP-UX.
Speed up borderimage test.
Exclude webview examples when compiled without webview
Fix test
Use SRCDIR to make examples test work with shadow builds.
Example fixes
Improve efficiency of model dataChanged.
Optimize some autotests
Fix test (run with -qws on QWS).
Stabilize behaviors test.
Struct -> class because class is better.
Move effect property where it should be.
Tweak tests to run in parallel
Network-related test fails on the rare occasion
Fix code style in examples
Make demo code more consistent with example code in terms of variable
Fix score from previous change
Doc improvements
Fix example code style
...
Diffstat (limited to 'examples/declarative/dial/dial-example.qml')
-rw-r--r-- | examples/declarative/dial/dial-example.qml | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/examples/declarative/dial/dial-example.qml b/examples/declarative/dial/dial-example.qml index 1ca958a..fd899a5 100644 --- a/examples/declarative/dial/dial-example.qml +++ b/examples/declarative/dial/dial-example.qml @@ -6,26 +6,35 @@ Rectangle { width: 300; height: 300 // Dial with a slider to adjust it - Dial { id: dial; anchors.centerIn: parent; value: slider.x *100 / (container.width - 34) } + Dial { + id: dial + anchors.centerIn: parent + value: slider.x * 100 / (container.width - 34) + } Rectangle { id: container - anchors.bottom: parent.bottom; anchors.bottomMargin: 10 - anchors.left: parent.left; anchors.leftMargin: 20 - anchors.right: parent.right; anchors.rightMargin: 20; height: 16 + anchors { bottom: parent.bottom; left: parent.left; right: parent.right; leftMargin: 20; rightMargin: 20; bottomMargin: 10 } + height: 16 + + radius: 8 + opacity: 0.7 + smooth: true gradient: Gradient { GradientStop { position: 0.0; color: "gray" } GradientStop { position: 1.0; color: "white" } } - radius: 8; opacity: 0.7; smooth: true + Rectangle { id: slider x: 1; y: 1; width: 30; height: 14 - radius: 6; smooth: true + radius: 6 + smooth: true gradient: Gradient { GradientStop { position: 0.0; color: "#424242" } GradientStop { position: 1.0; color: "black" } } + MouseArea { anchors.fill: parent drag.target: parent; drag.axis: "XAxis"; drag.minimumX: 2; drag.maximumX: container.width - 32 |