]> git.sesse.net Git - vlc/commitdiff
Qt4 - Make the time Label right aligned and not size increasing in resize.
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 22 Dec 2007 19:12:45 +0000 (19:12 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 22 Dec 2007 19:12:45 +0000 (19:12 +0000)
modules/gui/qt4/main_interface.cpp

index 07f5a9293837d44901754992509675b904daf449..9731e993132aaa9acb9a6e3248296346d45ff500 100644 (file)
@@ -150,6 +150,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     /* Widgets Creation*/
     b_remainingTime = false;
     timeLabel = new TimeLabel;
+    timeLabel->setAlignment( Qt::AlignRight );
     nameLabel = new QLabel;
     nameLabel->setTextInteractionFlags( Qt::TextSelectableByMouse
                                       | Qt::TextSelectableByKeyboard );
@@ -164,7 +165,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     /* and adding those */
     statusBar()->addWidget( nameLabel, 8 );
     statusBar()->addPermanentWidget( speedLabel, 0 );
-    statusBar()->addPermanentWidget( timeLabel, 2 );
+    statusBar()->addPermanentWidget( timeLabel, 0 );
 
     /* timeLabel behaviour:
        - double clicking opens the goto time dialog