From 730a1e6e42d1e8c5cb4afc5bb9637078fba32b10 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 10 Nov 2021 15:24:57 +0100 Subject: [PATCH] StudioWelcome: Fix warnings regarding unused parameters Change-Id: I56d0a9c18c963d1a505e8d40daa058f66d984d77 Reviewed-by: Christian Kandeler --- src/plugins/studiowelcome/screensizemodel.h | 4 ++-- src/plugins/studiowelcome/stylemodel.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/studiowelcome/screensizemodel.h b/src/plugins/studiowelcome/screensizemodel.h index e01f17295c5..4e38f7acf85 100644 --- a/src/plugins/studiowelcome/screensizemodel.h +++ b/src/plugins/studiowelcome/screensizemodel.h @@ -67,7 +67,7 @@ public: return QSize{width, height}; } - int rowCount(const QModelIndex &parent = QModelIndex()) const override + int rowCount(const QModelIndex &/*parent*/) const override { if (m_backendModel) return m_backendModel->rowCount(); @@ -75,7 +75,7 @@ public: return 0; } - QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override + QVariant data(const QModelIndex &index, int /*role*/) const override { if (m_backendModel) { auto *item = m_backendModel->item(index.row(), index.column()); diff --git a/src/plugins/studiowelcome/stylemodel.h b/src/plugins/studiowelcome/stylemodel.h index 6d6d09620d1..e311eded6fb 100644 --- a/src/plugins/studiowelcome/stylemodel.h +++ b/src/plugins/studiowelcome/stylemodel.h @@ -41,7 +41,7 @@ public: Q_INVOKABLE QString iconId(int index) const; Q_INVOKABLE void filter(const QString &what = "all"); - int rowCount(const QModelIndex &parent = QModelIndex()) const override + int rowCount(const QModelIndex &/*parent*/) const override { if (m_backendModel) return static_cast(m_filteredItems.size()); @@ -49,7 +49,7 @@ public: return 0; } - QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override + QVariant data(const QModelIndex &index, int /*role*/) const override { if (m_backendModel) { auto *item = m_filteredItems.at(index.row());