// restore window position
readSettings();
+ // event filter to block ugly toolbar tooltips
+ qApp->installEventFilter(this);
+
// show the initial view
showWidget(searchView);
delete history;
}
+bool MainWindow::eventFilter(QObject *obj, QEvent *event) {
+ if (event->type() == QEvent::ToolTip) {
+ // kill tooltips
+ return true;
+ } else {
+ // standard event processing
+ return QObject::eventFilter(obj, event);
+ }
+}
+
void MainWindow::createActions() {
QMap<QString, QAction*> *actions = The::globalActions();
protected:
void closeEvent(QCloseEvent *);
+ bool eventFilter(QObject *obj, QEvent *event);
private slots:
void fadeInWidget(QWidget *oldWidget, QWidget *newWidget);