Fix problem of closing windows in detached subwindow mode
This commit is contained in:
1 parent
d8f483c656
commit
0b59709839
8 files changed
+62
-34
No files matched your search
+12
-12
@@ -698,17 +698,17 @@ QSize VideoSubWindow::sizeHint( const QSize & maxSize ) const
|
||||
return isize;
|
||||
}
|
||||
|
||||
Void VideoSubWindow::closeEvent( QCloseEvent *event )
|
||||
{
|
||||
Bool bAccept = m_bIsPlaying ? false : true;
|
||||
if( bAccept )
|
||||
{
|
||||
event->accept();
|
||||
}
|
||||
else
|
||||
{
|
||||
event->ignore();
|
||||
}
|
||||
}
|
||||
//Void VideoSubWindow::closeEvent( QCloseEvent *event )
|
||||
//{
|
||||
// Bool bAccept = m_bIsPlaying ? false : true;
|
||||
// if( bAccept )
|
||||
// {
|
||||
// event->accept();
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// event->ignore();
|
||||
// }
|
||||
//}
|
||||
|
||||
} // NAMESPACE
|
||||
Reference in new issue
Block a user