Rev 128 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
127 | pingvin | 1 | #ifndef MYMODEL_H |
2 | #define MYMODEL_H |
||
3 | |||
4 | #include <QObject> |
||
5 | #include <QtGui> |
||
6 | #include <QSqlQueryModel> |
||
7 | #include <QSqlTableModel> |
||
8 | |||
9 | class MyModel : public QSqlTableModel { |
||
10 | Q_OBJECT |
||
11 | public: |
||
12 | explicit MyModel(QObject *parent = 0); |
||
13 | Qt::ItemFlags flags(const QModelIndex &index) const; |
||
14 | bool setData(const QModelIndex &, const QVariant &, int); |
||
15 | QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; |
||
16 | |||
17 | signals: |
||
18 | |||
19 | public slots: |
||
20 | |||
21 | }; |
||
22 | |||
23 | #endif // MYMODEL_H |