Change QVector to QList
This commit is contained in:
1 parent
3c2a72d793
commit
f979a837aa
3 files changed
+6
-6
No files matched your search
@@ -158,7 +158,7 @@ Void ModulesHandle::updateMenus()
|
||||
m_arrayActions[FORCE_NEW_WINDOW_ACT]->setEnabled( hasSubWindow );
|
||||
if( pcSubWindow )
|
||||
{
|
||||
QVector<PlaYUVerAppModuleIf*> apcCurrentModule = pcSubWindow->getModuleArray();
|
||||
QList<PlaYUVerAppModuleIf*> 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<VideoSubWindow *>( m_pcMdiArea->activeSubWindow() );
|
||||
if( pcSubWindow )
|
||||
{
|
||||
QVector<PlaYUVerAppModuleIf*> apcCurrentModule = pcSubWindow->getModuleArray();
|
||||
QList<PlaYUVerAppModuleIf*> apcCurrentModule = pcSubWindow->getModuleArray();
|
||||
if( apcCurrentModule.size() > 1 )
|
||||
{
|
||||
PlaYUVerAppModuleIf* pcCurrModule = apcCurrentModule.at( 0 );
|
||||
|
||||
@@ -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<PlaYUVerAppModuleIf*> apcCurrentModule = m_apcCurrentModule;
|
||||
QList<PlaYUVerAppModuleIf*> apcCurrentModule = m_apcCurrentModule;
|
||||
for( Int i = 0; i < apcCurrentModule.size(); i++ )
|
||||
{
|
||||
m_apcCurrentModule.removeOne( apcCurrentModule.at( i ) );
|
||||
|
||||
@@ -73,7 +73,7 @@ private:
|
||||
|
||||
QString m_cFilename;
|
||||
//PlaYUVerAppModuleIf* m_pcCurrentModule;
|
||||
QVector<PlaYUVerAppModuleIf*> m_apcCurrentModule;
|
||||
QList<PlaYUVerAppModuleIf*> m_apcCurrentModule;
|
||||
|
||||
VideoSubWindow* m_pcReferenceSubWindow;
|
||||
|
||||
@@ -150,7 +150,7 @@ public:
|
||||
*/
|
||||
Void enableModule( PlaYUVerAppModuleIf* pcModule, Bool bThisWindow = true );
|
||||
Void disableModule( PlaYUVerAppModuleIf* pcModule = NULL );
|
||||
QVector<PlaYUVerAppModuleIf*> getModuleArray()
|
||||
QList<PlaYUVerAppModuleIf*> getModuleArray()
|
||||
{
|
||||
return m_apcCurrentModule;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user