Add background and start detecting the close event from subwindows

This commit is contained in:
2015-01-22 00:34:43 +00:00
parent 26623822fb
commit bece510edd
10 changed files with 164 additions and 54 deletions
+6 -2
View File
@@ -55,7 +55,7 @@ SubWindowHandle::~SubWindowHandle()
QSize SubWindowHandle::getScrollSize()
{
return QSize( viewport()->size().width() - 5, viewport()->size().height() - 5 );
return QSize( viewport()->size().width() - 5, viewport()->size().height() - 5 );
}
Void SubWindowHandle::adjustScrollBarByOffset( QPoint Offset )
@@ -116,7 +116,6 @@ Void SubWindowHandle::updateLastScrollValue()
m_cLastScroll.setY( scrollBar->value() );
}
Void SubWindowHandle::setWindowName( QString name )
{
m_cWindowName = name;
@@ -133,4 +132,9 @@ Bool SubWindowHandle::mayClose()
return true;
}
Void SubWindowHandle::closeEvent( QCloseEvent *event )
{
event->accept();
}
} // NAMESPACE