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);
void TranslationWidget::show() {
- QWidget::show();
+ QScrollArea::show();
-}
-
-void TranslationWidget::show(QList<Translation*> translations) {
-
- show();
textEdit->clear();
textEdit->setPlainText(trans);
- textEdit->repaint(this->rect());
+ textEdit->update(this->rect());
-
}
void TranslationWidget::initializeUI() {