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
|
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"})
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user