mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-12 03:51:29 +00:00
fa7dfa3710
If we want to include dive computer names in the undo system, there should be visual feedback on undo/redo. This would mean opening the divecomputer dialog, which would appear quite strange. Therefore, add a tab. This is not ideal, but consistent with the dive site tab, which probably shouldn't be there either. In the future, the UI needs some rethinking. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
23 lines
508 B
C++
23 lines
508 B
C++
// 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
|