[vlc-commits] commit: Qt4: fix a minor (but annoying) UI glitch on restart ( Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Tue Aug 17 17:27:08 CEST 2010


vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Aug 17 15:51:40 2010 +0200| [f51b6af2eed5baa2af6b14bbd3ba0ec9a4caf8c0] | committer: Jean-Baptiste Kempf 

Qt4: fix a minor (but annoying) UI glitch on restart

Close #4041
(cherry picked from commit 10c68b56f970e05729b30a1c0f42cfe87d5fc55d)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt4/main_interface.cpp |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 91f0143..5893d19 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -465,6 +465,14 @@ inline void MainInterface::createStatusBar()
 
     CONNECT( THEMIM->getIM(), seekRequested( float ),
              timeLabel, setDisplayPosition( float ) );
+
+    /* This shouldn't be necessary, but for somehow reason, the statusBarr
+       starts at height of 20px and when a text is shown it needs more space.
+       But, as the QMainWindow policy doesn't allow statusBar to change QMW's
+       geometry, we need to force a height. If you have a better idea, please
+       tell me -- jb
+     */
+    statusBarr->setFixedHeight( statusBarr->sizeHint().height() + 2 );
 }
 
 /**********************************************************************



More information about the vlc-commits mailing list