Partialy refactorized, fixed some bugs
[mdictionary] / trunk / src / base / gui / MainWindow.cpp
index b706572..6a592f5 100644 (file)
@@ -189,7 +189,7 @@ void MainWindow::wordListReady() {
 
     //if nothing was found
     if(backboneResult.count() == 0) {
-        showNotify(Notify::Info, tr("Can't find any matching words"));
+        showNotification(Notify::Info, tr("Can't find any matching words"));
 
         //show empty list to remove results of old search
         Q_EMIT showWordList(searchResult);
@@ -212,7 +212,7 @@ void MainWindow::wordListReady() {
                 Q_EMIT searchTranslations(exactTranslation);
             }
             else {
-                showNotify(Notify::Info,
+                showNotification(Notify::Info,
                            tr("Can't find exactly matching word"));
             }
 
@@ -372,8 +372,8 @@ Settings* MainWindow::settings() {
 }
 
 
-void MainWindow::showNotify(Notify::NotifyType type, QString text) {
-    notifyManager->showNotify(type, text);
+void MainWindow::showNotification(Notify::NotifyType type, QString text) {
+    notifyManager->showNotification(type, text);
 }
 
 void MainWindow::connectBackbone() {
@@ -437,7 +437,7 @@ void MainWindow::connectBackbone() {
             this, SIGNAL(setIdle()));
 
     connect(backbone, SIGNAL(notify(Notify::NotifyType,QString)),
-            this, SLOT(showNotify(Notify::NotifyType,QString)));
+            this, SLOT(showNotification(Notify::NotifyType,QString)));
 }
 
 void MainWindow::connectSearchBar() {