Commit 7e5abc72 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Try to fix minimal mode sizing.

parent 00187524
...@@ -531,9 +531,11 @@ void MainInterface::debug() ...@@ -531,9 +531,11 @@ void MainInterface::debug()
QSize MainInterface::sizeHint() const QSize MainInterface::sizeHint() const
{ {
int nwidth = controls->sizeHint().width(); int nwidth = controls->sizeHint().width();
int nheight = controls->size().height() int nheight = controls->isVisible() ?
+ menuBar()->size().height() controls->size().height()
+ statusBar()->size().height(); + menuBar()->size().height()
+ statusBar()->size().height()
: 0 ;
msg_Dbg( p_intf, "1 %i %i", nheight, nwidth ); msg_Dbg( p_intf, "1 %i %i", nheight, nwidth );
if( VISIBLE( bgWidget ) ) if( VISIBLE( bgWidget ) )
...@@ -757,7 +759,7 @@ void MainInterface::toggleMinimalView() ...@@ -757,7 +759,7 @@ void MainInterface::toggleMinimalView()
TOGGLEV( menuBar() ); TOGGLEV( menuBar() );
TOGGLEV( controls ); TOGGLEV( controls );
TOGGLEV( statusBar() ); TOGGLEV( statusBar() );
updateGeometry(); doComponentsUpdate();
} }
/* Video widget cannot do this synchronously as it runs in another thread */ /* Video widget cannot do this synchronously as it runs in another thread */
......
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