mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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);
|
QAction *action = new QAction(tr("Apply changes"), this);
|
||||||
connect(action, SIGNAL(triggered(bool)), this, SLOT(acceptChanges()));
|
connect(action, SIGNAL(triggered(bool)), this, SLOT(acceptChanges()));
|
||||||
addMessageAction(action);
|
ui.diveNotesMessage->addAction(action);
|
||||||
|
|
||||||
action = new QAction(tr("Discard changes"), this);
|
action = new QAction(tr("Discard changes"), this);
|
||||||
connect(action, SIGNAL(triggered(bool)), this, SLOT(rejectChanges()));
|
connect(action, SIGNAL(triggered(bool)), this, SLOT(rejectChanges()));
|
||||||
addMessageAction(action);
|
ui.diveNotesMessage->addAction(action);
|
||||||
|
|
||||||
QShortcut *closeKey = new QShortcut(QKeySequence(Qt::Key_Escape), this);
|
QShortcut *closeKey = new QShortcut(QKeySequence(Qt::Key_Escape), this);
|
||||||
connect(closeKey, SIGNAL(activated()), this, SLOT(escDetected()));
|
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()
|
void MainTab::hideMessage()
|
||||||
{
|
{
|
||||||
ui.diveNotesMessage->animatedHide();
|
ui.diveNotesMessage->animatedHide();
|
||||||
|
|
|
@ -73,7 +73,6 @@ slots:
|
||||||
void on_rating_valueChanged(int value);
|
void on_rating_valueChanged(int value);
|
||||||
void on_visibility_valueChanged(int value);
|
void on_visibility_valueChanged(int value);
|
||||||
void on_tagWidget_editingFinished();
|
void on_tagWidget_editingFinished();
|
||||||
void addMessageAction(QAction *action);
|
|
||||||
void hideMessage();
|
void hideMessage();
|
||||||
void closeMessage();
|
void closeMessage();
|
||||||
void displayMessage(QString str);
|
void displayMessage(QString str);
|
||||||
|
|
Loading…
Add table
Reference in a new issue