Add and implemented Delivery Point VM
This commit is contained in:
parent
2f67449c72
commit
6231e7efb0
3 changed files with 83 additions and 0 deletions
22
sea_transport/viewmodels/deliverypointsviewmodel.h
Normal file
22
sea_transport/viewmodels/deliverypointsviewmodel.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#ifndef DELIVERYPOINTSVIEWMODEL_H
|
||||
#define DELIVERYPOINTSVIEWMODEL_H
|
||||
|
||||
#include "system/apparatus.h"
|
||||
|
||||
#include <QAbstractTableModel>
|
||||
|
||||
class DeliveryPointsViewModel : public QAbstractTableModel {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DeliveryPointsViewModel(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 // DELIVERYPOINTSVIEWMODEL_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue