summaryrefslogtreecommitdiffstats
path: root/examples/gestures
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-07-31 09:09:47 +0200
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-07-31 09:11:01 +0200
commit4066cc8a2f2b824d1047913d863b4d3261dd2479 (patch)
treedd478508372cc106e7d9392a4962330536c93d92 /examples/gestures
parent1835decbcfe6c95de3c895cb5bf2d0cefe4d2643 (diff)
Show open directory dialog for new gesture example
RevBy: denis
Diffstat (limited to 'examples/gestures')
-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 6bda4186da..cd1928baa5 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();
}