forked from qt-creator/qt-creator
QmlDesigner: use initializer lists
Change-Id: Ie93861c7d8a5b2863ec8b111afceacc2c163715b Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
@@ -734,15 +734,15 @@ bool QuickItemNodeInstance::hasAnchor(const PropertyName &name) const
|
||||
|
||||
static bool isValidAnchorName(const PropertyName &name)
|
||||
{
|
||||
static PropertyNameList anchorNameList(PropertyNameList() << "anchors.top"
|
||||
<< "anchors.left"
|
||||
<< "anchors.right"
|
||||
<< "anchors.bottom"
|
||||
<< "anchors.verticalCenter"
|
||||
<< "anchors.horizontalCenter"
|
||||
<< "anchors.fill"
|
||||
<< "anchors.centerIn"
|
||||
<< "anchors.baseline");
|
||||
static PropertyNameList anchorNameList({"anchors.top",
|
||||
"anchors.left",
|
||||
"anchors.right",
|
||||
"anchors.bottom",
|
||||
"anchors.verticalCenter",
|
||||
"anchors.horizontalCenter",
|
||||
"anchors.fill",
|
||||
"anchors.centerIn",
|
||||
"anchors.baseline"});
|
||||
|
||||
return anchorNameList.contains(name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user