forked from qt-creator/qt-creator
StudioWelcome: Fix warnings regarding unused parameters
Change-Id: I56d0a9c18c963d1a505e8d40daa058f66d984d77 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -67,7 +67,7 @@ public:
|
|||||||
return QSize{width, height};
|
return QSize{width, height};
|
||||||
}
|
}
|
||||||
|
|
||||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override
|
int rowCount(const QModelIndex &/*parent*/) const override
|
||||||
{
|
{
|
||||||
if (m_backendModel)
|
if (m_backendModel)
|
||||||
return m_backendModel->rowCount();
|
return m_backendModel->rowCount();
|
||||||
@@ -75,7 +75,7 @@ public:
|
|||||||
return 0;
|
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) {
|
if (m_backendModel) {
|
||||||
auto *item = m_backendModel->item(index.row(), index.column());
|
auto *item = m_backendModel->item(index.row(), index.column());
|
||||||
|
@@ -41,7 +41,7 @@ public:
|
|||||||
Q_INVOKABLE QString iconId(int index) const;
|
Q_INVOKABLE QString iconId(int index) const;
|
||||||
Q_INVOKABLE void filter(const QString &what = "all");
|
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)
|
if (m_backendModel)
|
||||||
return static_cast<int>(m_filteredItems.size());
|
return static_cast<int>(m_filteredItems.size());
|
||||||
@@ -49,7 +49,7 @@ public:
|
|||||||
return 0;
|
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) {
|
if (m_backendModel) {
|
||||||
auto *item = m_filteredItems.at(index.row());
|
auto *item = m_filteredItems.at(index.row());
|
||||||
|
Reference in New Issue
Block a user