diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-07-15 04:02:27 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-07-15 04:02:27 (GMT) |
commit | d9a46ef84fcf5b460cb69d9b27c81e6bd6e0a685 (patch) | |
tree | 4be56bcf9496666e70d5d2b2a7ef92c1b1a68fe8 /examples | |
parent | 7d49812197294dc0cb33e1ad0bd2d56e3557040a (diff) | |
parent | 68e47e91af6edca3c714cc3258b65dd88c0ee1e4 (diff) | |
download | Qt-d9a46ef84fcf5b460cb69d9b27c81e6bd6e0a685.zip Qt-d9a46ef84fcf5b460cb69d9b27c81e6bd6e0a685.tar.gz Qt-d9a46ef84fcf5b460cb69d9b27c81e6bd6e0a685.tar.bz2 |
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui-gv
Conflicts:
src/declarative/canvas/qsimplecanvas.cpp
src/declarative/canvas/qsimplecanvasdebugplugin.cpp
src/declarative/canvas/qsimplecanvasdebugplugin_p.h
src/declarative/fx/qfxpainteditem.cpp
src/declarative/util/qfxview.cpp
tools/qmlviewer/qmlviewer.h
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/loader/Button.qml | 14 | ||||
-rw-r--r-- | examples/declarative/modules/builtin-version.qml | 3 | ||||
-rw-r--r-- | examples/declarative/modules/installed-qualified.qml | 4 | ||||
-rw-r--r-- | examples/declarative/modules/installed-version.qml | 7 | ||||
-rw-r--r-- | examples/declarative/modules/installed.qml | 2 | ||||
-rw-r--r-- | examples/declarative/modules/local-qualified.qml | 7 | ||||
-rw-r--r-- | examples/declarative/modules/local.qml | 2 | ||||
-rw-r--r-- | examples/declarative/modules/remote-qualified.qml | 4 | ||||
-rw-r--r-- | examples/declarative/modules/remote-zipped.qml | 4 | ||||
-rw-r--r-- | examples/declarative/modules/wrong-installed-version.qml | 2 | ||||
-rw-r--r-- | examples/declarative/modules/wrong-installed.qml | 3 | ||||
-rw-r--r-- | examples/declarative/modules/wrong-local-qualified.qml | 4 | ||||
-rw-r--r-- | examples/declarative/modules/wrong-local.qml | 6 | ||||
-rw-r--r-- | examples/declarative/modules/zipped-qualified.qml | 5 | ||||
-rw-r--r-- | examples/declarative/modules/zipped.qml | 5 |
15 files changed, 72 insertions, 0 deletions
diff --git a/examples/declarative/loader/Button.qml b/examples/declarative/loader/Button.qml new file mode 100644 index 0000000..3efedc4 --- /dev/null +++ b/examples/declarative/loader/Button.qml @@ -0,0 +1,14 @@ +Rect { + id: Container + + property var text + signal clicked + + height: Text.height + 10 + width: Text.width + 20 + pen.width: 1 + radius: 4 + color: "grey" + MouseRegion { anchors.fill: parent; onClicked: Container.clicked() } + Text { id: Text; anchors.centeredIn:parent; font.size: 10; text: parent.text } +} diff --git a/examples/declarative/modules/builtin-version.qml b/examples/declarative/modules/builtin-version.qml new file mode 100644 index 0000000..78eb860 --- /dev/null +++ b/examples/declarative/modules/builtin-version.qml @@ -0,0 +1,3 @@ +import com.nokia.Qt 4.7 +Rect {} +// and later... SuperRect{} diff --git a/examples/declarative/modules/installed-qualified.qml b/examples/declarative/modules/installed-qualified.qml new file mode 100644 index 0000000..c3217cf --- /dev/null +++ b/examples/declarative/modules/installed-qualified.qml @@ -0,0 +1,4 @@ +import com.nokia.Foo as F +Item { + F.Bar { } +} diff --git a/examples/declarative/modules/installed-version.qml b/examples/declarative/modules/installed-version.qml new file mode 100644 index 0000000..4ba9a2b --- /dev/null +++ b/examples/declarative/modules/installed-version.qml @@ -0,0 +1,7 @@ +import com.nokia.Foo 1.6 +import com.nokia.Foo 1.7 as NewFoo +VerticalLayout { + Bar { } + Baz { } + NewFoo.Bar { } +} diff --git a/examples/declarative/modules/installed.qml b/examples/declarative/modules/installed.qml new file mode 100644 index 0000000..4ce5f76 --- /dev/null +++ b/examples/declarative/modules/installed.qml @@ -0,0 +1,2 @@ +import com.nokia.Foo +Foo.Bar { } diff --git a/examples/declarative/modules/local-qualified.qml b/examples/declarative/modules/local-qualified.qml new file mode 100644 index 0000000..36af092 --- /dev/null +++ b/examples/declarative/modules/local-qualified.qml @@ -0,0 +1,7 @@ +import "local" as X +import "local/SubLib" as Y + +VerticalLayout { + X.Foo { } + Y.Bar { } +} diff --git a/examples/declarative/modules/local.qml b/examples/declarative/modules/local.qml new file mode 100644 index 0000000..70c90df --- /dev/null +++ b/examples/declarative/modules/local.qml @@ -0,0 +1,2 @@ +import "local" +Foo { } diff --git a/examples/declarative/modules/remote-qualified.qml b/examples/declarative/modules/remote-qualified.qml new file mode 100644 index 0000000..d807af7 --- /dev/null +++ b/examples/declarative/modules/remote-qualified.qml @@ -0,0 +1,4 @@ +import "http://qml.nokia.com/Clock.zip" +Item { + Clock.Hand { ... } +} diff --git a/examples/declarative/modules/remote-zipped.qml b/examples/declarative/modules/remote-zipped.qml new file mode 100644 index 0000000..aee838f --- /dev/null +++ b/examples/declarative/modules/remote-zipped.qml @@ -0,0 +1,4 @@ +import "http://qml.nokia.com/Clock.zip" +Item { + Clock { ... } +} diff --git a/examples/declarative/modules/wrong-installed-version.qml b/examples/declarative/modules/wrong-installed-version.qml new file mode 100644 index 0000000..3d2e3e5 --- /dev/null +++ b/examples/declarative/modules/wrong-installed-version.qml @@ -0,0 +1,2 @@ +import com.nokia.Foo 1.5 +Baz { } // Not available in 1.5, only 1.6! diff --git a/examples/declarative/modules/wrong-installed.qml b/examples/declarative/modules/wrong-installed.qml new file mode 100644 index 0000000..b0f2355 --- /dev/null +++ b/examples/declarative/modules/wrong-installed.qml @@ -0,0 +1,3 @@ +import com.nokia.NonExistent + +Rect {} diff --git a/examples/declarative/modules/wrong-local-qualified.qml b/examples/declarative/modules/wrong-local-qualified.qml new file mode 100644 index 0000000..92cbbf3 --- /dev/null +++ b/examples/declarative/modules/wrong-local-qualified.qml @@ -0,0 +1,4 @@ +import "local" as X + +// WRONG: if imported qualified, must qualify +Foo { } diff --git a/examples/declarative/modules/wrong-local.qml b/examples/declarative/modules/wrong-local.qml new file mode 100644 index 0000000..6cb00c4 --- /dev/null +++ b/examples/declarative/modules/wrong-local.qml @@ -0,0 +1,6 @@ +import "local" + +// WRONG - cannot use qualification to access "local sublibraries". +// (would have to import lib.SubLib) +SubLib.Bar { +} diff --git a/examples/declarative/modules/zipped-qualified.qml b/examples/declarative/modules/zipped-qualified.qml new file mode 100644 index 0000000..101df14 --- /dev/null +++ b/examples/declarative/modules/zipped-qualified.qml @@ -0,0 +1,5 @@ +// Not currently supported +import "zips/ClockPack.zip" as CP +Item { + CP.Clock { ... } +} diff --git a/examples/declarative/modules/zipped.qml b/examples/declarative/modules/zipped.qml new file mode 100644 index 0000000..9a0775c --- /dev/null +++ b/examples/declarative/modules/zipped.qml @@ -0,0 +1,5 @@ +// Not currently supported +import "zips/ClockPack.zip" +Item { + Clock { ... } +} |