Fix size hint of video subwindows
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
*/
|
||||
|
||||
#include "PlaYUVerMdiSubWindow.h"
|
||||
#include "SubWindowHandle.h"
|
||||
|
||||
namespace plaYUVer
|
||||
{
|
||||
@@ -34,11 +35,13 @@ PlaYUVerMdiSubWindow::PlaYUVerMdiSubWindow( QWidget *parent ) :
|
||||
|
||||
QSize PlaYUVerMdiSubWindow::sizeHint() const
|
||||
{
|
||||
QSize sizeHint = widget()->sizeHint();
|
||||
QSize maxSize;
|
||||
if( parent() )
|
||||
maxSize = parentWidget()->size();
|
||||
QSize sizeHint = qobject_cast<SubWindowHandle*>( widget() )->sizeHint( maxSize );
|
||||
return sizeHint;
|
||||
}
|
||||
|
||||
|
||||
Void PlaYUVerMdiSubWindow::closeEvent( QCloseEvent *event )
|
||||
{
|
||||
emit aboutToClose( this );
|
||||
|
||||
Reference in New Issue
Block a user