diff options
| author | J-P Nurmi <jpnurmi@digia.com> | 2013-05-27 19:57:46 +0200 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-27 20:38:35 +0200 |
| commit | d0eadc7b164d2f00cd19885907d57a4e1aa02d4b (patch) | |
| tree | c466fe210bf2bd7922de3778bd04fea6bd5e3a4c /examples | |
| parent | 2f2933a2975d86bfb33e2250a03b2414fc207a09 (diff) | |
| download | qtquickcontrols-d0eadc7b164d2f00cd19885907d57a4e1aa02d4b.tar.gz | |
ButtonStyle: expose styleData.hovered
Change-Id: I8f977a171ea18420e326b79181d634eeb43b1de8
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/quick/controls/gallery/content/Styles.qml | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/examples/quick/controls/gallery/content/Styles.qml b/examples/quick/controls/gallery/content/Styles.qml index a65f3024..01b2646f 100644 --- a/examples/quick/controls/gallery/content/Styles.qml +++ b/examples/quick/controls/gallery/content/Styles.qml @@ -172,17 +172,13 @@ Item { // Style delegates: property Component buttonStyle: ButtonStyle { - panel: Rectangle { + background: Rectangle { implicitHeight: 20 implicitWidth: 100 color: control.pressed ? "darkGray" : "lightGray" antialiasing: true border.color: "gray" radius: height/2 - Text { - anchors.centerIn: parent - text: control.text - } } } @@ -220,21 +216,21 @@ Item { } property Component progressbarStyle: ProgressBarStyle { - panel: Rectangle { + background: Rectangle { implicitWidth: 100 implicitHeight: 20 color: "#f0f0f0" border.color: "gray" antialiasing: true radius: height/2 - Rectangle { - implicitWidth: 100 - implicitHeight: 20 - color: "#f0f0f0" - border.color: "gray" - antialiasing: true - radius: height/2 - } + } + progress: Rectangle { + implicitWidth: 100 + implicitHeight: 20 + color: "#c0c0c0" + border.color: "gray" + antialiasing: true + radius: height/2 } } |
