diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2015-03-06 11:52:10 +0100 |
---|---|---|
committer | Jari-Pekka Nurmi <jpnurmi@theqtcompany.com> | 2015-03-11 01:06:44 +0200 |
commit | a3921bcf01275425350c9c153fe92086a34d1403 (patch) | |
tree | 1c5c4dd36e9d19a36281bde723c7bf989bc70298 /examples/quick/controls/drawer | |
parent | e9398b7465c7df38876d0c6528ea5c42bbd8bf6a (diff) |
Implement Style as an attached property
Change-Id: I006ee566647e31d1a14919d164d7dd68539aae10
Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'examples/quick/controls/drawer')
-rw-r--r-- | examples/quick/controls/drawer/main.qml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/quick/controls/drawer/main.qml b/examples/quick/controls/drawer/main.qml index df46577b..8ab67829 100644 --- a/examples/quick/controls/drawer/main.qml +++ b/examples/quick/controls/drawer/main.qml @@ -53,7 +53,7 @@ ApplicationWindow { id: content anchors.fill: parent anchors.margins: -1 - border.color: window.style.frameColor + border.color: Style.frameColor Image { width: window.width / 2 @@ -98,13 +98,13 @@ ApplicationWindow { model: VisualItemModel { Label { text: "Settings" - x: window.style.padding - width: parent.width - window.style.padding * 2 + x: Style.padding + width: parent.width - Style.padding * 2 lineHeight: 2.0 - color: window.style.accentColor + color: Style.accentColor verticalAlignment: Text.AlignVCenter } - Rectangle { width: parent.width; height: 1; color: window.style.frameColor } + Rectangle { width: parent.width; height: 1; color: Style.frameColor } Switch { id: dim text: "Dim" @@ -113,7 +113,7 @@ ApplicationWindow { layoutDirection: Qt.RightToLeft enabled: effect.current != uncover } - Rectangle { width: parent.width; height: 1; color: window.style.frameColor } + Rectangle { width: parent.width; height: 1; color: Style.frameColor } RadioButton { id: overlay text: "Overlay" @@ -136,14 +136,14 @@ ApplicationWindow { Exclusive.group: effect layoutDirection: Qt.RightToLeft } - Rectangle { width: parent.width; height: 1; color: window.style.frameColor } + Rectangle { width: parent.width; height: 1; color: Style.frameColor } } Rectangle { z: -1 anchors.fill: parent anchors.topMargin: -1 anchors.bottomMargin: -1 - border.color: window.style.frameColor + border.color: Style.frameColor } transform: Translate { |