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()
QSize MainInterface::sizeHint() const
{
int nwidth = controls->sizeHint().width();
int nheight = controls->size().height()
+ menuBar()->size().height()
+ statusBar()->size().height();
int nheight = controls->isVisible() ?
controls->size().height()
+ menuBar()->size().height()
+ statusBar()->size().height()
: 0 ;
msg_Dbg( p_intf, "1 %i %i", nheight, nwidth );
if( VISIBLE( bgWidget ) )
......@@ -757,7 +759,7 @@ void MainInterface::toggleMinimalView()
TOGGLEV( menuBar() );
TOGGLEV( controls );
TOGGLEV( statusBar() );
updateGeometry();
doComponentsUpdate();
}
/* 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