diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-05 00:47:53 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-05 00:47:53 (GMT) |
commit | 757733f4a5698ec87072031996e6025a51ce1648 (patch) | |
tree | b12e7a6c508a3d7e372556286097e41d4f0307ea /demos/declarative/samegame/content/Dialog.qml | |
parent | 7474ad656269aec1352d166bb5a4435086d48482 (diff) | |
parent | 8aabb79ccde7502eb82aae5ce614b37c6789bc1f (diff) | |
download | Qt-757733f4a5698ec87072031996e6025a51ce1648.zip Qt-757733f4a5698ec87072031996e6025a51ce1648.tar.gz Qt-757733f4a5698ec87072031996e6025a51ce1648.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qml into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/qt-qml: (3309 commits)
Add some painting benchmarks.
Make sure cookies are saved.
Fix headers::licenseCheck autotest failure
Re-add accidentally deleted file
Test SizeItemToLoader to SizeLoaderToItem resizeMode change.
Document QmlContext ownership.
Add bug note.
Fix elision and multilength strings when resizing a Text element.
Document calling C++ methods from QML.
Document margins property
Augment documentation
doc: There is no easeNone, it is called easeLinear
doc: Converted the basic types page to use \qmlbasictype
Focus focusScope from focusing for focusOnPress
Really run image reader in its own thread.
Don't create one QNetworkAccessManager per XMLHttpRequest
We use JavaScript, not ECMAScript.
XMLHttpRequest redirection
update Image.paintedWidth and Image.paintedHeight when the source changes
Remove debug.
...
Diffstat (limited to 'demos/declarative/samegame/content/Dialog.qml')
-rw-r--r-- | demos/declarative/samegame/content/Dialog.qml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/demos/declarative/samegame/content/Dialog.qml b/demos/declarative/samegame/content/Dialog.qml new file mode 100644 index 0000000..f9a281a --- /dev/null +++ b/demos/declarative/samegame/content/Dialog.qml @@ -0,0 +1,21 @@ +import Qt 4.6 + +Rectangle { + id: page + function forceClose() { + page.closed(); + page.opacity = 0; + } + function show(txt) { + myText.text = txt; + page.opacity = 1; + } + signal closed(); + color: "white"; border.width: 1; width: myText.width + 20; height: myText.height + 40; + opacity: 0 + opacity: Behavior { + NumberAnimation { duration: 1000 } + } + Text { id: myText; anchors.centerIn: parent; text: "Hello World!" } + MouseRegion { id: mr; anchors.fill: parent; onClicked: forceClose(); } +} |