summaryrefslogtreecommitdiffstats
path: root/examples/qml-compositor
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-05-25 12:41:29 +0200
committerSamuel Rødal <samuel.rodal@nokia.com>2011-05-25 12:41:29 +0200
commit9e5eaeb1a46c86eddf45a4a9c2d03beb1244cce3 (patch)
tree6a71188347dfbe0f70d60e1c6f903ca11c5dc5c0 /examples/qml-compositor
parent2cec8572e9d440f2e750089e168b6cbcd946ad2f (diff)
Added default background.jpg for qml compositor.
Used the one from demos/embeddeddialogs in Qt.
Diffstat (limited to 'examples/qml-compositor')
-rw-r--r--examples/qml-compositor/background.jpgbin0 -> 30730 bytes
-rw-r--r--examples/qml-compositor/qml-compositor.qrc2
-rw-r--r--examples/qml-compositor/qml/QmlCompositor/main.qml3
3 files changed, 3 insertions, 2 deletions
diff --git a/examples/qml-compositor/background.jpg b/examples/qml-compositor/background.jpg
new file mode 100644
index 000000000..445567fbd
--- /dev/null
+++ b/examples/qml-compositor/background.jpg
Binary files differ
diff --git a/examples/qml-compositor/qml-compositor.qrc b/examples/qml-compositor/qml-compositor.qrc
index 602681a6e..0dc86580c 100644
--- a/examples/qml-compositor/qml-compositor.qrc
+++ b/examples/qml-compositor/qml-compositor.qrc
@@ -1,7 +1,7 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
+ <file>background.jpg</file>
<file>qml/QmlCompositor/main.qml</file>
- <file>qml/QmlCompositor/background.jpg</file>
<file>qml/QmlCompositor/compositor.js</file>
<file>qml/QmlCompositor/ShaderEffect.qml</file>
<file>qml/QmlCompositor/WindowChrome.qml</file>
diff --git a/examples/qml-compositor/qml/QmlCompositor/main.qml b/examples/qml-compositor/qml/QmlCompositor/main.qml
index a82327f8e..8cb92e4da 100644
--- a/examples/qml-compositor/qml/QmlCompositor/main.qml
+++ b/examples/qml-compositor/qml/QmlCompositor/main.qml
@@ -50,7 +50,8 @@ Item {
Image {
id: background
anchors.fill: parent
- source: "background.jpg"
+ fillMode: Image.Tile
+ source: "../../background.jpg"
smooth: true
}