#ifndef FACHBELEGUNGQUERYMODEL_H #define FACHBELEGUNGQUERYMODEL_H #include #include #include "defines.h" #include "rack.h" class FachBelegungQueryModel : public QSqlQueryModel { Q_OBJECT public: FachBelegungQueryModel(QObject *parent); ~FachBelegungQueryModel(); QVariant data(const QModelIndex &item, int role) const; bool refresh(QString sql); private: QColor lightblue; QColor lightpink; QColor darkblue; QColor darkpink; Rack *rack; }; #endif // FACHBELEGUNGQUERYMODEL_H