summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/downloadfromdivecomputer.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2017-04-18 17:32:10 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-27 07:46:01 -0700
commit3c3f91dcb2964180f5ced838a06db35021dde0f1 (patch)
treee40083478664803e09d1f5f52b5199fd8795487c /desktop-widgets/downloadfromdivecomputer.h
parent6bfd20a0144da0851cbed1e8454fa3603709806f (diff)
downloadsubsurface-3c3f91dcb2964180f5ced838a06db35021dde0f1.tar.gz
Move model code to models
This makes it easery to use it on Qml. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/downloadfromdivecomputer.h')
-rw-r--r--desktop-widgets/downloadfromdivecomputer.h26
1 files changed, 1 insertions, 25 deletions
diff --git a/desktop-widgets/downloadfromdivecomputer.h b/desktop-widgets/downloadfromdivecomputer.h
index 419e96453..b1967766a 100644
--- a/desktop-widgets/downloadfromdivecomputer.h
+++ b/desktop-widgets/downloadfromdivecomputer.h
@@ -17,6 +17,7 @@
#endif
class QStringListModel;
+class DiveImportedModel;
class DownloadThread : public QThread {
Q_OBJECT
@@ -30,31 +31,6 @@ private:
device_data_t *data;
};
-class DiveImportedModel : public QAbstractTableModel
-{
- Q_OBJECT
-public:
- DiveImportedModel(QObject *o);
- int columnCount(const QModelIndex& index = QModelIndex()) const;
- int rowCount(const QModelIndex& index = QModelIndex()) const;
- QVariant data(const QModelIndex& index, int role) const;
- QVariant headerData(int section, Qt::Orientation orientation, int role) const;
- void setImportedDivesIndexes(int first, int last);
- Qt::ItemFlags flags(const QModelIndex &index) const;
- void clearTable();
-
-public
-slots:
- void changeSelected(QModelIndex clickedIndex);
- void selectAll();
- void selectNone();
-
-private:
- int firstIndex;
- int lastIndex;
- bool *checkStates;
-};
-
class DownloadFromDCWidget : public QDialog {
Q_OBJECT
public: