]> git.sesse.net Git - vlc/commitdiff
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 8f54f33843a300eef8f38dfc12ac80127f89f7cb..e8ad9c6535795da4659a93f8f8e70f92621389ea 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,