aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/TabDiveComputer.h
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/tab-widgets/TabDiveComputer.h')
-rw-r--r--desktop-widgets/tab-widgets/TabDiveComputer.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveComputer.h b/desktop-widgets/tab-widgets/TabDiveComputer.h
new file mode 100644
index 000000000..bdbb9097c
--- /dev/null
+++ b/desktop-widgets/tab-widgets/TabDiveComputer.h
@@ -0,0 +1,23 @@
+// SPDX-License-Identifier: GPL-2.0
+#ifndef TAB_DIVE_COMPUTER_H
+#define TAB_DIVE_COMPUTER_H
+
+#include "TabBase.h"
+#include "ui_TabDiveComputer.h"
+#include "qt-models/divecomputermodel.h"
+
+class TabDiveComputer : public TabBase {
+ Q_OBJECT
+public:
+ TabDiveComputer(QWidget *parent = 0);
+ void updateData() override;
+ void clear() override;
+public slots:
+ void tableClicked(const QModelIndex &index);
+private:
+ Ui::TabDiveComputer ui;
+ DiveComputerModel model;
+ DiveComputerSortedModel sortedModel;
+};
+
+#endif