forked from qt-creator/qt-creator
QmlDesigner: Fix warnings about unused variables and functions
Change-Id: Ib907db11dcdcef9cbbb91c8fd7af22ae420796b1 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -35,6 +35,9 @@ IconGizmoImageProvider::IconGizmoImageProvider()
|
||||
|
||||
QImage IconGizmoImageProvider::requestImage(const QString &id, QSize *size, const QSize &requestedSize)
|
||||
{
|
||||
Q_UNUSED(size)
|
||||
Q_UNUSED(requestedSize)
|
||||
|
||||
// id format: <file name>:<color name>
|
||||
QStringList parts = id.split(':');
|
||||
if (parts.size() == 2) {
|
||||
|
@@ -77,22 +77,6 @@ namespace QmlDesigner {
|
||||
|
||||
const PropertyName auxDataString("anchors_");
|
||||
|
||||
static inline QList<QmlItemNode> siblingsForNode(const QmlItemNode &itemNode)
|
||||
{
|
||||
QList<QmlItemNode> siblingList;
|
||||
|
||||
if (itemNode.isValid() && itemNode.modelNode().hasParentProperty()) {
|
||||
QList<ModelNode> modelNodes = itemNode.modelNode().parentProperty().parentModelNode().directSubModelNodes();
|
||||
foreach (const ModelNode &node, modelNodes) {
|
||||
QmlItemNode childItemNode = node;
|
||||
if (childItemNode.isValid())
|
||||
siblingList.append(childItemNode);
|
||||
}
|
||||
}
|
||||
|
||||
return siblingList;
|
||||
}
|
||||
|
||||
static inline void reparentTo(const ModelNode &node, const QmlItemNode &parent)
|
||||
{
|
||||
|
||||
|
@@ -591,7 +591,6 @@ void FormEditorFlowActionItem::paint(QPainter *painter, const QStyleOptionGraphi
|
||||
if (qmlItemNode().modelNode().hasAuxiliaryData("color"))
|
||||
flowColor = qmlItemNode().modelNode().auxiliaryData("color").value<QColor>();
|
||||
|
||||
const qreal scaleFactor = viewportTransform().m11();
|
||||
qreal width = 2;
|
||||
|
||||
if (qmlItemNode().modelNode().hasAuxiliaryData("width"))
|
||||
@@ -1153,7 +1152,6 @@ void FormEditorFlowDecisionItem::paint(QPainter *painter, const QStyleOptionGrap
|
||||
if (qmlItemNode().modelNode().hasAuxiliaryData("color"))
|
||||
flowColor = qmlItemNode().modelNode().auxiliaryData("color").value<QColor>();
|
||||
|
||||
const qreal scaleFactor = viewportTransform().m11();
|
||||
qreal width = 2;
|
||||
|
||||
if (qmlItemNode().modelNode().hasAuxiliaryData("width"))
|
||||
|
@@ -212,7 +212,6 @@ void PropertyEditorView::changeValue(const QString &name)
|
||||
}
|
||||
}
|
||||
|
||||
bool forceReset = false;
|
||||
if (name == "state" && castedValue.toString() == "base state")
|
||||
castedValue = "";
|
||||
|
||||
|
Reference in New Issue
Block a user