mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Dive d/l selection UI:: Constructor, rowCount and ColumnCount
Add importedDivesIndexes and Data. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
db367ae0a2
commit
9ee615bca3
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue