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:
|
public:
|
||||||
ProxyNodeInstanceData()
|
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;
|
ModelNode modelNode;
|
||||||
QRectF boundingRect;
|
QRectF boundingRect;
|
||||||
QRectF contentItemBoundingRect;
|
QRectF contentItemBoundingRect;
|
||||||
@@ -64,14 +55,14 @@ public:
|
|||||||
QTransform contentTransform;
|
QTransform contentTransform;
|
||||||
QTransform contentItemTransform;
|
QTransform contentItemTransform;
|
||||||
QTransform sceneTransform;
|
QTransform sceneTransform;
|
||||||
int penWidth;
|
int penWidth{1};
|
||||||
bool isAnchoredBySibling;
|
bool isAnchoredBySibling{false};
|
||||||
bool isAnchoredByChildren;
|
bool isAnchoredByChildren{false};
|
||||||
bool hasContent;
|
bool hasContent{false};
|
||||||
bool isMovable;
|
bool isMovable{false};
|
||||||
bool isResizable;
|
bool isResizable{false};
|
||||||
bool isInLayoutable;
|
bool isInLayoutable{false};
|
||||||
bool directUpdates;
|
bool directUpdates{false};
|
||||||
|
|
||||||
|
|
||||||
QHash<PropertyName, QVariant> propertyValues;
|
QHash<PropertyName, QVariant> propertyValues;
|
||||||
|
@@ -37,13 +37,13 @@ namespace Internal {
|
|||||||
class ItemLibraryEntryData : public QSharedData
|
class ItemLibraryEntryData : public QSharedData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ItemLibraryEntryData() : majorVersion(-1), minorVersion(-1)
|
ItemLibraryEntryData()
|
||||||
{ }
|
{}
|
||||||
QString name;
|
QString name;
|
||||||
TypeName typeName;
|
TypeName typeName;
|
||||||
QString category;
|
QString category;
|
||||||
int majorVersion;
|
int majorVersion{-1};
|
||||||
int minorVersion;
|
int minorVersion{-1};
|
||||||
QString libraryEntryIconPath;
|
QString libraryEntryIconPath;
|
||||||
QIcon typeIcon;
|
QIcon typeIcon;
|
||||||
QList<PropertyContainer> properties;
|
QList<PropertyContainer> properties;
|
||||||
|
Reference in New Issue
Block a user