diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-11-05 06:56:14 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-11-05 06:56:14 (GMT) |
commit | 01d7ae66da344f9aaef039310ac241015ec4cad5 (patch) | |
tree | 1a139bf43529f8900264f6f6eff2bdf384353684 /demos | |
parent | a1f47211146629f702457150235da4475c1163ed (diff) | |
download | Qt-01d7ae66da344f9aaef039310ac241015ec4cad5.zip Qt-01d7ae66da344f9aaef039310ac241015ec4cad5.tar.gz Qt-01d7ae66da344f9aaef039310ac241015ec4cad5.tar.bz2 |
Use darker() and lighter() functions from global Qt object rather than from SystemPalette.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/declarative/calculator/CalcButton.qml | 2 | ||||
-rw-r--r-- | demos/declarative/calculator/calculator.qml | 2 | ||||
-rw-r--r-- | demos/declarative/samegame/content/Button.qml | 2 | ||||
-rw-r--r-- | demos/declarative/samegame/samegame.qml | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/demos/declarative/calculator/CalcButton.qml b/demos/declarative/calculator/CalcButton.qml index c2e3a81..03ede9c 100644 --- a/demos/declarative/calculator/CalcButton.qml +++ b/demos/declarative/calculator/CalcButton.qml @@ -9,7 +9,7 @@ Rectangle { id: button; width: 50; height: 30 border.color: palette.mid; radius: 6 gradient: Gradient { - GradientStop { id: G1; position: 0.0; color: palette.lighter(palette.button) } + GradientStop { id: G1; position: 0.0; color: Qt.lighter(palette.button) } GradientStop { id: G2; position: 1.0; color: palette.button } } diff --git a/demos/declarative/calculator/calculator.qml b/demos/declarative/calculator/calculator.qml index 8041025..18ee5b9 100644 --- a/demos/declarative/calculator/calculator.qml +++ b/demos/declarative/calculator/calculator.qml @@ -3,7 +3,7 @@ import Qt 4.6 Rectangle { width: 320; height: 270; color: palette.window - SystemPalette { id: palette; colorGroup: Qt.Active } + SystemPalette { id: palette } Script { source: "calculator.js" } Column { diff --git a/demos/declarative/samegame/content/Button.qml b/demos/declarative/samegame/content/Button.qml index 301124e..63cd555 100644 --- a/demos/declarative/samegame/content/Button.qml +++ b/demos/declarative/samegame/content/Button.qml @@ -8,7 +8,7 @@ Rectangle { color: activePalette.button; smooth: true width: txtItem.width + 20; height: txtItem.height + 6 - border.width: 1; border.color: activePalette.darker(activePalette.button); radius: 8; + border.width: 1; border.color: Qt.darker(activePalette.button); radius: 8; gradient: Gradient { GradientStop { diff --git a/demos/declarative/samegame/samegame.qml b/demos/declarative/samegame/samegame.qml index 4560b56..19b929f 100644 --- a/demos/declarative/samegame/samegame.qml +++ b/demos/declarative/samegame/samegame.qml @@ -5,7 +5,7 @@ Rectangle { id: screen width: 490; height: 720 - SystemPalette { id: activePalette; colorGroup: Qt.Active } + SystemPalette { id: activePalette } Item { width: parent.width; anchors.top: parent.top; anchors.bottom: toolBar.top |