Clean code and fix some issues regarding video handle and subwindow management

This commit is contained in:
jfmcarreira committed 2014-12-30 19:06:05 +00:00
1 parent 1f9affe499
commit d7a8f52756
7 files changed
+56 -105

No files matched your search

+12
View File
@@ -267,6 +267,14 @@ Void VideoHandle::update( VideoSubWindow* currSubWindow )
update();
}
Void VideoHandle::updateSelectionArea( QRect area )
{
if( m_pcCurrentVideoSubWindow )
{
m_pcFramePropertiesSideBar->setSelection( area );
}
}
Void VideoHandle::closeSubWindow( VideoSubWindow* currSubWindow )
{
if( m_acPlayingSubWindows.contains( currSubWindow ) )
@@ -274,6 +282,10 @@ Void VideoHandle::closeSubWindow( VideoSubWindow* currSubWindow )
Int pos = m_acPlayingSubWindows.indexOf( currSubWindow );
m_acPlayingSubWindows.at( pos )->stop();
m_acPlayingSubWindows.remove( pos );
if( m_acPlayingSubWindows.size() < 2 )
{
m_arrayActions[VIDEO_LOCK_ACT]->setVisible( false );
}
}
}