mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
desktop: store pointer to parent in tab-widgets
Make it possible for the individual tab-widgets to access the parent widget. In principle this could have been done by downcasting the pointer returned by parent(), but this makes it explicit. The goal here is to store information on the selection, current dive, etc. without repeating it in every subwidget. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
cded7ef5fe
commit
8cd191c271
14 changed files with 20 additions and 13 deletions
|
@ -8,7 +8,7 @@
|
|||
#include <QLabel>
|
||||
#include <QIcon>
|
||||
|
||||
TabDiveStatistics::TabDiveStatistics(QWidget *parent) : TabBase(parent), ui(new Ui::TabDiveStatistics())
|
||||
TabDiveStatistics::TabDiveStatistics(MainTab *parent) : TabBase(parent), ui(new Ui::TabDiveStatistics())
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->sacLimits->overrideMaxToolTipText(tr("Highest total SAC of a dive"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue