summaryrefslogtreecommitdiffstats
path: root/examples/declarative
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative')
-rw-r--r--examples/declarative/clocks/content/Clock.qml8
-rw-r--r--examples/declarative/dynamic/qml/Button.qml2
-rw-r--r--examples/declarative/listview/content/MediaButton.qml2
-rw-r--r--examples/declarative/plugins/com/nokia/TimeExample/Clock.qml6
-rw-r--r--examples/declarative/scrollbar/ScrollBar.qml2
-rw-r--r--examples/declarative/tvtennis/tvtennis.qml2
-rw-r--r--examples/declarative/velocity/Day.qml2
-rw-r--r--examples/declarative/webview/content/SpinSquare.qml4
8 files changed, 14 insertions, 14 deletions
diff --git a/examples/declarative/clocks/content/Clock.qml b/examples/declarative/clocks/content/Clock.qml
index c853174..036df46 100644
--- a/examples/declarative/clocks/content/Clock.qml
+++ b/examples/declarative/clocks/content/Clock.qml
@@ -5,10 +5,10 @@ Item {
width: 200; height: 230
property alias city: cityLabel.text
- property var hours
- property var minutes
- property var seconds
- property var shift : 0
+ property variant hours
+ property variant minutes
+ property variant seconds
+ property variant shift : 0
property bool night: false
function timeChanged() {
diff --git a/examples/declarative/dynamic/qml/Button.qml b/examples/declarative/dynamic/qml/Button.qml
index 946da21..53588bb 100644
--- a/examples/declarative/dynamic/qml/Button.qml
+++ b/examples/declarative/dynamic/qml/Button.qml
@@ -3,7 +3,7 @@ import Qt 4.7
Rectangle {
id: container
- property var text
+ property variant text
signal clicked
SystemPalette { id: activePalette }
diff --git a/examples/declarative/listview/content/MediaButton.qml b/examples/declarative/listview/content/MediaButton.qml
index ec69000..a625b4c 100644
--- a/examples/declarative/listview/content/MediaButton.qml
+++ b/examples/declarative/listview/content/MediaButton.qml
@@ -1,7 +1,7 @@
import Qt 4.7
Item {
- property var text
+ property variant text
signal clicked
id: container
diff --git a/examples/declarative/plugins/com/nokia/TimeExample/Clock.qml b/examples/declarative/plugins/com/nokia/TimeExample/Clock.qml
index ce1dd69..0048372 100644
--- a/examples/declarative/plugins/com/nokia/TimeExample/Clock.qml
+++ b/examples/declarative/plugins/com/nokia/TimeExample/Clock.qml
@@ -5,9 +5,9 @@ Rectangle {
width: 200; height: 200; color: "gray"
property alias city: cityLabel.text
- property var hours
- property var minutes
- property var shift : 0
+ property variant hours
+ property variant minutes
+ property variant shift : 0
Image { id: background; source: "clock.png" }
diff --git a/examples/declarative/scrollbar/ScrollBar.qml b/examples/declarative/scrollbar/ScrollBar.qml
index d2f52d5..2186b35 100644
--- a/examples/declarative/scrollbar/ScrollBar.qml
+++ b/examples/declarative/scrollbar/ScrollBar.qml
@@ -9,7 +9,7 @@ Item {
// orientation can be either 'Vertical' or 'Horizontal'
property real position
property real pageSize
- property var orientation : "Vertical"
+ property variant orientation : "Vertical"
// A light, semi-transparent background
Rectangle {
diff --git a/examples/declarative/tvtennis/tvtennis.qml b/examples/declarative/tvtennis/tvtennis.qml
index 240183f..9d107ad 100644
--- a/examples/declarative/tvtennis/tvtennis.qml
+++ b/examples/declarative/tvtennis/tvtennis.qml
@@ -10,7 +10,7 @@ Rectangle {
Rectangle {
// Add a property for the target y coordinate
property int targetY : page.height - 10
- property var direction : "right"
+ property variant direction : "right"
id: ball
color: "Lime"
diff --git a/examples/declarative/velocity/Day.qml b/examples/declarative/velocity/Day.qml
index 724fcc8..a39ec94 100644
--- a/examples/declarative/velocity/Day.qml
+++ b/examples/declarative/velocity/Day.qml
@@ -2,7 +2,7 @@ import Qt 4.7
Component {
Item {
- property var stickies
+ property variant stickies
id: page
width: 840; height: 480
diff --git a/examples/declarative/webview/content/SpinSquare.qml b/examples/declarative/webview/content/SpinSquare.qml
index ccd68df..dba48d4 100644
--- a/examples/declarative/webview/content/SpinSquare.qml
+++ b/examples/declarative/webview/content/SpinSquare.qml
@@ -1,8 +1,8 @@
import Qt 4.7
Item {
- property var period : 250
- property var color : "black"
+ property variant period : 250
+ property variant color : "black"
id: root
Item {