1
0
Fork 0
forked from blue/squawk

keeping with the refactoring

This commit is contained in:
Blue 2023-02-03 21:43:13 +03:00
parent edf1ee60cd
commit bf11d8a74e
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
8 changed files with 298 additions and 6 deletions

View file

@ -30,9 +30,10 @@ class Phones : public QAbstractTableModel {
public:
Phones(bool edit = false, QObject *parent = nullptr);
bool setEditable(bool editable);
QVariant data(const QModelIndex& index, int role) const override;
int columnCount(const QModelIndex& parent) const override;
int rowCount(const QModelIndex& parent) const override;
int columnCount(const QModelIndex& parent = QModelIndex()) const override;
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override;
Qt::ItemFlags flags(const QModelIndex &index) const override;
bool isPreferred(quint32 row) const;