Fixed referencing and dereferencing errors in apparatus
This commit is contained in:
parent
d69b18f083
commit
f99974d8ae
12 changed files with 148 additions and 112 deletions
|
|
@ -5,7 +5,7 @@ UsersViewModel::UsersViewModel(QObject *parent) : QAbstractTableModel(parent) {
|
|||
}
|
||||
|
||||
int UsersViewModel::rowCount(const QModelIndex & /*parent*/) const {
|
||||
return apparatus::instance()->get_object_subsystem().vessels().size();
|
||||
return apparatus::instance()->get_object_subsystem()->vessels().size();
|
||||
}
|
||||
|
||||
int UsersViewModel::columnCount(const QModelIndex & /*parent*/) const {
|
||||
|
|
@ -28,7 +28,7 @@ QVariant UsersViewModel::headerData(int section, Qt::Orientation orientation, in
|
|||
|
||||
QVariant UsersViewModel::data(const QModelIndex &index, int role) const {
|
||||
if (role == Qt::DisplayRole) {
|
||||
auto item = apparatus::instance()->get_auth_subsystem().users()[index.row()];
|
||||
auto item = apparatus::instance()->get_auth_subsystem()->users()[index.row()];
|
||||
int col = index.column();
|
||||
|
||||
switch (col) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue