Mercurial > hg > dmlib
annotate editor/edres.h @ 2634:f3c7115cbf85 default tip
Fix verbose build echos.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 29 Feb 2024 21:47:31 +0200 |
parents | e2ac08228a0f |
children |
rev | line source |
---|---|
403
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
1 #ifndef RESOURCEMODEL_H |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
2 #define RESOURCEMODEL_H |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
3 |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
4 #include <QAbstractTableModel> |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
5 #include <QPair> |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
6 #include <QList> |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
7 |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
8 class QEDResourceModel : public QAbstractTableModel |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
9 { |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
10 Q_OBJECT |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
11 |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
12 public: |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
13 QEDResourceModel(QObject *parent = 0); |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
14 |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
15 int rowCount(const QModelIndex &parent) const; |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
16 int columnCount(const QModelIndex &parent) const; |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
17 QVariant data(const QModelIndex &index, int role) const; |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
18 QVariant headerData(int section, Qt::Orientation orientation, int role) const; |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
19 Qt::ItemFlags flags(const QModelIndex &index) const; |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
20 // bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole); |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
21 // QList< QPair<QString, QString> > getList(); |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
22 |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
23 private: |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
24 }; |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
25 |
d34922e6a244
Even more work towards the editor.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
26 #endif |