Qt4 - MainInterface: support for speed gestion.
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 1 Aug 2007 16:06:52 +0000 (16:06 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 1 Aug 2007 16:06:52 +0000 (16:06 +0000)
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.hpp

index fa8f908..330f947 100644 (file)
@@ -138,11 +138,14 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
                              advControlsEnabled, visualSelectorEnabled );
 
     /* Status Bar */
-    timeLabel = new QLabel( 0 );
-    nameLabel = new QLabel( 0 );
+    timeLabel = new QLabel;
+    nameLabel = new QLabel;
+    speedLabel = new QLabel( "1.0x" );
     timeLabel->setFrameStyle( QFrame::Sunken | QFrame::Panel );
-    statusBar()->addWidget( nameLabel, 4 );
-    statusBar()->addPermanentWidget( timeLabel, 1 );
+    speedLabel->setFrameStyle( QFrame::Sunken | QFrame::Panel );
+    statusBar()->addWidget( nameLabel, 8 );
+    statusBar()->addPermanentWidget( speedLabel, 0 );
+    statusBar()->addPermanentWidget( timeLabel, 2 );
 
     /* Systray */
     sysTray = NULL;
index d6b51d8..c4a08c9 100644 (file)
@@ -112,6 +112,7 @@ private:
     input_thread_t      *p_input;    ///< Main input associated to the playlist
 
     QLabel              *timeLabel;
+    QLabel              *speedLabel;
     QLabel              *nameLabel;
 
     void customEvent( QEvent *);