diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-06-03 22:08:57 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-03 21:26:31 -0700 |
commit | ef10490e037c435cac8b1089cb9130d260351ad2 (patch) | |
tree | 49602dc027bb4912b8eb73f53a6b8f5c7fed025f /qt-ui/maintab.cpp | |
parent | be0a708db0b05f2b8a42f81d49020ca2e656b714 (diff) | |
download | subsurface-ef10490e037c435cac8b1089cb9130d260351ad2.tar.gz |
Update KMessageWidget to KF5
The KMessageWidget that we used was from an ancient version of KDE4, KF5
is out for quite a while, so it's good that we also update our software
that uses parts of KDE.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 85d45b357..f4c0d3af3 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -116,7 +116,10 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), ui.divemaster->setCompleter(completers.divemaster); ui.suit->setCompleter(completers.suit); ui.tagWidget->setCompleter(completers.tags); - + ui.diveNotesMessage->hide(); + ui.diveEquipmentMessage->hide(); + ui.diveInfoMessage->hide(); + ui.diveStatisticsMessage->hide(); setMinimumHeight(0); setMinimumWidth(0); @@ -312,9 +315,12 @@ void MainTab::displayMessage(QString str) ui.diveStatisticsMessage->setText(str); ui.diveStatisticsMessage->animatedShow(); updateTextLabels(); - ui.tagWidget->fixPopupPosition(ui.diveNotesMessage->bestContentHeight()); - ui.buddy->fixPopupPosition(ui.diveNotesMessage->bestContentHeight()); - ui.divemaster->fixPopupPosition(ui.diveNotesMessage->bestContentHeight()); + +// TODO: this doesn't exists anymore. Find out why it was removed from +// the KMessageWidget and try to see if this is still needed. +// ui.tagWidget->fixPopupPosition(ui.diveNotesMessage->bestContentHeight()); +// ui.buddy->fixPopupPosition(ui.diveNotesMessage->bestContentHeight()); +// ui.divemaster->fixPopupPosition(ui.diveNotesMessage->bestContentHeight()); } void MainTab::updateTextLabels(bool showUnits) |