mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Start the model for location information.
And implement the reset method. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5eb572b9c6
commit
8115855428
2 changed files with 43 additions and 0 deletions
|
@ -3,6 +3,18 @@
|
|||
|
||||
#include "ui_locationInformation.h"
|
||||
#include <stdint.h>
|
||||
#include <QAbstractListModel>
|
||||
|
||||
class LocationInformationModel : public QAbstractListModel {
|
||||
Q_OBJECT
|
||||
public:
|
||||
LocationInformationModel(QObject *obj = 0);
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
QVariant data(const QModelIndex &index = QModelIndex(), int role = Qt::DisplayRole) const;
|
||||
void update();
|
||||
private:
|
||||
int internalRowCount;
|
||||
};
|
||||
|
||||
class LocationInformationWidget : public QGroupBox {
|
||||
Q_OBJECT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue