Change video lock button

This commit is contained in:
jfmcarreira committed 2014-12-09 18:54:40 +00:00
1 parent fc5e4147f3
commit 43eaa4fa8e
2 files changed
+16 -17

No files matched your search

+3 -3
View File
@@ -128,9 +128,9 @@ Bool SubWindowHandle::loadFile( QString cFilename, Bool bForceDialog )
Int InputFormat = -1;
if( !m_pCurrStream )
{
m_pCurrStream = new PlaYUVerStream;
}
{
m_pCurrStream = new PlaYUVerStream;
}
m_pCurrStream->getFormat( Width, Height, InputFormat, FrameRate );
+13 -14
View File
@@ -758,27 +758,26 @@ Void plaYUVerApp::seekSliderEvent( Int new_frame_num )
Void plaYUVerApp::lockButtonEvent()
{
if( !m_arrayActions[VIDEO_LOCK_ACT]->isChecked() )
if( m_arrayActions[VIDEO_LOCK_ACT]->isChecked() )
{
if( m_acPlayingSubWindows.contains( m_pcCurrentSubWindow ) )
{
if( m_acPlayingSubWindows.size() > 1 )
m_acPlayingSubWindows.clear();
m_acPlayingSubWindows.append( m_pcCurrentSubWindow );
}
else
{
if( m_acPlayingSubWindows.size() > 1 )
m_acPlayingSubWindows.clear();
SubWindowHandle *subWindow;
for( Int i = 0; i < mdiArea->subWindowList().size(); i++ )
SubWindowHandle *subWindow;
for( Int i = 0; i < mdiArea->subWindowList().size(); i++ )
{
subWindow = qobject_cast<SubWindowHandle *>( mdiArea->subWindowList().at( i ) );
if( !subWindow->getIsModule() )
{
subWindow = qobject_cast<SubWindowHandle *>( mdiArea->subWindowList().at( i ) );
if( !subWindow->getIsModule() )
m_acPlayingSubWindows.append( subWindow );
m_acPlayingSubWindows.append( subWindow );
m_pcFrameSlider->setMaximum( qMin( m_pcFrameSlider->maximum(), ( Int )subWindow->getInputStream()->getFrameNum() - 1 ) );
}
}
}
else
{
stop();
}
updateCurrFrameNum();
updateTotalFrameNum();
}