Fix problems with modules enable/disable

This commit is contained in:
2015-02-02 22:26:14 +00:00
parent fb18de9ffa
commit e9443dcfd3
10 changed files with 98 additions and 44 deletions
+18 -2
View File
@@ -23,12 +23,13 @@
*/
#include "SubWindowHandle.h"
#include "PlaYUVerMdiSubWindow.h"
namespace plaYUVer
{
SubWindowHandle::SubWindowHandle( QWidget * parent, UInt category ) :
QScrollArea( parent )
QScrollArea( parent ),
m_cSubWindow( NULL )
{
setParent( parent );
setFocusPolicy( Qt::WheelFocus );
@@ -48,10 +49,18 @@ SubWindowHandle::SubWindowHandle( QWidget * parent, UInt category ) :
m_uiCategory = category;
m_cLastScroll = QPoint();
m_cWindowName = QString( " " );
connect(this, SIGNAL(destroyed()), this, SLOT(onDestroyed()));
}
void SubWindowHandle::onDestroyed()
{
return;
}
SubWindowHandle::~SubWindowHandle()
{
return;
}
QSize SubWindowHandle::getScrollSize()
@@ -149,4 +158,11 @@ Void SubWindowHandle::closeEvent( QCloseEvent *event )
event->accept();
}
Void SubWindowHandle::closeSubWindow()
{
close();
if( m_cSubWindow )
m_cSubWindow->close();
}
} // NAMESPACE