summaryrefslogtreecommitdiffstats
path: root/tools/qml/main.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2010-05-14 06:24:00 (GMT)
committerKai Koehne <kai.koehne@nokia.com>2010-05-14 14:56:21 (GMT)
commit336feccaf4517605306844690103baf331f11d50 (patch)
tree57dab4708f7c3411af3da2185f597382a7aa5147 /tools/qml/main.cpp
parentc25737a44fb22668c67568eefb61c72457166dfe (diff)
downloadQt-336feccaf4517605306844690103baf331f11d50.zip
Qt-336feccaf4517605306844690103baf331f11d50.tar.gz
Qt-336feccaf4517605306844690103baf331f11d50.tar.bz2
Remove skins from qml launcher.
Diffstat (limited to 'tools/qml/main.cpp')
-rw-r--r--tools/qml/main.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/tools/qml/main.cpp b/tools/qml/main.cpp
index 116ca71..d1fc118 100644
--- a/tools/qml/main.cpp
+++ b/tools/qml/main.cpp
@@ -119,9 +119,6 @@ void usage()
qWarning(" -maximized................................ run maximized");
qWarning(" -fullscreen............................... run fullscreen");
qWarning(" -stayontop................................ keep viewer window on top");
- qWarning(" -skin <qvfbskindir> ...................... run with a skin window frame");
- qWarning(" \"list\" for a list of built-ins");
- qWarning(" -resizeview .............................. resize the view, not the skin");
qWarning(" -sizeviewtorootobject .................... the view resizes to the changes in the content");
qWarning(" -sizerootobjecttoview .................... the content resizes to the changes in the view");
qWarning(" -qmlbrowser .............................. use a QML-based file browser");
@@ -209,7 +206,6 @@ int main(int argc, char ** argv)
QDeclarativeFolderListModel::registerTypes();
bool frameless = false;
- bool resizeview = false;
QString fileName;
double fps = 0;
int autorecord_from = 0;
@@ -219,7 +215,6 @@ int main(int argc, char ** argv)
QStringList recordargs;
QStringList imports;
QStringList plugins;
- QString skin;
QString script;
QString scriptopts;
bool runScript = false;
@@ -252,11 +247,6 @@ int main(int argc, char ** argv)
fullScreen = true;
} else if (arg == "-stayontop") {
stayOnTop = true;
- } else if (arg == "-skin") {
- if (lastArg) usage();
- skin = QString(argv[++i]);
- } else if (arg == "-resizeview") {
- resizeview = true;
} else if (arg == "-netcache") {
if (lastArg) usage();
cache = QString(argv[++i]).toInt();
@@ -418,21 +408,10 @@ int main(int argc, char ** argv)
viewer->setNetworkCacheSize(cache);
viewer->setRecordFile(recordfile);
viewer->setSizeToView(sizeToView);
- if (resizeview)
- viewer->setScaleView();
if (fps>0)
viewer->setRecordRate(fps);
if (autorecord_to)
viewer->setAutoRecord(autorecord_from,autorecord_to);
- if (!skin.isEmpty()) {
- if (skin == "list") {
- foreach (QString s, viewer->builtinSkins())
- qWarning() << qPrintable(s);
- exit(0);
- } else {
- viewer->setSkin(skin);
- }
- }
if (devkeys)
viewer->setDeviceKeys(true);
viewer->setRecordDither(dither);