[vlc-devel] commit: Qt: fix video widget size (Jean-Philippe Andre )

git version control git at videolan.org
Thu Jan 29 23:33:28 CET 2009


vlc | branch: master | Jean-Philippe Andre <jpeg at via.ecp.fr> | Thu Jan 29 23:30:08 2009 +0100| [828d8c8a67910e1df772832da0004748de040279] | committer: Jean-Philippe Andre 

Qt: fix video widget size

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=828d8c8a67910e1df772832da0004748de040279
---

 modules/gui/qt4/main_interface.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 8f54f33..e8ad9c6 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -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,




More information about the vlc-devel mailing list