summaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.cpp')
-rw-r--r--qt-ui/downloadfromdivecomputer.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/qt-ui/downloadfromdivecomputer.cpp b/qt-ui/downloadfromdivecomputer.cpp
index b359aa5dc..cc695a7de 100644
--- a/qt-ui/downloadfromdivecomputer.cpp
+++ b/qt-ui/downloadfromdivecomputer.cpp
@@ -498,19 +498,20 @@ void DownloadThread::run()
error = str_error(errorText, data->devname, data->vendor, data->product);
}
-DiveImportedModel::DiveImportedModel(QObject *o)
+DiveImportedModel::DiveImportedModel(QObject *o) : QAbstractTableModel(o),
+ lastIndex(0),
+ firstIndex(0)
{
-
}
int DiveImportedModel::columnCount(const QModelIndex& model ) const
{
-
+ return 5;
}
int DiveImportedModel::rowCount(const QModelIndex& model) const
{
-
+ return lastIndex - firstIndex;
}
QVariant DiveImportedModel::data(const QModelIndex& model, int role) const