diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-01-05 06:02:43 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-01-05 06:02:43 (GMT) |
commit | 2babb8240b03a05133c8c7906252bce255739c33 (patch) | |
tree | b6d3a4c57dfdcc8334c62b67433540cbc8178b9f /tools/qmlviewer | |
parent | 027a3a94955127712a76f15430a1f6cc0288722e (diff) | |
download | Qt-2babb8240b03a05133c8c7906252bce255739c33.zip Qt-2babb8240b03a05133c8c7906252bce255739c33.tar.gz Qt-2babb8240b03a05133c8c7906252bce255739c33.tar.bz2 |
WGZ is just a ZIP, so accept that too.
Diffstat (limited to 'tools/qmlviewer')
-rw-r--r-- | tools/qmlviewer/qmlviewer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/qmlviewer/qmlviewer.cpp b/tools/qmlviewer/qmlviewer.cpp index b838f40..4dee2ee 100644 --- a/tools/qmlviewer/qmlviewer.cpp +++ b/tools/qmlviewer/qmlviewer.cpp @@ -766,7 +766,8 @@ void QmlViewer::reload() void QmlViewer::open(const QString& doc) { if (doc.endsWith(".wgt",Qt::CaseInsensitive) - || doc.endsWith(".wgz",Qt::CaseInsensitive)) + || doc.endsWith(".wgz",Qt::CaseInsensitive) + || doc.endsWith(".zip",Qt::CaseInsensitive)) openWgt(doc); else openQml(doc); |