Implemented Vessels VM
This commit is contained in:
parent
fc9b61467c
commit
2f67449c72
2 changed files with 73 additions and 5 deletions
|
|
@ -1,13 +1,22 @@
|
|||
#ifndef VESSELSVIEWMODEL_H
|
||||
#define VESSELSVIEWMODEL_H
|
||||
|
||||
#include "system/apparatus.h"
|
||||
|
||||
#include <QAbstractTableModel>
|
||||
|
||||
class VesselsViewModel : public QAbstractTableModel
|
||||
{
|
||||
class VesselsViewModel : public QAbstractTableModel {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
VesselsViewModel();
|
||||
VesselsViewModel(QObject *parent = nullptr);
|
||||
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;
|
||||
|
||||
public slots:
|
||||
void update();
|
||||
};
|
||||
|
||||
#endif // VESSELSVIEWMODEL_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue