Minor changes in window title handle

This commit is contained in:
2015-08-04 15:19:14 +01:00
parent d9b3fe0db0
commit 43f4f15e90
4 changed files with 12 additions and 23 deletions
+8 -1
View File
@@ -353,7 +353,6 @@ Void ModulesHandle::activateModule()
if( ( pcCurrAppModuleIf->m_pcModule->m_uiModuleRequirements & MODULE_REQUIRES_NEW_WINDOW ) || bShowModulesNewWindow )
{
pcModuleSubWindow = new VideoSubWindow( VideoSubWindow::MODULE_SUBWINDOW );
pcModuleSubWindow->setWindowShortName( windowName );
pcModuleSubWindow->setWindowName( windowName );
connect( pcModuleSubWindow->getViewArea(), SIGNAL( selectionChanged( QRect ) ), m_appModuleVideo, SLOT( updateSelectionArea( QRect ) ) );
@@ -363,6 +362,14 @@ Void ModulesHandle::activateModule()
pcCurrAppModuleIf->m_pcDisplaySubWindow = pcModuleSubWindow;
}
else
{
QString windowName = videoSubWindowList.at( 0 )->getWindowName();
windowName.append( QStringLiteral( " - Module " ) );
windowName.append( pcCurrAppModuleIf->m_pcModule->m_pchModuleName );
videoSubWindowList.at( 0 )->setWindowName( windowName );
}
}
else if( pcCurrAppModuleIf->m_pcModule->m_iModuleType == FRAME_MEASUREMENT_MODULE )
{