forked from qt-creator/qt-creator
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:
@@ -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"
|
||||
"ListModel"
|
||||
"Component"
|
||||
"Timer"
|
||||
"Package"})
|
||||
UnsupportedRootObjectTypesByVisualDesigner()
|
||||
: QStringList({"QtObject"
|
||||
"ListModel"
|
||||
"Component"
|
||||
"Timer"
|
||||
"Package",
|
||||
"ApplicationWindow"})
|
||||
{}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user