diff options
Diffstat (limited to 'desktop-widgets/tab-widgets/TabDiveSite.cpp')
-rw-r--r-- | desktop-widgets/tab-widgets/TabDiveSite.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveSite.cpp b/desktop-widgets/tab-widgets/TabDiveSite.cpp new file mode 100644 index 000000000..81736bc77 --- /dev/null +++ b/desktop-widgets/tab-widgets/TabDiveSite.cpp @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: GPL-2.0 +#include "TabDiveSite.h" +#include "qt-models/divelocationmodel.h" + +#include <qt-models/divecomputerextradatamodel.h> + +TabDiveSite::TabDiveSite(QWidget *parent) : TabBase(parent) +{ + ui.setupUi(this); + ui.diveSites->setTitle(tr("Dive sites")); + ui.diveSites->setModel(LocationInformationModel::instance()); + + // Show only the first few columns + for (int i = LocationInformationModel::COORDS; i < LocationInformationModel::COLUMNS; ++i) + ui.diveSites->view()->setColumnHidden(i, true); +} + +void TabDiveSite::updateData() +{ +} + +void TabDiveSite::clear() +{ +} |