diff options
author | hjk <qthjk@ovi.com> | 2012-12-18 15:11:44 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-20 19:28:19 +0100 |
commit | 416168db8a9bb54614117469a43f751a401de854 (patch) | |
tree | be708f7ba13950041eaea0f481c2c1f050f4a9c3 /examples/multimedia/video/qmlvideo/main.cpp | |
parent | 5739d43eef89e415974ca64fb348371f9f8659c7 (diff) |
Polish and fix qmlvideofx example
Change-Id: I30f6d7d2af784ba018a659a16aceb4876a4b1be6
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'examples/multimedia/video/qmlvideo/main.cpp')
-rw-r--r-- | examples/multimedia/video/qmlvideo/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/multimedia/video/qmlvideo/main.cpp b/examples/multimedia/video/qmlvideo/main.cpp index 8230e9441..ac26c983a 100644 --- a/examples/multimedia/video/qmlvideo/main.cpp +++ b/examples/multimedia/video/qmlvideo/main.cpp @@ -69,8 +69,8 @@ int main(int argc, char *argv[]) QStringList args = app.arguments(); PerformanceMonitor::State performanceMonitorState; bool sourceIsUrl = false; - for (int i=1; i<args.count(); ++i) { - const QString &arg = args.at(i); + for (int i = 1; i < args.size(); ++i) { + const QByteArray arg = args.at(i).toUtf8(); if (arg.startsWith('-')) { if ("-volume" == arg) { if (i+1 < args.count()) @@ -79,7 +79,7 @@ int main(int argc, char *argv[]) qtTrace() << "Option \"-volume\" takes a value"; } #ifdef PERFORMANCEMONITOR_SUPPORT - else if (PerformanceMonitor::parseArgument(arg, performanceMonitorState)) { + else if (performanceMonitorState.parseArgument(arg)) { // Do nothing } #endif |