From: Jean-Baptiste Kempf Date: Sun, 23 Dec 2007 01:48:30 +0000 (+0000) Subject: Qt4 - Small fix to get a smaller size when a video ends. X-Git-Tag: 0.9.0-test0~3910 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ed6468966d3894d50759fddcad6e53e1ac006258;p=vlc Qt4 - Small fix to get a smaller size when a video ends. --- diff --git a/modules/gui/qt4/components/interface_widgets.hpp b/modules/gui/qt4/components/interface_widgets.hpp index 4e2f9c6e01..a03547925b 100644 --- a/modules/gui/qt4/components/interface_widgets.hpp +++ b/modules/gui/qt4/components/interface_widgets.hpp @@ -52,17 +52,18 @@ public: void *request( vout_thread_t *, int *, int *, unsigned int *, unsigned int * ); - void release( void * ); - int control( void *, int, va_list ); + void release( void * ); + int control( void *, int, va_list ); private: intf_thread_t *p_intf; - vlc_mutex_t lock; vout_thread_t *p_vout; + vlc_mutex_t lock; + signals: - //void askResize(); void askVideoWidgetToShow(); + //void askResize(); public slots: void SetSizing( unsigned int, unsigned int ); diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp index 12cce9832d..21b0703af0 100644 --- a/modules/gui/qt4/main_interface.cpp +++ b/modules/gui/qt4/main_interface.cpp @@ -529,7 +529,7 @@ void MainInterface::debug() */ QSize MainInterface::sizeHint() const { - int nwidth = controls->size().width(); + int nwidth = controls->sizeHint().width(); int nheight = controls->size().height() + menuBar()->size().height() + statusBar()->size().height();