showActivationView(false);
#endif
- QTimer::singleShot(100, this, SLOT(lazyInit()));
+ QTimer::singleShot(0, this, SLOT(lazyInit()));
}
MainWindow::~MainWindow() {
// Hack to give focus to searchlineedit
QMetaObject::invokeMethod(views->currentWidget(), "appear");
+ View* view = dynamic_cast<View *> (views->currentWidget());
+ QString desc = view->metadata().value("description").toString();
+ if (!desc.isEmpty()) showMessage(desc);
+
+ ChannelAggregator::instance()->start();
}
void MainWindow::changeEvent(QEvent *e) {
#endif
if (show) {
statusToolBar->insertAction(statusToolBar->actions().first(), action);
- if (statusBar()->isHidden()) setStatusBarVisibility(true);
+ if (statusBar()->isHidden())
+ setStatusBarVisibility(true);
} else {
statusToolBar->removeAction(action);
if (statusBar()->isVisible() && !needStatusBar())
}
void MainWindow::showWidget(QWidget* widget, bool transition) {
+ Q_UNUSED(transition);
+
if (compactViewAct->isChecked())
compactViewAct->toggle();
- setUpdatesEnabled(false);
-
// call hide method on the current view
View* oldView = dynamic_cast<View *> (views->currentWidget());
if (oldView) {
adjustStatusBarVisibility();
messageLabel->hide();
+ /*
QString desc = metadata.value("description").toString();
if (!desc.isEmpty()) showMessage(desc);
+ */
}
- setUpdatesEnabled(true);
-
-#ifdef APP_EXTRA
- if (transition && (oldWidget != mediaView)) // || !mediaView->getVideoArea()->isVideoShown()
- // if (transition)
- Extra::fadeInWidget(oldWidget, widget);
-#else
- Q_UNUSED(transition);
-#endif
-
history->push(widget);
}
if (compactViewAct->isChecked())
compactViewAct->toggle();
+ m_fullscreen = !m_fullscreen;
+
#ifdef APP_MAC
WId handle = winId();
if (mac::CanGoFullScreen(handle)) {
}
#endif
- m_fullscreen = !m_fullscreen;
-
if (m_fullscreen) {
// Enter full screen
}
void SearchView::appear() {
- setUpdatesEnabled(false);
+ MainWindow::instance()->showActionInStatusBar(The::globalActions()->value("definition"), true);
+
updateRecentKeywords();
updateRecentChannels();
queryEdit->selectAll();
queryEdit->enableSuggest();
- setUpdatesEnabled(true);
-
- MainWindow::instance()->showActionInStatusBar(The::globalActions()->value("definition"), true);
if (!queryEdit->hasFocus()) queryEdit->setFocus();
}