summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-05-24 20:50:25 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-06-15 11:20:49 -0700
commit99dc528a10df63099cda571a998b2a34c9d0b022 (patch)
tree8646923cc21a5f626b8baf5a31c0aa4ac45647bf /desktop-widgets/tab-widgets/maintab.cpp
parentbd7196d93e7901333dc408560d462034e9d9a0ea (diff)
downloadsubsurface-99dc528a10df63099cda571a998b2a34c9d0b022.tar.gz
Cleanup: remove MainTab::addMessageAction() function
This is a pointless one-liner function. Let's remove it. The message it shows will probably be moved to the profile in the not-so-distant future anyway. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.cpp')
-rw-r--r--desktop-widgets/tab-widgets/maintab.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp
index 34dcd6c05..0051177ee 100644
--- a/desktop-widgets/tab-widgets/maintab.cpp
+++ b/desktop-widgets/tab-widgets/maintab.cpp
@@ -87,11 +87,11 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
QAction *action = new QAction(tr("Apply changes"), this);
connect(action, SIGNAL(triggered(bool)), this, SLOT(acceptChanges()));
- addMessageAction(action);
+ ui.diveNotesMessage->addAction(action);
action = new QAction(tr("Discard changes"), this);
connect(action, SIGNAL(triggered(bool)), this, SLOT(rejectChanges()));
- addMessageAction(action);
+ ui.diveNotesMessage->addAction(action);
QShortcut *closeKey = new QShortcut(QKeySequence(Qt::Key_Escape), this);
connect(closeKey, SIGNAL(activated()), this, SLOT(escDetected()));
@@ -179,11 +179,6 @@ MainTab::~MainTab()
{
}
-void MainTab::addMessageAction(QAction *action)
-{
- ui.diveNotesMessage->addAction(action);
-}
-
void MainTab::hideMessage()
{
ui.diveNotesMessage->animatedHide();