Commit 828d8c8a authored by Jean-Philippe Andre's avatar Jean-Philippe Andre

Qt: fix video widget size

parent 243768e6
...@@ -567,6 +567,7 @@ QSize MainInterface::sizeHint() const ...@@ -567,6 +567,7 @@ QSize MainInterface::sizeHint() const
int nwidth = controls->sizeHint().width(); int nwidth = controls->sizeHint().width();
int nheight = controls->isVisible() ? int nheight = controls->isVisible() ?
controls->size().height() controls->size().height()
+ inputC->size().height()
+ menuBar()->size().height() + menuBar()->size().height()
+ statusBar()->size().height() + statusBar()->size().height()
: 0 ; : 0 ;
...@@ -635,7 +636,7 @@ private: ...@@ -635,7 +636,7 @@ private:
/** /**
* README * README
* Thou shall not call/resize/hide widgets from on another thread. * 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, void *MainInterface::requestVideo( vout_thread_t *p_nvout, int *pi_x,
int *pi_y, unsigned int *pi_width, int *pi_y, unsigned int *pi_width,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment