The only thing it does is re-calculating the sizeHint for MainInterface,
using videoWidget's sizeHint() instead of size().
ask _parent->isFloating()...
If you think this would be better, please FIXME it...
*/
ask _parent->isFloating()...
If you think this would be better, please FIXME it...
*/
QSize MainInterface::sizeHint() const
{
int nwidth = controls->sizeHint().width();
QSize MainInterface::sizeHint() const
{
int nwidth = controls->sizeHint().width();
}
else if( videoIsActive )
{
}
else if( videoIsActive )
{
- nheight += videoWidget->size().height();
- nwidth = videoWidget->size().width();
+ nheight += videoWidget->sizeHint().height();
+ nwidth = videoWidget->sizeHint().width();
msg_Dbg( p_intf, "2 %i %i", nheight, nwidth );
}
msg_Dbg( p_intf, "2 %i %i", nheight, nwidth );
}
-/* if( !dockPL->isFloating() && dockPL->isVisible() && dockPL->widget() )
+#if 0
+ if( !dockPL->isFloating() && dockPL->isVisible() && dockPL->widget() )
{
nheight += dockPL->size().height();
nwidth = __MAX( nwidth, dockPL->size().width() );
msg_Dbg( p_intf, "3 %i %i", nheight, nwidth );
{
nheight += dockPL->size().height();
nwidth = __MAX( nwidth, dockPL->size().width() );
msg_Dbg( p_intf, "3 %i %i", nheight, nwidth );
msg_Dbg( p_intf, "4 %i %i", nheight, nwidth );
return QSize( nwidth, nheight );
}
msg_Dbg( p_intf, "4 %i %i", nheight, nwidth );
return QSize( nwidth, nheight );
}
#if 0
/* FIXME This is dead code and need to be removed AT THE END */
void MainInterface::resizeEvent( QResizeEvent *e )
#if 0
/* FIXME This is dead code and need to be removed AT THE END */
void MainInterface::resizeEvent( QResizeEvent *e )
QMenu *getSysTrayMenu() { return systrayMenu; };
int getControlsVisibilityStatus();
QMenu *getSysTrayMenu() { return systrayMenu; };
int getControlsVisibilityStatus();
protected:
// void resizeEvent( QResizeEvent * );
void dropEvent( QDropEvent *);
protected:
// void resizeEvent( QResizeEvent * );
void dropEvent( QDropEvent *);