summaryrefslogblamecommitdiffstats
path: root/desktop-widgets/tab-widgets/TabDiveExtraInfo.cpp
blob: caf7c99bf8fb3a14c9cfb3b145639e2bf5a59fd3 (plain) (tree)
1
2
3
4
                                   
                                
                                                 























                                                     
// SPDX-License-Identifier: GPL-2.0
#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();
}