summaryrefslogtreecommitdiffstats
path: root/examples/declarative
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-10-16 08:05:28 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-10-16 08:05:28 (GMT)
commit95b158432f15f412b1e14293305c3cf449f60548 (patch)
tree22532cbd81df75b4c4eae2f5a3440e72e15c1ae3 /examples/declarative
parent9d22aa7aa14a200d8c1fc0f1b4b1ead540e45e67 (diff)
downloadQt-95b158432f15f412b1e14293305c3cf449f60548.zip
Qt-95b158432f15f412b1e14293305c3cf449f60548.tar.gz
Qt-95b158432f15f412b1e14293305c3cf449f60548.tar.bz2
Make sure loader loads all dummydata
Diffstat (limited to 'examples/declarative')
-rw-r--r--examples/declarative/loader/Browser.qml4
-rw-r--r--examples/declarative/loader/main.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/declarative/loader/Browser.qml b/examples/declarative/loader/Browser.qml
index 18dc206..9e54758 100644
--- a/examples/declarative/loader/Browser.qml
+++ b/examples/declarative/loader/Browser.qml
@@ -106,14 +106,14 @@ Rectangle {
id: view1
anchors.top: titleBar.bottom
anchors.bottom: parent.bottom
- x: parent.left
+ x: 0
width: parent.width
model: folders1
delegate: folderDelegate
highlight: Rectangle { color: palette.highlight; visible: root.keyPressed }
focus: true
pressDelay: 100
- state: current
+ state: "current"
states: [
State {
name: "current"
diff --git a/examples/declarative/loader/main.cpp b/examples/declarative/loader/main.cpp
index 0993814..21d47a0 100644
--- a/examples/declarative/loader/main.cpp
+++ b/examples/declarative/loader/main.cpp
@@ -92,7 +92,7 @@ public:
Q_INVOKABLE void launch(const QString &fileName)
{
QUrl url(fileName);
- QFileInfo fi(fileName);
+ QFileInfo fi(url.path());
if (fi.exists()) {
url = QUrl::fromLocalFile(fi.absoluteFilePath());
QmlContext *ctxt = canvas->rootContext();