From 6943322b4292f89a472bbd920251b0add723e27a Mon Sep 17 00:00:00 2001 From: Mahmoud Badri Date: Wed, 23 Nov 2022 13:59:18 +0200 Subject: [PATCH] QmlDesigner: Suppress some unused params warnings Change-Id: Ib54014fdc6d1256393e60b2d2df17fa3cd4573e4 Reviewed-by: Miikka Heikkinen --- .../components/materialeditor/materialeditorview.cpp | 6 +++--- .../components/textureeditor/textureeditorview.cpp | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/plugins/qmldesigner/components/materialeditor/materialeditorview.cpp b/src/plugins/qmldesigner/components/materialeditor/materialeditorview.cpp index 00352c50cf5..8e2c5fe9fc0 100644 --- a/src/plugins/qmldesigner/components/materialeditor/materialeditorview.cpp +++ b/src/plugins/qmldesigner/components/materialeditor/materialeditorview.cpp @@ -1107,9 +1107,9 @@ void MaterialEditorView::customNotification([[maybe_unused]] const AbstractView } void MaterialEditorView::nodeReparented(const ModelNode &node, - const NodeAbstractProperty &newPropertyParent, - const NodeAbstractProperty &oldPropertyParent, - PropertyChangeFlags propertyChange) + [[maybe_unused]] const NodeAbstractProperty &newPropertyParent, + [[maybe_unused]] const NodeAbstractProperty &oldPropertyParent, + [[maybe_unused]] PropertyChangeFlags propertyChange) { if (node.id() == Constants::MATERIAL_LIB_ID && m_qmlBackEnd && m_qmlBackEnd->contextObject()) m_qmlBackEnd->contextObject()->setHasMaterialLibrary(true); diff --git a/src/plugins/qmldesigner/components/textureeditor/textureeditorview.cpp b/src/plugins/qmldesigner/components/textureeditor/textureeditorview.cpp index 4464818de7d..a4cc362ffbc 100644 --- a/src/plugins/qmldesigner/components/textureeditor/textureeditorview.cpp +++ b/src/plugins/qmldesigner/components/textureeditor/textureeditorview.cpp @@ -624,9 +624,9 @@ void TextureEditorView::propertiesAboutToBeRemoved(const QList } void TextureEditorView::nodeReparented(const ModelNode &node, - const NodeAbstractProperty &newPropertyParent, - const NodeAbstractProperty &oldPropertyParent, - PropertyChangeFlags propertyChange) + [[maybe_unused]] const NodeAbstractProperty &newPropertyParent, + [[maybe_unused]] const NodeAbstractProperty &oldPropertyParent, + [[maybe_unused]] PropertyChangeFlags propertyChange) { if (node.id() == Constants::MATERIAL_LIB_ID && m_qmlBackEnd && m_qmlBackEnd->contextObject()) m_qmlBackEnd->contextObject()->setHasMaterialLibrary(true); @@ -779,7 +779,7 @@ void TextureEditorView::duplicateTexture(const ModelNode &texture) void TextureEditorView::customNotification([[maybe_unused]] const AbstractView *view, const QString &identifier, const QList &nodeList, - const QList &data) + [[maybe_unused]] const QList &data) { if (identifier == "selected_texture_changed") { if (!m_hasTextureRoot) {