From: Flavio Tordini Date: Wed, 1 Jul 2009 16:12:42 +0000 (+0200) Subject: video title in the statusbar X-Git-Tag: 0.4~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=efdd7999a478f12197f4a08a025f71ba1a3c6fdb;p=minitube video title in the statusbar --- diff --git a/src/MediaView.cpp b/src/MediaView.cpp index 8f0ec49..0f71cd0 100644 --- a/src/MediaView.cpp +++ b/src/MediaView.cpp @@ -206,6 +206,10 @@ void MediaView::activeRowChanged(int row) { // reset the timer flag timerPlayFlag = false; + // video title in the statusbar + QMainWindow* mainWindow = dynamic_cast(qApp->topLevelWidgets().first()); + if (mainWindow) mainWindow->statusBar()->showMessage(video->title()); + // see you in gotStreamUrl... } @@ -225,6 +229,7 @@ void MediaView::gotStreamUrl(QUrl streamUrl) { QModelIndex index = listModel->index(row, 0, QModelIndex()); listView->scrollTo(index, QAbstractItemView::EnsureVisible); } + } void MediaView::itemActivated(const QModelIndex &index) {