New xdxf dialog, one which provides methods to add new or change setting of existing...
[mdictionary] / src / mdictionary / gui / MainWindow.cpp
index 16257c6..42bd584 100644 (file)
@@ -123,6 +123,8 @@ void MainWindow::initializeMenu() {
     menuWidget->addSubMenu(tr("About"), aboutWidget);
 
     menuBar->addAction(menuWidget);
+
+    dictManagerWidget->setMenuWidget(menuWidget);
 #else
     dictionariesAction = menuBar->addAction(tr("Dictionaries"));
     connect(dictionariesAction, SIGNAL(triggered()),
@@ -143,6 +145,7 @@ void MainWindow::initializeMenu() {
     aboutAction = menuBar->addAction(tr("About"));
     connect(aboutAction, SIGNAL(triggered()),
             aboutWidget, SLOT(show()));
+
 #endif
 }
 
@@ -371,8 +374,8 @@ Settings* MainWindow::settings() {
 }
 
 
-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() {
@@ -435,8 +438,8 @@ 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() {