keep same frame num when reloading
This commit is contained in:
1 parent
44c3f50511
commit
c8855b8fdc
3 files changed
+10
-2
No files matched your search
@@ -73,6 +73,13 @@ SubWindowHandle::~SubWindowHandle()
|
||||
delete m_pCurrStream;
|
||||
}
|
||||
|
||||
Void SubWindowHandle::reloadFile()
|
||||
{
|
||||
Int currFrameNum = m_pCurrStream->getCurrFrameNum();
|
||||
loadFile( m_cCurrFileName, false );
|
||||
seekAbsoluteEvent( currFrameNum );
|
||||
}
|
||||
|
||||
Bool SubWindowHandle::loadFile( const QString &rcFilename, Bool bForceDialog )
|
||||
{
|
||||
UInt Width = 0, Height = 0, FrameRate = 30;
|
||||
|
||||
@@ -67,6 +67,7 @@ public:
|
||||
|
||||
Bool mayClose();
|
||||
Bool loadFile( const QString &rcFilename, Bool bForceDialog = false );
|
||||
Void reloadFile();
|
||||
Bool save();
|
||||
|
||||
Void play();
|
||||
|
||||
@@ -223,7 +223,7 @@ Void plaYUVerApp::format()
|
||||
Void plaYUVerApp::reload()
|
||||
{
|
||||
if( m_pcCurrentSubWindow )
|
||||
m_pcCurrentSubWindow->loadFile( m_pcCurrentSubWindow->currentFile(), false );
|
||||
m_pcCurrentSubWindow->reloadFile();
|
||||
}
|
||||
|
||||
Void plaYUVerApp::reloadAll()
|
||||
@@ -232,7 +232,7 @@ Void plaYUVerApp::reloadAll()
|
||||
for( Int i = 0; i < mdiArea->subWindowList().size(); i++ )
|
||||
{
|
||||
subWindow = qobject_cast<SubWindowHandle *>( mdiArea->subWindowList().at( i ) );
|
||||
subWindow->loadFile( m_pcCurrentSubWindow->currentFile(), false );
|
||||
subWindow->reloadFile();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user