Minor code arrangements
This commit is contained in:
1 parent
3e704f1298
commit
ec39cdee48
5 files changed
+98
-89
No files matched your search
@@ -303,7 +303,7 @@ Void ModulesHandle::enableModuleIf( PlaYUVerAppModuleIf *pcCurrModuleIf )
|
||||
{
|
||||
if( ( pcCurrModuleIf->m_pcModule->m_uiModuleRequirements & MODULE_REQUIRES_NEW_WINDOW ) || bShowModulesNewWindow )
|
||||
{
|
||||
pcModuleSubWindow = new VideoSubWindow( m_pcParent, true );
|
||||
pcModuleSubWindow = new VideoSubWindow( this , true );
|
||||
pcModuleSubWindow->setWindowShortName( windowName );
|
||||
pcModuleSubWindow->setWindowName( windowName );
|
||||
|
||||
@@ -312,7 +312,7 @@ Void ModulesHandle::enableModuleIf( PlaYUVerAppModuleIf *pcCurrModuleIf )
|
||||
|
||||
pcCurrModuleIf->m_pcDisplaySubWindow = pcModuleSubWindow;
|
||||
pcCurrModuleIf->m_pcDisplaySubWindow->enableModule( pcCurrModuleIf, true );
|
||||
m_pcMdiArea->addSubWindow( pcModuleSubWindow );
|
||||
//m_pcMdiArea->addSubWindow( pcModuleSubWindow );
|
||||
}
|
||||
}
|
||||
else if( pcCurrModuleIf->m_pcModule->m_iModuleType == FRAME_MEASUREMENT_MODULE )
|
||||
@@ -342,7 +342,13 @@ Void ModulesHandle::enableModuleIf( PlaYUVerAppModuleIf *pcCurrModuleIf )
|
||||
|
||||
applyModuleIf( pcCurrModuleIf, false );
|
||||
QCoreApplication::processEvents();
|
||||
//pcModuleSubWindow->show();
|
||||
|
||||
if( pcModuleSubWindow )
|
||||
{
|
||||
QMdiSubWindow* window = m_pcMdiArea->addSubWindow( pcModuleSubWindow );
|
||||
window->show();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user