]> git.sur5r.net Git - minitube/commitdiff
video title in the statusbar
authorFlavio Tordini <flavio.tordini@gmail.com>
Wed, 1 Jul 2009 16:12:42 +0000 (18:12 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Wed, 1 Jul 2009 16:12:42 +0000 (18:12 +0200)
src/MediaView.cpp

index 8f0ec4901eb06b12515d94ffa023beb9804663b0..0f71cd0611f8d131519cbd28aaf00314050262ce 100644 (file)
@@ -206,6 +206,10 @@ void MediaView::activeRowChanged(int row) {
     // reset the timer flag
     timerPlayFlag = false;
 
+    // video title in the statusbar
+    QMainWindow* mainWindow = dynamic_cast<QMainWindow*>(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) {