]> git.sesse.net Git - vlc/commitdiff
Qt4 - Small fix to get a smaller size when a video ends.
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 23 Dec 2007 01:48:30 +0000 (01:48 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 23 Dec 2007 01:48:30 +0000 (01:48 +0000)
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/main_interface.cpp

index 4e2f9c6e011ef56e326d2f384ffc51c937776e79..a03547925b00b6928d6c2c8b44d7f26aef0d4592 100644 (file)
@@ -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 );
index 12cce9832dd90dcb75188d9f47f905cc65d28fa1..21b0703af0e2de523eae21caef31ed4f385063e2 100644 (file)
@@ -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();