diff options
Diffstat (limited to 'examples/declarative')
-rw-r--r-- | examples/declarative/border-image/animated.qml | 17 | ||||
-rw-r--r-- | examples/declarative/border-image/borders.qml | 4 | ||||
-rw-r--r-- | examples/declarative/border-image/content/MyBorderImage.qml (renamed from examples/declarative/border-image/MyBorderImage.qml) | 0 | ||||
-rw-r--r-- | examples/declarative/border-image/content/bw.png (renamed from examples/declarative/border-image/bw.png) | bin | 1357 -> 1357 bytes | |||
-rw-r--r-- | examples/declarative/border-image/content/colors-round.sci (renamed from examples/declarative/border-image/colors-round.sci) | 0 | ||||
-rw-r--r-- | examples/declarative/border-image/content/colors-stretch.sci (renamed from examples/declarative/border-image/colors-stretch.sci) | 0 | ||||
-rw-r--r-- | examples/declarative/border-image/content/colors.png (renamed from examples/declarative/border-image/colors.png) | bin | 1655 -> 1655 bytes | |||
-rw-r--r-- | examples/declarative/border-image/example.qml | 31 | ||||
-rw-r--r-- | examples/declarative/clocks/clocks.qml (renamed from examples/declarative/clock/display.qml) | 1 | ||||
-rw-r--r-- | examples/declarative/clocks/content/Clock.qml (renamed from examples/declarative/clock/Clock.qml) | 0 | ||||
-rw-r--r-- | examples/declarative/clocks/content/background.png (renamed from examples/declarative/clock/background.png) | bin | 46895 -> 46895 bytes | |||
-rwxr-xr-x | examples/declarative/clocks/content/center.png (renamed from examples/declarative/clock/center.png) | bin | 765 -> 765 bytes | |||
-rwxr-xr-x | examples/declarative/clocks/content/clock.png (renamed from examples/declarative/clock/clock.png) | bin | 21780 -> 21780 bytes | |||
-rwxr-xr-x | examples/declarative/clocks/content/hour.png (renamed from examples/declarative/clock/hour.png) | bin | 625 -> 625 bytes | |||
-rwxr-xr-x | examples/declarative/clocks/content/minute.png (renamed from examples/declarative/clock/minute.png) | bin | 625 -> 625 bytes | |||
-rwxr-xr-x | examples/declarative/clocks/content/second.png (renamed from examples/declarative/clock/second.png) | bin | 303 -> 303 bytes |
16 files changed, 12 insertions, 41 deletions
diff --git a/examples/declarative/border-image/animated.qml b/examples/declarative/border-image/animated.qml index aaaf495..29c02b3 100644 --- a/examples/declarative/border-image/animated.qml +++ b/examples/declarative/border-image/animated.qml @@ -1,4 +1,5 @@ import Qt 4.6 +import "content" Rectangle { id: page @@ -8,47 +9,47 @@ Rectangle { MyBorderImage { x: 20; y: 20; minWidth: 120; maxWidth: 240 minHeight: 120; maxHeight: 240 - source: "colors.png"; margin: 30 + source: "content/colors.png"; margin: 30 } MyBorderImage { x: 270; y: 20; minWidth: 120; maxWidth: 240 minHeight: 120; maxHeight: 240 - source: "colors.png"; margin: 30 + source: "content/colors.png"; margin: 30 horizontalMode: BorderImage.Repeat; verticalMode: BorderImage.Repeat } MyBorderImage { x: 520; y: 20; minWidth: 120; maxWidth: 240 minHeight: 120; maxHeight: 240 - source: "colors.png"; margin: 30 + source: "content/colors.png"; margin: 30 horizontalMode: BorderImage.Stretch; verticalMode: BorderImage.Repeat } MyBorderImage { x: 770; y: 20; minWidth: 120; maxWidth: 240 minHeight: 120; maxHeight: 240 - source: "colors.png"; margin: 30 + source: "content/colors.png"; margin: 30 horizontalMode: BorderImage.Round; verticalMode: BorderImage.Round } MyBorderImage { x: 20; y: 280; minWidth: 60; maxWidth: 200 minHeight: 40; maxHeight: 200 - source: "bw.png"; margin: 10 + source: "content/bw.png"; margin: 10 } MyBorderImage { x: 270; y: 280; minWidth: 60; maxWidth: 200 minHeight: 40; maxHeight: 200 - source: "bw.png"; margin: 10 + source: "content/bw.png"; margin: 10 horizontalMode: BorderImage.Repeat; verticalMode: BorderImage.Repeat } MyBorderImage { x: 520; y: 280; minWidth: 60; maxWidth: 200 minHeight: 40; maxHeight: 200 - source: "bw.png"; margin: 10 + source: "content/bw.png"; margin: 10 horizontalMode: BorderImage.Stretch; verticalMode: BorderImage.Repeat } MyBorderImage { x: 770; y: 280; minWidth: 60; maxWidth: 200 minHeight: 40; maxHeight: 200 - source: "bw.png"; margin: 10 + source: "content/bw.png"; margin: 10 horizontalMode: BorderImage.Round; verticalMode: BorderImage.Round } } diff --git a/examples/declarative/border-image/borders.qml b/examples/declarative/border-image/borders.qml index e90abe6..9879416 100644 --- a/examples/declarative/border-image/borders.qml +++ b/examples/declarative/border-image/borders.qml @@ -8,11 +8,11 @@ Rectangle { BorderImage { x: 20; y: 20; width: 230; height: 240 smooth: true - source: "colors-stretch.sci" + source: "content/colors-stretch.sci" } BorderImage { x: 270; y: 20; width: 230; height: 240 smooth: true - source: "colors-round.sci" + source: "content/colors-round.sci" } } diff --git a/examples/declarative/border-image/MyBorderImage.qml b/examples/declarative/border-image/content/MyBorderImage.qml index 9eb1270..9eb1270 100644 --- a/examples/declarative/border-image/MyBorderImage.qml +++ b/examples/declarative/border-image/content/MyBorderImage.qml diff --git a/examples/declarative/border-image/bw.png b/examples/declarative/border-image/content/bw.png Binary files differindex 486eaae..486eaae 100644 --- a/examples/declarative/border-image/bw.png +++ b/examples/declarative/border-image/content/bw.png diff --git a/examples/declarative/border-image/colors-round.sci b/examples/declarative/border-image/content/colors-round.sci index 506f6f5..506f6f5 100644 --- a/examples/declarative/border-image/colors-round.sci +++ b/examples/declarative/border-image/content/colors-round.sci diff --git a/examples/declarative/border-image/colors-stretch.sci b/examples/declarative/border-image/content/colors-stretch.sci index e4989a7..e4989a7 100644 --- a/examples/declarative/border-image/colors-stretch.sci +++ b/examples/declarative/border-image/content/colors-stretch.sci diff --git a/examples/declarative/border-image/colors.png b/examples/declarative/border-image/content/colors.png Binary files differindex dfb62f3..dfb62f3 100644 --- a/examples/declarative/border-image/colors.png +++ b/examples/declarative/border-image/content/colors.png diff --git a/examples/declarative/border-image/example.qml b/examples/declarative/border-image/example.qml deleted file mode 100644 index 25c19d9..0000000 --- a/examples/declarative/border-image/example.qml +++ /dev/null @@ -1,31 +0,0 @@ -import Qt 4.6 - -Rectangle { - id: page - color: "white" - width: 520; height: 280 - - Row { - anchors.centerIn: parent - spacing: 50 -//! [0] - BorderImage { - width: 180; height: 180 - border.left: 30; border.top: 30 - border.right: 30; border.bottom: 30 - horizontalTileMode: BorderImage.Stretch - verticalTileMode: BorderImage.Stretch - source: "colors.png" - } - - BorderImage { - width: 180; height: 180 - border.left: 30; border.top: 30 - border.right: 30; border.bottom: 30 - horizontalTileMode: BorderImage.Round - verticalTileMode: BorderImage.Round - source: "colors.png" - } -//! [0] - } -} diff --git a/examples/declarative/clock/display.qml b/examples/declarative/clocks/clocks.qml index 927adfa..3235153 100644 --- a/examples/declarative/clock/display.qml +++ b/examples/declarative/clocks/clocks.qml @@ -1,4 +1,5 @@ import Qt 4.6 +import "content" Rectangle { width: childrenRect.width diff --git a/examples/declarative/clock/Clock.qml b/examples/declarative/clocks/content/Clock.qml index 636c99f..636c99f 100644 --- a/examples/declarative/clock/Clock.qml +++ b/examples/declarative/clocks/content/Clock.qml diff --git a/examples/declarative/clock/background.png b/examples/declarative/clocks/content/background.png Binary files differindex a885950..a885950 100644 --- a/examples/declarative/clock/background.png +++ b/examples/declarative/clocks/content/background.png diff --git a/examples/declarative/clock/center.png b/examples/declarative/clocks/content/center.png Binary files differindex 7fbd802..7fbd802 100755 --- a/examples/declarative/clock/center.png +++ b/examples/declarative/clocks/content/center.png diff --git a/examples/declarative/clock/clock.png b/examples/declarative/clocks/content/clock.png Binary files differindex 30bc577..30bc577 100755 --- a/examples/declarative/clock/clock.png +++ b/examples/declarative/clocks/content/clock.png diff --git a/examples/declarative/clock/hour.png b/examples/declarative/clocks/content/hour.png Binary files differindex f8061a1..f8061a1 100755 --- a/examples/declarative/clock/hour.png +++ b/examples/declarative/clocks/content/hour.png diff --git a/examples/declarative/clock/minute.png b/examples/declarative/clocks/content/minute.png Binary files differindex 1297ec7..1297ec7 100755 --- a/examples/declarative/clock/minute.png +++ b/examples/declarative/clocks/content/minute.png diff --git a/examples/declarative/clock/second.png b/examples/declarative/clocks/content/second.png Binary files differindex 4aa9fb5..4aa9fb5 100755 --- a/examples/declarative/clock/second.png +++ b/examples/declarative/clocks/content/second.png |