From 99dc528a10df63099cda571a998b2a34c9d0b022 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 24 May 2019 20:50:25 +0200 Subject: 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 --- desktop-widgets/tab-widgets/maintab.cpp | 9 ++------- desktop-widgets/tab-widgets/maintab.h | 1 - 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'desktop-widgets/tab-widgets') 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); -- cgit v1.2.3-70-g09d2