diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-05-25 13:26:41 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-05-25 13:26:41 (GMT) |
commit | 77e5ced3e6b4c1c5ef05684de736bf4939dbe115 (patch) | |
tree | 857a01da09d69df0ed87f730534cac92a8e5a0e8 /examples/declarative | |
parent | 55664a0ef4b88b67c9931c7d2f6853e5fa0a9716 (diff) | |
parent | fbfdb18e246f5e22f1252471be67182ff1acfe36 (diff) | |
download | Qt-77e5ced3e6b4c1c5ef05684de736bf4939dbe115.zip Qt-77e5ced3e6b4c1c5ef05684de736bf4939dbe115.tar.gz Qt-77e5ced3e6b4c1c5ef05684de736bf4939dbe115.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml:
Remove old symbian specific IAP initialization.
Revert "Reading/writing a non-existent property throws an exception"
Revert "Always pass context to QObject script class"
Always pass context to QObject script class
Reading/writing a non-existent property throws an exception
Fix
geolocation (untested)
Doc
License header.
Example of a simple TextEditor look-and-feel.
Fix benchmark warnings on symbian.
Fix TextEdit implicit height.
Integrate some QML examples and demos into qtdemo
Fix typo
Diffstat (limited to 'examples/declarative')
-rw-r--r-- | examples/declarative/animation/easing/easing.qml | 2 | ||||
-rwxr-xr-x | examples/declarative/modelviews/webview/content/Mapping/map.html | 8 | ||||
-rw-r--r-- | examples/declarative/toys/README | 2 | ||||
-rw-r--r-- | examples/declarative/toys/tic-tac-toe/tic-tac-toe.qml | 1 | ||||
-rw-r--r-- | examples/declarative/ui-components/README | 39 | ||||
-rw-r--r-- | examples/declarative/ui-components/dialcontrol/content/Dial.qml (renamed from examples/declarative/toys/dial-example/content/Dial.qml) | 0 | ||||
-rw-r--r-- | examples/declarative/ui-components/dialcontrol/content/background.png (renamed from examples/declarative/toys/dial-example/content/background.png) | bin | 35876 -> 35876 bytes | |||
-rw-r--r-- | examples/declarative/ui-components/dialcontrol/content/needle.png (renamed from examples/declarative/toys/dial-example/content/needle.png) | bin | 342 -> 342 bytes | |||
-rw-r--r-- | examples/declarative/ui-components/dialcontrol/content/needle_shadow.png (renamed from examples/declarative/toys/dial-example/content/needle_shadow.png) | bin | 632 -> 632 bytes | |||
-rw-r--r-- | examples/declarative/ui-components/dialcontrol/content/overlay.png (renamed from examples/declarative/toys/dial-example/content/overlay.png) | bin | 3564 -> 3564 bytes | |||
-rw-r--r-- | examples/declarative/ui-components/dialcontrol/dial.qmlproject (renamed from examples/declarative/toys/dial-example/dial.qmlproject) | 0 | ||||
-rw-r--r-- | examples/declarative/ui-components/dialcontrol/dialcontrol.qml (renamed from examples/declarative/toys/dial-example/dial-example.qml) | 0 | ||||
-rw-r--r-- | examples/declarative/ui-components/flipable/flipable.qml (renamed from examples/declarative/ui-components/flipable/flipable-example.qml) | 0 | ||||
-rw-r--r-- | examples/declarative/ui-components/progressbar/main.qml (renamed from examples/declarative/ui-components/progressbar/progressbars.qml) | 0 | ||||
-rw-r--r-- | examples/declarative/ui-components/scrollbar/main.qml (renamed from examples/declarative/ui-components/scrollbar/display.qml) | 0 | ||||
-rw-r--r-- | examples/declarative/ui-components/tabwidget/main.qml (renamed from examples/declarative/ui-components/tabwidget/tabs.qml) | 0 |
16 files changed, 49 insertions, 3 deletions
diff --git a/examples/declarative/animation/easing/easing.qml b/examples/declarative/animation/easing/easing.qml index 9180252..9cdbad1 100644 --- a/examples/declarative/animation/easing/easing.qml +++ b/examples/declarative/animation/easing/easing.qml @@ -76,7 +76,7 @@ Rectangle { ListElement { name: "Easing.InOutCirc"; type: Easing.InOutCirc; ballColor: "RosyBrown" } ListElement { name: "Easing.OutInCirc"; type: Easing.OutInCirc; ballColor: "SandyBrown" } ListElement { name: "Easing.InElastic"; type: Easing.InElastic; ballColor: "DarkGoldenRod" } - ListElement { name: "Easing.InElastic"; type: Easing.OutElastic; ballColor: "Chocolate" } + ListElement { name: "Easing.OutElastic"; type: Easing.OutElastic; ballColor: "Chocolate" } ListElement { name: "Easing.InOutElastic"; type: Easing.InOutElastic; ballColor: "SaddleBrown" } ListElement { name: "Easing.OutInElastic"; type: Easing.OutInElastic; ballColor: "Brown" } ListElement { name: "Easing.InBack"; type: Easing.InBack; ballColor: "Maroon" } diff --git a/examples/declarative/modelviews/webview/content/Mapping/map.html b/examples/declarative/modelviews/webview/content/Mapping/map.html index a8726fd..a98da54 100755 --- a/examples/declarative/modelviews/webview/content/Mapping/map.html +++ b/examples/declarative/modelviews/webview/content/Mapping/map.html @@ -25,6 +25,14 @@ } else { goToLatLng(new google.maps.LatLng(window.qml.lat,window.qml.lng)); } + if (navigator.geolocation) { + navigator.geolocation.getCurrentPosition(function(position) { + initialLocation = new google.maps.LatLng(position.coords.latitude,position.coords.longitude); + window.qml.lat = initialLocation.lat; + window.qml.lng = initialLocation.lng; + goToLatLng(initialLocation); + }); + } } function goToAddress() { if (geocoder) { diff --git a/examples/declarative/toys/README b/examples/declarative/toys/README index 7fd7eb0..ff4d024 100644 --- a/examples/declarative/toys/README +++ b/examples/declarative/toys/README @@ -1,4 +1,4 @@ -These pure QML examples create complete components to demonstrate +These pure QML examples demonstrate some of what can be easily done using just a few QML files. The example launcher provided with Qt can be used to explore each of the diff --git a/examples/declarative/toys/tic-tac-toe/tic-tac-toe.qml b/examples/declarative/toys/tic-tac-toe/tic-tac-toe.qml index 707add7..76a6a3b 100644 --- a/examples/declarative/toys/tic-tac-toe/tic-tac-toe.qml +++ b/examples/declarative/toys/tic-tac-toe/tic-tac-toe.qml @@ -50,7 +50,6 @@ Item { width: 440 height: 480 - anchors.fill: parent Image { id: boardimage diff --git a/examples/declarative/ui-components/README b/examples/declarative/ui-components/README new file mode 100644 index 0000000..7eecec1 --- /dev/null +++ b/examples/declarative/ui-components/README @@ -0,0 +1,39 @@ +With Qt Declarative, it is easy to implement the UI components that you need +in exactly the way that you want. These examples demonstrate this by creating +a selection of user interface components where the look and feel has been +completely defined in a QML file. + +The example launcher provided with Qt can be used to explore each of the +examples in this directory. But most can also be viewed directly with the +QML viewer utility, without requiring compilation. + +Documentation for these examples can be found via the Tutorials and Examples +link in the main Qt documentation. + + +Finding the Qt Examples and Demos launcher +========================================== + +On Windows: + +The launcher can be accessed via the Windows Start menu. Select the menu +entry entitled "Qt Examples and Demos" entry in the submenu containing +the Qt tools. + +On Mac OS X: + +For the binary distribution, the qtdemo executable is installed in the +/Developer/Applications/Qt directory. For the source distribution, it is +installed alongside the other Qt tools on the path specified when Qt is +configured. + +On Unix/Linux: + +The qtdemo executable is installed alongside the other Qt tools on the path +specified when Qt is configured. + +On all platforms: + +The source code for the launcher can be found in the demos/qtdemo directory +in the Qt package. This example is built at the same time as the Qt libraries, +tools, examples, and demonstrations. diff --git a/examples/declarative/toys/dial-example/content/Dial.qml b/examples/declarative/ui-components/dialcontrol/content/Dial.qml index 2b421bf..2b421bf 100644 --- a/examples/declarative/toys/dial-example/content/Dial.qml +++ b/examples/declarative/ui-components/dialcontrol/content/Dial.qml diff --git a/examples/declarative/toys/dial-example/content/background.png b/examples/declarative/ui-components/dialcontrol/content/background.png Binary files differindex 75d555d..75d555d 100644 --- a/examples/declarative/toys/dial-example/content/background.png +++ b/examples/declarative/ui-components/dialcontrol/content/background.png diff --git a/examples/declarative/toys/dial-example/content/needle.png b/examples/declarative/ui-components/dialcontrol/content/needle.png Binary files differindex 2d19f75..2d19f75 100644 --- a/examples/declarative/toys/dial-example/content/needle.png +++ b/examples/declarative/ui-components/dialcontrol/content/needle.png diff --git a/examples/declarative/toys/dial-example/content/needle_shadow.png b/examples/declarative/ui-components/dialcontrol/content/needle_shadow.png Binary files differindex 8d8a928..8d8a928 100644 --- a/examples/declarative/toys/dial-example/content/needle_shadow.png +++ b/examples/declarative/ui-components/dialcontrol/content/needle_shadow.png diff --git a/examples/declarative/toys/dial-example/content/overlay.png b/examples/declarative/ui-components/dialcontrol/content/overlay.png Binary files differindex 3860a7b..3860a7b 100644 --- a/examples/declarative/toys/dial-example/content/overlay.png +++ b/examples/declarative/ui-components/dialcontrol/content/overlay.png diff --git a/examples/declarative/toys/dial-example/dial.qmlproject b/examples/declarative/ui-components/dialcontrol/dial.qmlproject index d4909f8..d4909f8 100644 --- a/examples/declarative/toys/dial-example/dial.qmlproject +++ b/examples/declarative/ui-components/dialcontrol/dial.qmlproject diff --git a/examples/declarative/toys/dial-example/dial-example.qml b/examples/declarative/ui-components/dialcontrol/dialcontrol.qml index 95df68c..95df68c 100644 --- a/examples/declarative/toys/dial-example/dial-example.qml +++ b/examples/declarative/ui-components/dialcontrol/dialcontrol.qml diff --git a/examples/declarative/ui-components/flipable/flipable-example.qml b/examples/declarative/ui-components/flipable/flipable.qml index 479e35b..479e35b 100644 --- a/examples/declarative/ui-components/flipable/flipable-example.qml +++ b/examples/declarative/ui-components/flipable/flipable.qml diff --git a/examples/declarative/ui-components/progressbar/progressbars.qml b/examples/declarative/ui-components/progressbar/main.qml index 22f8dbd..22f8dbd 100644 --- a/examples/declarative/ui-components/progressbar/progressbars.qml +++ b/examples/declarative/ui-components/progressbar/main.qml diff --git a/examples/declarative/ui-components/scrollbar/display.qml b/examples/declarative/ui-components/scrollbar/main.qml index 1f7992b..1f7992b 100644 --- a/examples/declarative/ui-components/scrollbar/display.qml +++ b/examples/declarative/ui-components/scrollbar/main.qml diff --git a/examples/declarative/ui-components/tabwidget/tabs.qml b/examples/declarative/ui-components/tabwidget/main.qml index e11902a..e11902a 100644 --- a/examples/declarative/ui-components/tabwidget/tabs.qml +++ b/examples/declarative/ui-components/tabwidget/main.qml |