Merge branch 'master' into backbone
[mdictionary] / trunk / src / base / gui / MainWindow.cpp
index 4427411..c01f20d 100644 (file)
@@ -56,11 +56,18 @@ MainWindow::MainWindow(Backbone *backbone, QWidget *parent):
     connect(this, SIGNAL(searchWordList(QStringList)),
             searchBarWidget, SLOT(searchWordList(QStringList)));
 
+    connect(backbone, SIGNAL(htmlReady()),
+            translationWidget, SLOT(show()));
+
+    connect(backbone, SIGNAL(htmlReady()),
+            searchBarWidget, SLOT(showIdle()));
+
+    connect(wordListWidget, SIGNAL(clicked(QModelIndex)),
+            searchBarWidget, SLOT(showBusy()));
+
     connect(searchBarWidget, SIGNAL(enableMenu(bool)),
             this, SLOT(enableMenu(bool)));
 
-    connect(wordListWidget, SIGNAL(showTranslation(QList<Translation*>)),
-            translationWidget, SLOT(show(QList<Translation*>)));
 
     ui->centralWidget->layout()->addWidget(wordListWidget);
     ui->centralWidget->layout()->addWidget(searchBarWidget);