summaryrefslogtreecommitdiffstats
path: root/examples/declarative
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-12-01 02:47:35 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-12-01 02:47:35 (GMT)
commite291a894d882afeca62bd16cd6e1703fc94e0ed6 (patch)
tree35f0d8040bb8219c8d6e207ac97b2e201c98a974 /examples/declarative
parentc3a2d9f58c2dc5168a64b3934f41e8503f2e11fd (diff)
parentd83baff44e5f8992509ffde4a7df90bd3c87ff8f (diff)
downloadQt-e291a894d882afeca62bd16cd6e1703fc94e0ed6.zip
Qt-e291a894d882afeca62bd16cd6e1703fc94e0ed6.tar.gz
Qt-e291a894d882afeca62bd16cd6e1703fc94e0ed6.tar.bz2
Merge branch 'kinetic-declarativeui' of scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'examples/declarative')
-rw-r--r--examples/declarative/loader/Browser.diff60
1 files changed, 0 insertions, 60 deletions
diff --git a/examples/declarative/loader/Browser.diff b/examples/declarative/loader/Browser.diff
deleted file mode 100644
index adc0f60..0000000
--- a/examples/declarative/loader/Browser.diff
+++ /dev/null
@@ -1,60 +0,0 @@
-diff --git a/examples/declarative/loader/Browser.qml b/examples/declarative/loader/Browser.qml
-index 96c2a76..00e1bb6 100644
---- a/examples/declarative/loader/Browser.qml
-+++ b/examples/declarative/loader/Browser.qml
-@@ -17,9 +17,16 @@ Rect {
- id: FolderDelegate
- Rect {
- id: Wrapper
-+ function launch() {
-+ if (folders.isFolder(index)) {
-+ folders.folder = filePath;
-+ } else {
-+ qmlLauncher.launch(filePath);
-+ }
-+ }
- width: Root.width
- height: 32
-- color: activePalette.base
-+ color: "transparent"
- Rect {
- id: Highlight; visible: false
- anchors.fill: parent
-@@ -42,13 +49,7 @@ Rect {
- MouseRegion {
- id: Mouse
- anchors.fill: parent
-- onClicked: {
-- if (folders.isFolder(index)) {
-- folders.folder = filePath;
-- } else {
-- qmlLauncher.launch(filePath);
-- }
-- }
-+ onClicked: { launch() }
- }
- states: [
- State {
-@@ -69,13 +70,22 @@ Rect {
- }
-
- ListView {
-+ id: View
- anchors.top: TitleBar.bottom
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.bottom: parent.bottom
- model: folders
- delegate: FolderDelegate
-+ highlight: Rect { color: "#FFFBAF" }
- clip: true
-+ focus: true
-+ onKeyPress: {
-+ if (event.key == Qt.Key_Return || event.key == Qt.Key_Select) {
-+ View.current.launch();
-+ event.accepted = true;
-+ }
-+ }
- }
-
- Rect {