vlc_mutex_destroy( &lock );
}
-QSize VideoWidget::sizeHint() const
-{
- return widgetSize;
-}
-
/**
* Request the video to avoid the conflicts
**/
/* Set the Widget to the correct Size */
void VideoWidget::SetSizing( unsigned int w, unsigned int h )
{
- widgetSize = QSize( w, h );
resize( w, h );
//updateGeometry(); // Needed for deinterlace
msg_Dbg( p_intf, "%i %i", sizeHint().height(), sizeHint().width() );
*/
QSize MainInterface::sizeHint() const
{
- int nwidth = controls->sizeHint().width();
- int nheight = controls->sizeHint().height()
+ int nwidth = controls->size().width();
+ int nheight = controls->size().height()
+ menuBar()->size().height()
+ statusBar()->size().height();
{
unsigned int *pi_width = va_arg( args, unsigned int * );
unsigned int *pi_height = va_arg( args, unsigned int * );
- *pi_width = videoWidget->widgetSize.width();
- *pi_height = videoWidget->widgetSize.height();
+ *pi_width = videoWidget->width();
+ *pi_height = videoWidget->height();
i_ret = VLC_SUCCESS;
break;
}