[vlc-devel] commit: Qt: by default resize main interface so that it shows all MenuBar entries ( Jean-Philippe Andre )

git version control git at videolan.org
Sat Aug 23 08:03:08 CEST 2008


vlc | branch: master | Jean-Philippe Andre <jpeg at via.ecp.fr> | Sat Aug 23 02:04:34 2008 -0400| [da38842b1d8347b2cec4f6267c60a7c981e2550c] | committer: Jean-Philippe Andre 

Qt: by default resize main interface so that it shows all MenuBar entries

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

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

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 2cb3754..1c5a756 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -544,7 +544,8 @@ int MainInterface::privacyDialog( QList<ConfigControl *> *controls )
 
 QSize MainInterface::sizeHint() const
 {
-    int nwidth  = controls->sizeHint().width();
+    int nwidth  = __MAX( controls->sizeHint().width(),
+                         menuBar()->sizeHint().width() );
     int nheight = controls->isVisible() ?
                   controls->size().height()
                   + menuBar()->size().height()




More information about the vlc-devel mailing list