Removed warnings

This commit is contained in:
Filippo Cucchetto 2018-10-07 16:49:07 +02:00
parent 971ededef8
commit e025e084bd
2 changed files with 3 additions and 2 deletions

View File

@ -139,6 +139,7 @@ class DosQAbstractItemModel : public DosQAbstractGenericModel<QAbstractItemModel
{ {
public: public:
using DosQAbstractGenericModel::DosQAbstractGenericModel; using DosQAbstractGenericModel::DosQAbstractGenericModel;
bool defaultHasChildren(const QModelIndex &parent) const override; bool defaultHasChildren(const QModelIndex &parent) const override;
}; };

View File

@ -274,7 +274,7 @@ bool DosQAbstractListModel::defaultHasChildren(const QModelIndex &parent) const
return parent.isValid() ? false : (rowCount() > 0); return parent.isValid() ? false : (rowCount() > 0);
} }
QModelIndex DosQAbstractListModel::defaultParent(const QModelIndex &child) const QModelIndex DosQAbstractListModel::defaultParent(const QModelIndex & /*child*/) const
{ {
return QModelIndex(); return QModelIndex();
} }
@ -291,7 +291,7 @@ bool DosQAbstractTableModel::defaultHasChildren(const QModelIndex &parent) const
return false; return false;
} }
QModelIndex DosQAbstractTableModel::defaultParent(const QModelIndex &child) const QModelIndex DosQAbstractTableModel::defaultParent(const QModelIndex & /*child*/) const
{ {
return QModelIndex(); return QModelIndex();
} }