Refreshing notification only in maemo
authorMateusz Półrola <mateusz.polrola@comarch.pl>
Thu, 9 Sep 2010 12:11:28 +0000 (14:11 +0200)
committerMateusz Półrola <mateusz.polrola@comarch.pl>
Thu, 9 Sep 2010 12:11:28 +0000 (14:11 +0200)
src/mdictionary/gui/MainWindow.cpp
src/mdictionary/gui/NotifyManager.cpp
src/mdictionary/gui/TranslationWidget.cpp

index 243f8c1..e94295a 100644 (file)
@@ -254,7 +254,9 @@ void MainWindow::translationsReady() {
     #endif
 
     Q_EMIT showTranslation(backbone->htmls());
-    notifyManager->screenChanged();
+    #ifdef Q_WS_MAEMO_5
+        notifyManager->screenChanged();
+    #endif
 }
 
 
@@ -576,8 +578,5 @@ void MainWindow::removeBookmarks() {
              tr("Do you want to delete all bookmarks? (This action cannot be revoked)"),
              QMessageBox::Yes, QMessageBox::Cancel) == QMessageBox::Yes) {
         backbone->removeAllBookmarks();
-        if(searchString.size())
-            backbone->search(searchString);
-
     }
 }
index f2fe70e..bb3f5ac 100644 (file)
@@ -132,5 +132,4 @@ void NotifyManager::showNotification(Notify::NotifyType type, QString text) {
 
 void NotifyManager::setMenu(QWidget *w) {
     menu = w;
-    qDebug()<<w<<"mM";
 }
index 10358ee..18604d6 100644 (file)
@@ -84,8 +84,6 @@ void TranslationWidget::show(QStringList translations) {
             + trans + tr("\n </ar>");
 
 
-    qDebug()<<trans<<endl;
-
     trans=XslConversion(trans);
 
     QString head = "<html><head>";
@@ -100,9 +98,6 @@ void TranslationWidget::show(QStringList translations) {
     webkit->setHtml(trans, QUrl().fromLocalFile("/"));
 
 
-    qDebug()<<webkit->page()->currentFrame()->toHtml();
-
-
     //webkit->repaint(this->rect());
     //update(this->rect());