aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2013-12-12 10:21:29 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-23 16:01:09 +0100
commitfdc18a5f25ba1c4cf35e1fa6f21272167bde36a9 (patch)
tree0e1469c9d4205c6f95cba09bf556dce39c1da9f2 /examples/quick
parent6f3339e9c2be5b1509c76a5c80b7d24ef77a5879 (diff)
systemdialogs example: path to /tmp is different on Windows
Task-number: QTBUG-34100 Change-Id: Ic06ed2933b76704b1a298de826cbe6b8587fee76 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Diffstat (limited to 'examples/quick')
-rw-r--r--examples/quick/dialogs/systemdialogs/FileDialogs.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/dialogs/systemdialogs/FileDialogs.qml b/examples/quick/dialogs/systemdialogs/FileDialogs.qml
index bfc160fa45..d6ee1a13ca 100644
--- a/examples/quick/dialogs/systemdialogs/FileDialogs.qml
+++ b/examples/quick/dialogs/systemdialogs/FileDialogs.qml
@@ -173,7 +173,7 @@ Rectangle {
text: "go to /tmp"
anchors.verticalCenter: parent.verticalCenter
// TODO: QTBUG-29814 This isn't portable, but we don't expose QDir::tempPath to QML yet.
- onClicked: fileDialog.folder = "/tmp" // file:///tmp would also be OK
+ onClicked: fileDialog.folder = (Qt.platform.os === "windows" ? "/c:/temp" : "/tmp")
}
}
}