QmlDesigner: Disallow ApplicationWindow

ApplicationWindow is not properly working in the design mode
and files using ApplicationWindow are usually not written with
the design mode in mind.

Task-number: QTCREATORBUG-25984
Task-number: QTCREATORBUG-25983
Change-Id: Ia30ec26e9078ca0a9c1da11970202983e15ce4c8
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2021-07-15 14:26:47 +02:00
parent 11a40e02f2
commit c395e52c2b

View File

@@ -608,9 +608,8 @@ public:
class UnsupportedTypesByVisualDesigner : public QStringList
{
public:
UnsupportedTypesByVisualDesigner() : QStringList({"Timer",
"Package",
"Particles"})
UnsupportedTypesByVisualDesigner()
: QStringList({"Timer", "Package", "Particles", "ApplicationWindow"})
{}
};
@@ -628,11 +627,13 @@ public:
class UnsupportedRootObjectTypesByVisualDesigner : public QStringList
{
public:
UnsupportedRootObjectTypesByVisualDesigner() : QStringList({"QtObject"
UnsupportedRootObjectTypesByVisualDesigner()
: QStringList({"QtObject"
"ListModel"
"Component"
"Timer"
"Package"})
"Package",
"ApplicationWindow"})
{}
};