[vlc-commits] Qt: InputStatsPanel: label graph

Francois Cartegnie git at videolan.org
Sat Apr 6 12:58:38 CEST 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Apr  6 12:55:44 2013 +0200| [296d4ab513f999d7c39405f34ea37209e0f8b460] | committer: Francois Cartegnie

Qt: InputStatsPanel: label graph

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=296d4ab513f999d7c39405f34ea37209e0f8b460
---

 modules/gui/qt4/components/info_panels.cpp |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/gui/qt4/components/info_panels.cpp b/modules/gui/qt4/components/info_panels.cpp
index f21cb04..835022d 100644
--- a/modules/gui/qt4/components/info_panels.cpp
+++ b/modules/gui/qt4/components/info_panels.cpp
@@ -600,6 +600,11 @@ InputStatsPanel::InputStatsPanel( QWidget *parent ): QWidget( parent )
     statsView->setFrameStyle( QFrame::NoFrame );
     statsView->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Fixed );
     input_bitrate_graph->setSizeHint( 1, QSize(0, 100) );
+    QString graphlabel =
+            QString( "<font style=\"color:#ff8c00\">%1</font><br/>%2" )
+            .arg( qtr("Last 60 seconds") )
+            .arg( qtr("Overall") );
+    StatsTree->setItemWidget( input_bitrate_graph, 0, new QLabel( graphlabel ) );
     StatsTree->setItemWidget( input_bitrate_graph, 1, statsView );
 }
 



More information about the vlc-commits mailing list