Subversion Repositories OpenInventory

Rev

Rev 51 | 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>
#include <QFileIconProvider>
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;
private:
    QFileIconProvider iconProvider;

signals:


public slots:


};

#endif // MYMODEL_H