diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-02-23 03:58:24 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-02-23 03:59:03 (GMT) |
commit | e988763395625171bed001b5916d4da003d39aee (patch) | |
tree | 008820b362fc196e878d1022f2f1d56059ac2e7d /doc | |
parent | 7828b564d6d857307aa13e273045ac7b82fec046 (diff) | |
download | Qt-e988763395625171bed001b5916d4da003d39aee.zip Qt-e988763395625171bed001b5916d4da003d39aee.tar.gz Qt-e988763395625171bed001b5916d4da003d39aee.tar.bz2 |
Doc.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/declarative/advtutorial1.qdoc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/src/declarative/advtutorial1.qdoc b/doc/src/declarative/advtutorial1.qdoc index 2c99819..e7f4f1a 100644 --- a/doc/src/declarative/advtutorial1.qdoc +++ b/doc/src/declarative/advtutorial1.qdoc @@ -51,20 +51,20 @@ Here is the QML code for the basic elements. The game window: \snippet declarative/tutorials/samegame/samegame1/samegame.qml 0 -This gives you a basic game window, with room for the game canvas. A new game -button and room to display the score. The one thing you may not recognize here +This gives you a basic game window, with room for the game canvas, a new game +button and room to display the score. One thing you may not recognize here is the \l SystemPalette item. This item provides access to the Qt system palette and is used to make the button look more like a system button (for exact native -feel you would use a \l QPushButton). Since we want a fully functional button, -we use the QML elements Text and MouseArea inside a Rectangle to assemble a -button. Below is the code which we wrote to do this: +feel you would use a \l QPushButton). In this case we've created our own custom +Button element using the QML elements Text and MouseArea inside a Rectangle. +Below is the code which we wrote to do this (Button.qml): \snippet declarative/tutorials/samegame/samegame1/Button.qml 0 Note that this Button component was written to be fairly generic, in case we want to use a similarly styled button later. -And here is a simple block: +And here is a simple block (Block.qml): \snippet declarative/tutorials/samegame/samegame1/Block.qml 0 |