diff options
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.cpp')
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index 73ed6127b..501afaa0c 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -58,17 +58,17 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), { ui.setupUi(this); - extraWidgets << new TabDiveEquipment(); + extraWidgets << new TabDiveEquipment(this); ui.tabWidget->addTab(extraWidgets.last(), tr("Equipment")); - extraWidgets << new TabDiveInformation(); + extraWidgets << new TabDiveInformation(this); ui.tabWidget->addTab(extraWidgets.last(), tr("Information")); - extraWidgets << new TabDiveStatistics(); + extraWidgets << new TabDiveStatistics(this); ui.tabWidget->addTab(extraWidgets.last(), tr("Statistics")); - extraWidgets << new TabDivePhotos(); + extraWidgets << new TabDivePhotos(this); ui.tabWidget->addTab(extraWidgets.last(), tr("Media")); - extraWidgets << new TabDiveExtraInfo(); + extraWidgets << new TabDiveExtraInfo(this); ui.tabWidget->addTab(extraWidgets.last(), tr("Extra Info")); - extraWidgets << new TabDiveSite(); + extraWidgets << new TabDiveSite(this); ui.tabWidget->addTab(extraWidgets.last(), tr("Dive sites")); ui.dateEdit->setDisplayFormat(prefs.date_format); @@ -178,10 +178,6 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), ui.diveTripLocation->hide(); } -MainTab::~MainTab() -{ -} - void MainTab::hideMessage() { ui.diveNotesMessage->animatedHide(); |