Qt: fix video widget size
authorJean-Philippe Andre <jpeg@via.ecp.fr>
Thu, 29 Jan 2009 22:30:08 +0000 (23:30 +0100)
committerJean-Philippe Andre <jpeg@via.ecp.fr>
Thu, 29 Jan 2009 22:32:33 +0000 (23:32 +0100)
modules/gui/qt4/main_interface.cpp

index 8f54f33..e8ad9c6 100644 (file)
@@ -567,6 +567,7 @@ QSize MainInterface::sizeHint() const
     int nwidth  = controls->sizeHint().width();
     int nheight = controls->isVisible() ?
                   controls->size().height()
+                  + inputC->size().height()
                   + menuBar()->size().height()
                   + statusBar()->size().height()
                   : 0 ;
@@ -635,7 +636,7 @@ private:
 /**
  * README
  * Thou shall not call/resize/hide widgets from on another thread.
- * This is wrong, and this is TEH reason to emit signals on those Video Functions
+ * This is wrong, and this is THE reason to emit signals on those Video Functions
  **/
 void *MainInterface::requestVideo( vout_thread_t *p_nvout, int *pi_x,
                                    int *pi_y, unsigned int *pi_width,