Added default invalid parentIndex to TableModel::columnCount and added Q_UNUSED macro to suppress warnings.
This commit is contained in:
@ -21,7 +21,7 @@ class TableModel : public QAbstractTableModel {
|
||||
QHash<int, QByteArray> roleNames() const override;
|
||||
|
||||
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
|
||||
int columnCount(const QModelIndex& parent) const override;
|
||||
int columnCount(const QModelIndex& parent = QModelIndex()) const override;
|
||||
QVariant data(const QModelIndex& index, int role) const override;
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user