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());