2017-04-27 18:26:05 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2017-04-04 17:21:30 +00:00
|
|
|
#include "TabDiveExtraInfo.h"
|
|
|
|
#include "ui_TabDiveExtraInfo.h"
|
|
|
|
|
|
|
|
#include <qt-models/divecomputerextradatamodel.h>
|
|
|
|
|
|
|
|
TabDiveExtraInfo::TabDiveExtraInfo(QWidget *parent) :
|
|
|
|
TabBase(parent),
|
|
|
|
ui(new Ui::TabDiveExtraInfo()),
|
|
|
|
extraDataModel(new ExtraDataModel())
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
|
|
|
ui->extraData->setModel(extraDataModel);
|
|
|
|
}
|
|
|
|
|
|
|
|
TabDiveExtraInfo::~TabDiveExtraInfo()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|
|
|
|
|
|
|
|
void TabDiveExtraInfo::updateData()
|
|
|
|
{
|
|
|
|
extraDataModel->updateDive();
|
|
|
|
}
|
|
|
|
|
|
|
|
void TabDiveExtraInfo::clear()
|
|
|
|
{
|
|
|
|
extraDataModel->updateDive();
|
|
|
|
}
|
|
|
|
|