summaryrefslogtreecommitdiffstats
path: root/tools/qmlviewer/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qmlviewer/main.cpp')
-rw-r--r--tools/qmlviewer/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/qmlviewer/main.cpp b/tools/qmlviewer/main.cpp
index b2593a5..73f5382 100644
--- a/tools/qmlviewer/main.cpp
+++ b/tools/qmlviewer/main.cpp
@@ -27,6 +27,7 @@ void usage()
qWarning(" -v, -version ............................. display version");
qWarning(" -frameless ............................... run with no window frame");
qWarning(" -skin <qvfbskindir> ...................... run with a skin window frame");
+ qWarning(" -scaleview ...................... run with a skin window frame");
qWarning(" -recordfile <output> ..................... set video recording file");
qWarning(" - ImageMagick 'convert' for GIF)");
qWarning(" - png file for raw frames");
@@ -64,6 +65,7 @@ int main(int argc, char ** argv)
app.setOrganizationDomain("nokia.com");
bool frameless = false;
+ bool scaleview = false;
QString fileName;
double fps = 0;
int autorecord_from = 0;
@@ -83,6 +85,8 @@ int main(int argc, char ** argv)
frameless = true;
} else if (arg == "-skin") {
skin = QString(argv[++i]);
+ } else if (arg == "-scaleview") {
+ scaleview = true;
} else if (arg == "-netcache") {
cache = QString(argv[++i]).toInt();
} else if (arg == "-recordrate") {
@@ -129,6 +133,8 @@ int main(int argc, char ** argv)
viewer.addLibraryPath(lib);
viewer.setNetworkCacheSize(cache);
viewer.setRecordFile(recordfile);
+ if (scaleview)
+ viewer.setScaleView();
if (fps>0)
viewer.setRecordRate(fps);
if (autorecord_to)