forked from qt-creator/qt-creator
QmlJsCheck: Do not allow print as id
Task-number: QDS-4162 Change-Id: I425c75cd42c0842ead27a6c801c3a483284407ea Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -565,34 +565,12 @@ private:
|
||||
class IdsThatShouldNotBeUsedInDesigner : public QStringList
|
||||
{
|
||||
public:
|
||||
IdsThatShouldNotBeUsedInDesigner() : QStringList({"top",
|
||||
"bottom",
|
||||
"left",
|
||||
"right",
|
||||
"width",
|
||||
"height",
|
||||
"x",
|
||||
"y",
|
||||
"opacity",
|
||||
"parent",
|
||||
"item",
|
||||
"flow",
|
||||
"color",
|
||||
"margin",
|
||||
"padding",
|
||||
"border",
|
||||
"font",
|
||||
"text",
|
||||
"source",
|
||||
"state",
|
||||
"visible",
|
||||
"focus",
|
||||
"data",
|
||||
"clip",
|
||||
"layer",
|
||||
"scale",
|
||||
"enabled",
|
||||
"anchors"})
|
||||
IdsThatShouldNotBeUsedInDesigner()
|
||||
: QStringList({"top", "bottom", "left", "right", "width", "height",
|
||||
"x", "y", "opacity", "parent", "item", "flow",
|
||||
"color", "margin", "padding", "print", "border", "font",
|
||||
"text", "source", "state", "visible", "focus", "data",
|
||||
"clip", "layer", "scale", "enabled", "anchors"})
|
||||
{}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user