mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
23 lines
598 B
C++
23 lines
598 B
C++
|
#include "divecomputermanagementdialog.h"
|
||
|
#include "models.h"
|
||
|
#include "ui_divecomputermanagementdialog.h"
|
||
|
|
||
|
DiveComputerManagementDialog::DiveComputerManagementDialog(QWidget* parent, Qt::WindowFlags f): QDialog(parent, f)
|
||
|
, ui( new Ui::DiveComputerManagementDialog())
|
||
|
{
|
||
|
ui->setupUi(this);
|
||
|
model = new DiveComputerModel();
|
||
|
ui->tableView->setModel(model);
|
||
|
}
|
||
|
|
||
|
DiveComputerManagementDialog* DiveComputerManagementDialog::instance()
|
||
|
{
|
||
|
static DiveComputerManagementDialog *self = new DiveComputerManagementDialog();
|
||
|
return self;
|
||
|
}
|
||
|
|
||
|
void DiveComputerManagementDialog::update()
|
||
|
{
|
||
|
model->update();
|
||
|
}
|