mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
bd7196d93e
commit
99dc528a10
2 changed files with 2 additions and 8 deletions
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue