diff --git a/app/ModulesHandle.cpp b/app/ModulesHandle.cpp index 4ec40fe..1cef3dd 100644 --- a/app/ModulesHandle.cpp +++ b/app/ModulesHandle.cpp @@ -158,7 +158,7 @@ Void ModulesHandle::updateMenus() m_arrayActions[FORCE_NEW_WINDOW_ACT]->setEnabled( hasSubWindow ); if( pcSubWindow ) { - QVector apcCurrentModule = pcSubWindow->getModuleArray(); + QList apcCurrentModule = pcSubWindow->getModuleArray(); for( Int i = 0; i < apcCurrentModule.size(); i++ ) { currModuleAction = apcCurrentModule.at( i )->m_pcModuleAction; @@ -187,7 +187,7 @@ Void ModulesHandle::processOpt( Int index ) VideoSubWindow* pcSubWindow = qobject_cast( m_pcMdiArea->activeSubWindow() ); if( pcSubWindow ) { - QVector apcCurrentModule = pcSubWindow->getModuleArray(); + QList apcCurrentModule = pcSubWindow->getModuleArray(); if( apcCurrentModule.size() > 1 ) { PlaYUVerAppModuleIf* pcCurrModule = apcCurrentModule.at( 0 ); diff --git a/app/VideoSubWindow.cpp b/app/VideoSubWindow.cpp index b4caef0..c32a39e 100644 --- a/app/VideoSubWindow.cpp +++ b/app/VideoSubWindow.cpp @@ -225,13 +225,13 @@ Void VideoSubWindow::disableModule( PlaYUVerAppModuleIf* pcModule ) Int modIdx = m_apcCurrentModule.indexOf( pcModule ); if( modIdx != -1 ) { - m_apcCurrentModule.remove( modIdx ); + m_apcCurrentModule.removeAt( modIdx ); ModulesHandle::destroyModuleIf( pcModule ); } } else { - QVector apcCurrentModule = m_apcCurrentModule; + QList apcCurrentModule = m_apcCurrentModule; for( Int i = 0; i < apcCurrentModule.size(); i++ ) { m_apcCurrentModule.removeOne( apcCurrentModule.at( i ) ); diff --git a/app/VideoSubWindow.h b/app/VideoSubWindow.h index aa994f4..911ae63 100644 --- a/app/VideoSubWindow.h +++ b/app/VideoSubWindow.h @@ -73,7 +73,7 @@ private: QString m_cFilename; //PlaYUVerAppModuleIf* m_pcCurrentModule; - QVector m_apcCurrentModule; + QList m_apcCurrentModule; VideoSubWindow* m_pcReferenceSubWindow; @@ -150,7 +150,7 @@ public: */ Void enableModule( PlaYUVerAppModuleIf* pcModule, Bool bThisWindow = true ); Void disableModule( PlaYUVerAppModuleIf* pcModule = NULL ); - QVector getModuleArray() + QList getModuleArray() { return m_apcCurrentModule; }