menuWidget->addSubMenu(tr("About"), aboutWidget);
menuBar->addAction(menuWidget);
+
+ dictManagerWidget->setMenuWidget(menuWidget);
#else
dictionariesAction = menuBar->addAction(tr("Dictionaries"));
connect(dictionariesAction, SIGNAL(triggered()),
aboutAction = menuBar->addAction(tr("About"));
connect(aboutAction, SIGNAL(triggered()),
aboutWidget, SLOT(show()));
+
#endif
}
}
-void MainWindow::showNotification(Notify::NotifyType type, QString text) {
- notifyManager->showNotification(type, text);
+void MainWindow::showNotification(Notify::NotifyType type, QString text, QWidget* parent) {
+ notifyManager->showNotification(type, text, parent);
}
void MainWindow::connectBackbone() {
connect(backbone, SIGNAL(searchCanceled()),
this, SIGNAL(setIdle()));
- connect(backbone, SIGNAL(notify(Notify::NotifyType,QString)),
- this, SLOT(showNotification(Notify::NotifyType,QString)));
+ connect(backbone, SIGNAL(notify(Notify::NotifyType,QString, QWidget*)),
+ this, SLOT(showNotification(Notify::NotifyType,QString, QWidget*)));
}
void MainWindow::connectSearchBar() {