Add registration dialog and bare-minimum auth
This commit is contained in:
parent
42bf5da2a3
commit
1e30ca20e7
13 changed files with 658 additions and 41 deletions
25
iFacility/viewmodels/userprofessionviewmodel.h
Normal file
25
iFacility/viewmodels/userprofessionviewmodel.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef USERPROFESSIONVIEWMODEL_H
|
||||
#define USERPROFESSIONVIEWMODEL_H
|
||||
|
||||
#include <QAbstractTableModel>
|
||||
|
||||
#include "../objects/user.h"
|
||||
#include "../db/database.h"
|
||||
|
||||
class UserProfessionViewModel : public QAbstractTableModel {
|
||||
private:
|
||||
Q_OBJECT
|
||||
|
||||
ProfessionsList mProfList;
|
||||
|
||||
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);
|
||||
};
|
||||
|
||||
#endif // USERPROFESSIONVIEWMODEL_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue