Commit 1076e879 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.Rewriter: Blacklist a couple of imports



Some imports are known to create trouble in the designer.
There is no reason to allow adding imports using the designer, that
will just create issues.

Change-Id: I95437f39c02fd06650285a5184a77669ae32b705
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent d7551d0c
......@@ -749,6 +749,10 @@ static bool isBlacklistImport(const ImportKey &importKey)
|| importPathFirst == QStringLiteral("QtQml")
|| (importPathFirst == QStringLiteral("QtQuick") && importPathLast == QStringLiteral("PrivateWidgets"))
|| importPathLast == QStringLiteral("Private")
|| importKey.libraryQualifiedPath() == QStringLiteral("QtQuick.Particles") //Unsupported
|| importKey.libraryQualifiedPath() == QStringLiteral("QtQuick.Dialogs") //Unsupported
|| importKey.libraryQualifiedPath() == QStringLiteral("QtQuick.Controls.Styles") //Unsupported
|| importKey.libraryQualifiedPath().contains(QStringLiteral("Qt.labs")) //No support for labs plugins
|| (importKey.splitPath.count() == 1 && importPathFirst == QStringLiteral("QtQuick")); // Don't show Quick X.X imports
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment