Rev 128 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| Download
| RSS feed
#ifndef MYMODEL_H
#define MYMODEL_H
#include <QObject>
#include <QtGui>
#include <QSqlQueryModel>
#include <QSqlTableModel>
class MyModel : public QSqlTableModel {
Q_OBJECT
public:
explicit MyModel(QObject *parent = 0);
Qt::ItemFlags flags(const QModelIndex &index) const;
bool setData(const QModelIndex &, const QVariant &, int);
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
signals:
public slots:
};
#endif // MYMODEL_H