From efdd7999a478f12197f4a08a025f71ba1a3c6fdb Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Wed, 1 Jul 2009 18:12:42 +0200 Subject: [PATCH] video title in the statusbar --- src/MediaView.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- 2.39.5