Редакция 85 | Содержимое файла | Сравнить с предыдущей | Последнее изменение | Открыть журнал | RSS
Редакция | Автор | № строки | Строка |
---|---|---|---|
85 | pingvin | 1 | #ifndef MODELFORPOINTERS_H |
2 | #define MODELFORPOINTERS_H |
||
3 | |||
4 | #include <QSqlTableModel> |
||
5 | #include <QMainWindow> |
||
6 | #include <QObject> |
||
7 | #include <QtGui> |
||
8 | #include <QSqlQueryModel> |
||
9 | #include <QSqlTableModel> |
||
10 | #include <QSqlQuery> |
||
11 | |||
12 | class ModelForPointers : public QSqlTableModel |
||
13 | { |
||
14 | Q_OBJECT |
||
15 | public: |
||
16 | explicit ModelForPointers(QObject *parent = 0); |
||
17 | Qt::ItemFlags flags(const QModelIndex &index) const; |
||
18 | bool setData(const QModelIndex &, const QVariant &, int); |
||
19 | QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; |
||
20 | bool onlySetData(const QModelIndex &, const QVariant &, int); |
||
21 | void setInctance(QString currInctatce); // - |
||
22 | signals: |
||
86 | pingvin | 23 | void field_changed(); |
85 | pingvin | 24 | public slots: |
25 | |||
26 | private: |
||
27 | QString Inctance; // - ( ) |
||
28 | |||
29 | }; |
||
30 | |||
31 | #endif // MODELFORPOINTERS_H |