summaryrefslogtreecommitdiffstats
path: root/tools/qml/main.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-05-10 23:01:51 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-05-11 22:42:19 (GMT)
commit797d44e7415e8f9d582dd2838957cf309cea9449 (patch)
tree068c8e07583be14c955e4f1eab84ff2e65794485 /tools/qml/main.cpp
parent1809eb091cb47c914713ecef6e514e912a4e113b (diff)
downloadQt-797d44e7415e8f9d582dd2838957cf309cea9449.zip
Qt-797d44e7415e8f9d582dd2838957cf309cea9449.tar.gz
Qt-797d44e7415e8f9d582dd2838957cf309cea9449.tar.bz2
Temporary work-around for QTBUG-9849.
May allow better experimentation and bug fixing.
Diffstat (limited to 'tools/qml/main.cpp')
-rw-r--r--tools/qml/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/qml/main.cpp b/tools/qml/main.cpp
index fb687ac..116ca71 100644
--- a/tools/qml/main.cpp
+++ b/tools/qml/main.cpp
@@ -231,6 +231,7 @@ int main(int argc, char ** argv)
bool stayOnTop = false;
bool maximized = false;
bool useNativeFileBrowser = true;
+ bool experimentalGestures = false;
WarningsConfig warningsConfig = DefaultWarnings;
bool sizeToView = true;
@@ -334,6 +335,8 @@ int main(int argc, char ** argv)
sizeToView = false;
} else if (arg == "-sizerootobjecttoview") {
sizeToView = true;
+ } else if (arg == "-experimentalgestures") {
+ experimentalGestures = true;
} else if (arg[0] != '-') {
fileName = arg;
} else if (1 || arg == "-help") {
@@ -403,6 +406,9 @@ int main(int argc, char ** argv)
}
#endif
+ if (experimentalGestures)
+ viewer->enableExperimentalGestures();
+
foreach (QString lib, imports)
viewer->addLibraryPath(lib);