forked from qt-creator/qt-creator
QmlDesigner: Fix clazy warnings
Move initializers to class. Change-Id: I782b1fd8d432df741829510412326e1221ad52d5 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -43,18 +43,9 @@ class ProxyNodeInstanceData
|
||||
{
|
||||
public:
|
||||
ProxyNodeInstanceData()
|
||||
: parentInstanceId(-1),
|
||||
penWidth(1),
|
||||
isAnchoredBySibling(false),
|
||||
isAnchoredByChildren(false),
|
||||
hasContent(false),
|
||||
isMovable(false),
|
||||
isResizable(false),
|
||||
isInLayoutable(false),
|
||||
directUpdates(false)
|
||||
{}
|
||||
|
||||
qint32 parentInstanceId;
|
||||
qint32 parentInstanceId{-1};
|
||||
ModelNode modelNode;
|
||||
QRectF boundingRect;
|
||||
QRectF contentItemBoundingRect;
|
||||
@@ -64,14 +55,14 @@ public:
|
||||
QTransform contentTransform;
|
||||
QTransform contentItemTransform;
|
||||
QTransform sceneTransform;
|
||||
int penWidth;
|
||||
bool isAnchoredBySibling;
|
||||
bool isAnchoredByChildren;
|
||||
bool hasContent;
|
||||
bool isMovable;
|
||||
bool isResizable;
|
||||
bool isInLayoutable;
|
||||
bool directUpdates;
|
||||
int penWidth{1};
|
||||
bool isAnchoredBySibling{false};
|
||||
bool isAnchoredByChildren{false};
|
||||
bool hasContent{false};
|
||||
bool isMovable{false};
|
||||
bool isResizable{false};
|
||||
bool isInLayoutable{false};
|
||||
bool directUpdates{false};
|
||||
|
||||
|
||||
QHash<PropertyName, QVariant> propertyValues;
|
||||
|
@@ -37,13 +37,13 @@ namespace Internal {
|
||||
class ItemLibraryEntryData : public QSharedData
|
||||
{
|
||||
public:
|
||||
ItemLibraryEntryData() : majorVersion(-1), minorVersion(-1)
|
||||
ItemLibraryEntryData()
|
||||
{}
|
||||
QString name;
|
||||
TypeName typeName;
|
||||
QString category;
|
||||
int majorVersion;
|
||||
int minorVersion;
|
||||
int majorVersion{-1};
|
||||
int minorVersion{-1};
|
||||
QString libraryEntryIconPath;
|
||||
QIcon typeIcon;
|
||||
QList<PropertyContainer> properties;
|
||||
|
Reference in New Issue
Block a user