void MediaView::search(SearchParams *searchParams) {
this->searchParams = searchParams;
+ // start serching for videos
+ listModel->search(searchParams);
+
// this implies that the enum and the bar action order is the same
sortBar->setCheckedAction(searchParams->sortBy()-1);
- listModel->search(searchParams);
listView->setFocus();
+
+ loadingWidget->clear();
}
void MediaView::disappear() {
// play() has already been called when setting the source
// but Phonon on Linux needs a little more help to start playback
mediaObject->play();
+
+ // Workaround for Mac playback start problem
if (!timerPlayFlag) {
QTimer::singleShot(1000, this, SLOT(timerPlay()));
}
+
break;
case Phonon::PausedState:
progressBar->setValue(percent);
*/
}
+
+void LoadingWidget::clear() {
+ titleLabel->clear();
+ descriptionLabel->clear();
+ // progressBar->hide();
+}