summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-12-14 16:19:56 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2020-02-04 03:33:17 -0500
commit8bcf8cde3c089650abd006a9b8e91c82f6a13880 (patch)
treeb72a9023376c3a6acfa9587d9007f8a10f298c91 /src/mainwindow.cpp
parent87868e1b22c27ebf10646269e89cc2848431c0b6 (diff)
hide spacers on statusbar when the progress bar is not visible
always show menu items, added status tips
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 2ed9bd3c..c71a877d 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -466,6 +466,8 @@ MainWindow::MainWindow(Settings &settings
m_showArchiveData = false;
}
+ QApplication::instance()->installEventFilter(this);
+
refreshExecutablesList();
updatePinnedExecutables();
resetActionIcons();
@@ -1471,7 +1473,11 @@ bool MainWindow::eventFilter(QObject *object, QEvent *event)
if ((object == ui->savegameList) &&
((event->type() == QEvent::Leave) || (event->type() == QEvent::WindowDeactivate))) {
hideSaveGameInfo();
+ } else if (event->type() == QEvent::StatusTip && object != this) {
+ QMainWindow::event(event);
+ return true;
}
+
return false;
}