diff options
author | Henrik Hartz <henrik.hartz@nokia.com> | 2010-02-18 11:16:28 (GMT) |
---|---|---|
committer | Henrik Hartz <henrik.hartz@nokia.com> | 2010-02-18 11:16:28 (GMT) |
commit | 21df89dae6c0646ec5066efaea0ec2986c7c4588 (patch) | |
tree | 93c6e3947455b99898e6a9e2aeb4c60fbf9b9ef6 /doc | |
parent | 22f5b45d63d5977dbb1207aeb0f5013223e8e7f5 (diff) | |
download | Qt-21df89dae6c0646ec5066efaea0ec2986c7c4588.zip Qt-21df89dae6c0646ec5066efaea0ec2986c7c4588.tar.gz Qt-21df89dae6c0646ec5066efaea0ec2986c7c4588.tar.bz2 |
Doc: reformulate why we build a button
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/declarative/advtutorial1.qdoc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/src/declarative/advtutorial1.qdoc b/doc/src/declarative/advtutorial1.qdoc index 86d14ad..09645fd 100644 --- a/doc/src/declarative/advtutorial1.qdoc +++ b/doc/src/declarative/advtutorial1.qdoc @@ -55,8 +55,9 @@ 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 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 QML button, and QML does -not include a button, we had to write our own. Below is the code which we wrote to do this: +feel you would use a \l QPushButton). Since we want a fully functional button, +we use the QML elements Text and MouseRegion inside a Rectangle to assemble a +button. Below is the code which we wrote to do this: \snippet declarative/tutorials/samegame/samegame1/Button.qml 0 |