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 class UnsupportedTypesByVisualDesigner : public QStringList
{ {
public: public:
UnsupportedTypesByVisualDesigner() : QStringList({"Timer", UnsupportedTypesByVisualDesigner()
"Package", : QStringList({"Timer", "Package", "Particles", "ApplicationWindow"})
"Particles"})
{} {}
}; };
@@ -628,11 +627,13 @@ public:
class UnsupportedRootObjectTypesByVisualDesigner : public QStringList class UnsupportedRootObjectTypesByVisualDesigner : public QStringList
{ {
public: public:
UnsupportedRootObjectTypesByVisualDesigner() : QStringList({"QtObject" UnsupportedRootObjectTypesByVisualDesigner()
"ListModel" : QStringList({"QtObject"
"Component" "ListModel"
"Timer" "Component"
"Package"}) "Timer"
"Package",
"ApplicationWindow"})
{} {}
}; };