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 4e2f9c6..a035479 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 12cce98..21b0703 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();