Add fully-functional administration panel for administrators and dispatchers
This commit is contained in:
parent
bf599549ea
commit
ff6901e3a9
22 changed files with 1257 additions and 42 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define USERPROFESSIONVIEWMODEL_H
|
||||
|
||||
#include <QAbstractTableModel>
|
||||
#include <QFont>
|
||||
|
||||
#include "../objects/user.h"
|
||||
#include "../db/database.h"
|
||||
|
|
@ -10,16 +11,18 @@ class UserProfessionViewModel : public QAbstractTableModel {
|
|||
private:
|
||||
Q_OBJECT
|
||||
|
||||
ProfessionsList mProfList;
|
||||
User *mUser = nullptr;
|
||||
|
||||
public:
|
||||
UserProfessionViewModel(QObject *parent);
|
||||
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
|
||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
|
||||
|
||||
void setProfessionsList(const ProfessionsList &profList);
|
||||
void setUser(User *user);
|
||||
void invalidateData();
|
||||
};
|
||||
|
||||
#endif // USERPROFESSIONVIEWMODEL_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue