summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/TabDiveExtraInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/tab-widgets/TabDiveExtraInfo.cpp')
-rw-r--r--desktop-widgets/tab-widgets/TabDiveExtraInfo.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveExtraInfo.cpp b/desktop-widgets/tab-widgets/TabDiveExtraInfo.cpp
new file mode 100644
index 000000000..0560da7b3
--- /dev/null
+++ b/desktop-widgets/tab-widgets/TabDiveExtraInfo.cpp
@@ -0,0 +1,29 @@
+#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();
+}
+