mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Skeleton code for the model that has the columns information
Just the skeleton, then start doing stuff. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
48775c530e
commit
3d8e2d0643
2 changed files with 46 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
#define DIVELOGIMPORTDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QAbstractListModel>
|
||||
|
||||
#include "../dive.h"
|
||||
#include "../divelist.h"
|
||||
|
@ -10,6 +11,19 @@ namespace Ui {
|
|||
class DiveLogImportDialog;
|
||||
}
|
||||
|
||||
class ColumnNameProvider : public QAbstractListModel {
|
||||
Q_OBJECT
|
||||
public:
|
||||
ColumnNameProvider(QObject *parent);
|
||||
bool insertRows(int row, int count, const QModelIndex &parent);
|
||||
bool removeRows(int row, int count, const QModelIndex &parent);
|
||||
bool setData(const QModelIndex &index, const QVariant &value, int role);
|
||||
QVariant data(const QModelIndex &index, int role) const;
|
||||
int rowCount(const QModelIndex &parent) const;
|
||||
private:
|
||||
QStringList columnNames;
|
||||
};
|
||||
|
||||
class DiveLogImportDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue