24 lines
619 B
C++
24 lines
619 B
C++
#ifndef VESSELSVIEWMODEL_H
|
|
#define VESSELSVIEWMODEL_H
|
|
|
|
#include "system/apparatus.h"
|
|
|
|
#include <QAbstractTableModel>
|
|
|
|
|
|
class VesselsViewModel : public QAbstractTableModel {
|
|
private:
|
|
Q_OBJECT
|
|
|
|
public:
|
|
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
|