customsqlmodel.h
485 Bytes
#ifndef CUSTOMSQLMODEL_H
#define CUSTOMSQLMODEL_H
#include <QObject>
#include <QSqlQueryModel>
class CustomSQLModel : public QSqlQueryModel
{
Q_OBJECT
public:
QVariant data(const QModelIndex &item, int role = Qt::DisplayRole) const;
Qt::ItemFlags flags(const QModelIndex &index) const;
explicit CustomSQLModel(QObject *parent = 0);
bool compareDates(const QString date) const;
bool isReservat(const QString assignatura) const;
};
#endif // CUSTOMSQLMODEL_H