summaryrefslogtreecommitdiffstats
path: root/examples/declarative/tutorials/samegame/samegame4
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-11-05 06:56:14 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-11-05 06:56:14 (GMT)
commit01d7ae66da344f9aaef039310ac241015ec4cad5 (patch)
tree1a139bf43529f8900264f6f6eff2bdf384353684 /examples/declarative/tutorials/samegame/samegame4
parenta1f47211146629f702457150235da4475c1163ed (diff)
downloadQt-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 'examples/declarative/tutorials/samegame/samegame4')
-rw-r--r--examples/declarative/tutorials/samegame/samegame4/content/Button.qml2
-rw-r--r--examples/declarative/tutorials/samegame/samegame4/samegame.qml2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/tutorials/samegame/samegame4/content/Button.qml b/examples/declarative/tutorials/samegame/samegame4/content/Button.qml
index 2354218..9e515e0 100644
--- a/examples/declarative/tutorials/samegame/samegame4/content/Button.qml
+++ b/examples/declarative/tutorials/samegame/samegame4/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/examples/declarative/tutorials/samegame/samegame4/samegame.qml b/examples/declarative/tutorials/samegame/samegame4/samegame.qml
index e519912..89dc945 100644
--- a/examples/declarative/tutorials/samegame/samegame4/samegame.qml
+++ b/examples/declarative/tutorials/samegame/samegame4/samegame.qml
@@ -7,7 +7,7 @@ Rectangle {
Script { source: "content/samegame.js" }
- SystemPalette { id: activePalette; colorGroup: Qt.Active }
+ SystemPalette { id: activePalette }
Item {
width: parent.width; anchors.top: parent.top; anchors.bottom: ToolBar.top