diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-05-24 20:50:25 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-06-15 11:20:49 -0700 |
commit | 99dc528a10df63099cda571a998b2a34c9d0b022 (patch) | |
tree | 8646923cc21a5f626b8baf5a31c0aa4ac45647bf /desktop-widgets/tab-widgets | |
parent | bd7196d93e7901333dc408560d462034e9d9a0ea (diff) | |
download | subsurface-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')
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 9 | ||||
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.h | 1 |
2 files changed, 2 insertions, 8 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(); diff --git a/desktop-widgets/tab-widgets/maintab.h b/desktop-widgets/tab-widgets/maintab.h index 351449cd7..fd11a40fc 100644 --- a/desktop-widgets/tab-widgets/maintab.h +++ b/desktop-widgets/tab-widgets/maintab.h @@ -73,7 +73,6 @@ slots: void on_rating_valueChanged(int value); void on_visibility_valueChanged(int value); void on_tagWidget_editingFinished(); - void addMessageAction(QAction *action); void hideMessage(); void closeMessage(); void displayMessage(QString str); |