#ifndef CUSTOMSQLMODEL_H #define CUSTOMSQLMODEL_H #include #include 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