Blame view

customsqlmodel.h 485 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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