summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-10-30 03:42:42 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-10-30 03:42:42 (GMT)
commit05eecba3c6550a625f1d56a28d31677e69b7cd57 (patch)
tree4919d9464eb722ccfc996d4c6796b12ae6c33841
parentaccd6aafb042c1081d975c9b284139494b056a4b (diff)
parentf37e9d787bd418d8f75997a8d46c1c42e842c673 (diff)
downloadQt-05eecba3c6550a625f1d56a28d31677e69b7cd57.zip
Qt-05eecba3c6550a625f1d56a28d31677e69b7cd57.tar.gz
Qt-05eecba3c6550a625f1d56a28d31677e69b7cd57.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
-rw-r--r--examples/declarative/connections/connections.qml9
-rw-r--r--examples/declarative/connections/content/Button.qml (renamed from examples/declarative/connections/Button.qml)0
-rw-r--r--examples/declarative/connections/content/bg1.jpg (renamed from examples/declarative/connections/bg1.jpg)bin23771 -> 23771 bytes
-rw-r--r--examples/declarative/connections/content/rotate-left.png (renamed from examples/declarative/connections/rotate-left.png)bin3061 -> 3061 bytes
-rw-r--r--examples/declarative/connections/content/rotate-right.png (renamed from examples/declarative/connections/rotate-right.png)bin3115 -> 3115 bytes
-rw-r--r--examples/declarative/dynamic/dynamic.qml11
-rw-r--r--examples/declarative/dynamic/qml/Button.qml (renamed from examples/declarative/dynamic/Button.qml)2
-rw-r--r--examples/declarative/dynamic/qml/GenericItem.qml (renamed from examples/declarative/dynamic/GenericItem.qml)0
-rw-r--r--examples/declarative/dynamic/qml/PaletteItem.qml (renamed from examples/declarative/dynamic/PaletteItem.qml)0
-rw-r--r--examples/declarative/dynamic/qml/PerspectiveItem.qml (renamed from examples/declarative/dynamic/PerspectiveItem.qml)0
-rw-r--r--examples/declarative/dynamic/qml/Sun.qml (renamed from examples/declarative/dynamic/Sun.qml)4
-rw-r--r--examples/declarative/dynamic/qml/itemCreation.js (renamed from examples/declarative/dynamic/itemCreation.js)1
12 files changed, 15 insertions, 12 deletions
diff --git a/examples/declarative/connections/connections.qml b/examples/declarative/connections/connections.qml
index 5dc211e..07f71bb 100644
--- a/examples/declarative/connections/connections.qml
+++ b/examples/declarative/connections/connections.qml
@@ -1,7 +1,8 @@
import Qt 4.6
+import "content"
Rectangle {
- id: window; color: "#343434"
+ id: window; color: "#646464"
width: 640; height: 480
function turnLeft() {
@@ -12,16 +13,16 @@ Rectangle {
}
Image {
- id: image; source: "bg1.jpg"; anchors.centerIn: parent; transformOrigin: Item.Center
+ id: image; source: "content/bg1.jpg"; anchors.centerIn: parent; transformOrigin: Item.Center
rotation: Behavior { NumberAnimation { easing: "easeOutCubic"; duration: 300 } }
}
Button {
- id: leftButton; image: "rotate-left.png"
+ id: leftButton; image: "content/rotate-left.png"
anchors { left: parent.left; bottom: parent.bottom; leftMargin: 10; bottomMargin: 10 }
}
Button {
- id: rightButton; image: "rotate-right.png"
+ id: rightButton; image: "content/rotate-right.png"
anchors { right: parent.right; bottom: parent.bottom; rightMargin: 10; bottomMargin: 10 }
}
diff --git a/examples/declarative/connections/Button.qml b/examples/declarative/connections/content/Button.qml
index 1d46acc..1d46acc 100644
--- a/examples/declarative/connections/Button.qml
+++ b/examples/declarative/connections/content/Button.qml
diff --git a/examples/declarative/connections/bg1.jpg b/examples/declarative/connections/content/bg1.jpg
index dfc7cee..dfc7cee 100644
--- a/examples/declarative/connections/bg1.jpg
+++ b/examples/declarative/connections/content/bg1.jpg
Binary files differ
diff --git a/examples/declarative/connections/rotate-left.png b/examples/declarative/connections/content/rotate-left.png
index c30387e..c30387e 100644
--- a/examples/declarative/connections/rotate-left.png
+++ b/examples/declarative/connections/content/rotate-left.png
Binary files differ
diff --git a/examples/declarative/connections/rotate-right.png b/examples/declarative/connections/content/rotate-right.png
index 1b05674..1b05674 100644
--- a/examples/declarative/connections/rotate-right.png
+++ b/examples/declarative/connections/content/rotate-right.png
Binary files differ
diff --git a/examples/declarative/dynamic/dynamic.qml b/examples/declarative/dynamic/dynamic.qml
index 9bfab0e..0166b4c 100644
--- a/examples/declarative/dynamic/dynamic.qml
+++ b/examples/declarative/dynamic/dynamic.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import "qml"
Item {
id: window
@@ -71,26 +72,26 @@ Item {
PaletteItem{
anchors.verticalCenter: parent.verticalCenter
file: "Sun.qml";
- image: "images/sun.png"
+ image: "../images/sun.png"
}
PaletteItem{
file: "GenericItem.qml"
- image: "images/moon.png"
+ image: "../images/moon.png"
}
PaletteItem{
anchors.verticalCenter: parent.verticalCenter
file: "PerspectiveItem.qml"
- image: "images/tree_s.png"
+ image: "../images/tree_s.png"
}
PaletteItem{
anchors.verticalCenter: parent.verticalCenter
file: "PerspectiveItem.qml"
- image: "images/rabbit_brown.png"
+ image: "../images/rabbit_brown.png"
}
PaletteItem{
anchors.verticalCenter: parent.verticalCenter
file: "PerspectiveItem.qml"
- image: "images/rabbit_bw.png"
+ image: "../images/rabbit_bw.png"
}
}
Text{ text: "Active Suns: " + activeSuns }
diff --git a/examples/declarative/dynamic/Button.qml b/examples/declarative/dynamic/qml/Button.qml
index 0b8b6db..2769cd8 100644
--- a/examples/declarative/dynamic/Button.qml
+++ b/examples/declarative/dynamic/qml/Button.qml
@@ -10,7 +10,7 @@ Rectangle {
height: text.height + 10
width: text.width + 20
border.width: 1
- radius: 4
+ radius: 4; smooth: true
gradient: Gradient {
GradientStop { position: 0.0;
color: if(!mr.pressed){activePalette.light;}else{activePalette.button;}
diff --git a/examples/declarative/dynamic/GenericItem.qml b/examples/declarative/dynamic/qml/GenericItem.qml
index 10e3dba..10e3dba 100644
--- a/examples/declarative/dynamic/GenericItem.qml
+++ b/examples/declarative/dynamic/qml/GenericItem.qml
diff --git a/examples/declarative/dynamic/PaletteItem.qml b/examples/declarative/dynamic/qml/PaletteItem.qml
index bb6036d..bb6036d 100644
--- a/examples/declarative/dynamic/PaletteItem.qml
+++ b/examples/declarative/dynamic/qml/PaletteItem.qml
diff --git a/examples/declarative/dynamic/PerspectiveItem.qml b/examples/declarative/dynamic/qml/PerspectiveItem.qml
index 9e09dd2..9e09dd2 100644
--- a/examples/declarative/dynamic/PerspectiveItem.qml
+++ b/examples/declarative/dynamic/qml/PerspectiveItem.qml
diff --git a/examples/declarative/dynamic/Sun.qml b/examples/declarative/dynamic/qml/Sun.qml
index a9f5d40..796a370 100644
--- a/examples/declarative/dynamic/Sun.qml
+++ b/examples/declarative/dynamic/qml/Sun.qml
@@ -3,7 +3,7 @@ import Qt 4.6
Image {
id: sun
property bool created: false
- property string image: "images/sun.png"
+ property string image: "../images/sun.png"
onCreatedChanged: if(created){window.activeSuns++;}else{window.activeSuns--;}
source: image;
@@ -18,7 +18,7 @@ Image {
}
states: State {
- name: "OffScreen"; when: created && y > window.height/2;//Below the ground
+ name: "OffScreen"; when: created && y > window.height / 2;//Below the ground
StateChangeScript { script: { sun.created = false; sun.destroy() } }
}
}
diff --git a/examples/declarative/dynamic/itemCreation.js b/examples/declarative/dynamic/qml/itemCreation.js
index 06e67c5..b3e8ba5 100644
--- a/examples/declarative/dynamic/itemCreation.js
+++ b/examples/declarative/dynamic/qml/itemCreation.js
@@ -32,6 +32,7 @@ function loadComponent() {
createItem();
itemComponent = createComponent(itemButton.file);
+ print(itemButton.file)
if(itemComponent.isLoading){
component.statusChanged.connect(finishCreation);
}else{//Depending on the content, it can be ready or error immediately