summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-07-31 07:09:47 (GMT)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-07-31 07:11:01 (GMT)
commit4066cc8a2f2b824d1047913d863b4d3261dd2479 (patch)
treedd478508372cc106e7d9392a4962330536c93d92
parent1835decbcfe6c95de3c895cb5bf2d0cefe4d2643 (diff)
downloadQt-4066cc8a2f2b824d1047913d863b4d3261dd2479.zip
Qt-4066cc8a2f2b824d1047913d863b4d3261dd2479.tar.gz
Qt-4066cc8a2f2b824d1047913d863b4d3261dd2479.tar.bz2
Show open directory dialog for new gesture example
RevBy: denis
-rw-r--r--examples/gestures/imageviewer/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/gestures/imageviewer/main.cpp b/examples/gestures/imageviewer/main.cpp
index 6bda418..cd1928b 100644
--- a/examples/gestures/imageviewer/main.cpp
+++ b/examples/gestures/imageviewer/main.cpp
@@ -81,6 +81,9 @@ int main(int argc, char *argv[])
if (QApplication::arguments().size() > 1)
w.openDirectory(QApplication::arguments().at(1));
+ else
+ w.openDirectory(QFileDialog::getExistingDirectory(0, "Select image folder"));
+
return app.exec();
}