From 88508e9f4081a9b0008793dbe90c65f6b96c0f0f Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 9 Dec 2014 12:26:59 +0100 Subject: Remove QML bundle code This feature is effectively not maintained, experimental and undocumented. Consensus on the mailing list is to remove it: http://lists.qt-project.org/pipermail/development/2014-December/019384.html Change-Id: Iaa73b3e90806c338ef81bbd4307ddd2addd37964 Reviewed-by: Christopher Adams --- tools/qmlscene/main.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'tools/qmlscene/main.cpp') diff --git a/tools/qmlscene/main.cpp b/tools/qmlscene/main.cpp index 2a86b724f4..73e8a9ac6d 100644 --- a/tools/qmlscene/main.cpp +++ b/tools/qmlscene/main.cpp @@ -351,7 +351,6 @@ static void usage() puts(" --quit .................................... Quit immediately after starting"); puts(" --disable-context-sharing ................. Disable the use of a shared GL context for QtQuick Windows"); puts(" -I ................................. Add to the list of import paths"); - puts(" -B .......................... Add a named bundle"); puts(" -translation ............ Set the language to run in"); puts(" "); @@ -363,7 +362,6 @@ int main(int argc, char ** argv) Options options; QStringList imports; - QList > bundles; for (int i = 1; i < argc; ++i) { if (*argv[i] != '-' && QFileInfo(QFile::decodeName(argv[i])).exists()) { options.file = QUrl::fromLocalFile(argv[i]); @@ -393,11 +391,7 @@ int main(int argc, char ** argv) options.contextSharing = false; else if (lowerArgument == QLatin1String("-i") && i + 1 < argc) imports.append(QString::fromLatin1(argv[++i])); - else if (lowerArgument == QLatin1String("-b") && i + 2 < argc) { - QString name = QString::fromLatin1(argv[++i]); - QString file = QString::fromLatin1(argv[++i]); - bundles.append(qMakePair(name, file)); - } else if (lowerArgument == QLatin1String("--help") + else if (lowerArgument == QLatin1String("--help") || lowerArgument == QLatin1String("-help") || lowerArgument == QLatin1String("--h") || lowerArgument == QLatin1String("-h")) @@ -460,8 +454,6 @@ int main(int argc, char ** argv) QPointer component = new QQmlComponent(&engine); for (int i = 0; i < imports.size(); ++i) engine.addImportPath(imports.at(i)); - for (int i = 0; i < bundles.size(); ++i) - engine.addNamedBundle(bundles.at(i).first, bundles.at(i).second); if (options.file.isLocalFile()) { QFileInfo fi(options.file.toLocalFile()); #ifndef QT_NO_TRANSLATION -- cgit v1.2.3