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 )
{
+1 -1
View File
@@ -151,7 +151,7 @@ Void QualityMeasurementSidebar::updateSubWindowList()
continue;
}
}
currSubWindowName = pcVideoSubWindow->getWindowShortName();
currSubWindowName = pcVideoSubWindow->getWindowName();
m_pcWindowListNames.append( currSubWindowName );
m_pcVideoWindowList.append( pcVideoSubWindow );
}
+2 -12
View File
@@ -232,11 +232,6 @@ Bool VideoSubWindow::loadFile( QString cFilename, Bool bForceDialog )
{
m_pCurrStream = new PlaYUVerStream;
}
// else
// {
// delete m_pCurrStream;
// m_pCurrStream = new PlaYUVerStream;
// }
if( guessFormat( cFilename, Width, Height, InputFormat, FrameRate ) || bForceDialog )
{
@@ -274,11 +269,10 @@ Bool VideoSubWindow::loadFile( QString cFilename, Bool bForceDialog )
refreshFrame();
m_cFilename = cFilename;
m_cWindowShortName = QFileInfo( cFilename ).fileName();
updateVideoWindowInfo();
setWindowName( m_cWindowShortName );
return true;
}
@@ -296,7 +290,6 @@ Bool VideoSubWindow::loadFile( PlaYUVerStreamInfo* streamInfo )
}
m_sStreamInfo = *streamInfo;
m_cViewArea->setInputStream( m_pCurrStream );
QApplication::restoreOverrideCursor();
@@ -304,11 +297,8 @@ Bool VideoSubWindow::loadFile( PlaYUVerStreamInfo* streamInfo )
refreshFrame();
m_cFilename = streamInfo->m_cFilename;
m_cWindowShortName = QFileInfo( streamInfo->m_cFilename ).fileName();
updateVideoWindowInfo();
setWindowName( m_cWindowShortName );
setWindowName( QFileInfo( m_cFilename ).fileName() );
return true;
}
+1 -9
View File
@@ -90,7 +90,7 @@ private:
VideoSubWindow* m_pcReferenceSubWindow;
QString m_cWindowShortName;
//QString m_cWindowShortName;
QString m_cCurrFileName;
Bool m_bIsPlaying;
@@ -235,14 +235,6 @@ public:
QSize sizeHint() const;
QSize sizeHint( const QSize & ) const;
Void setWindowShortName( const QString& name )
{
m_cWindowShortName = name;
}
QString getWindowShortName()
{
return m_cWindowShortName;
}
QString getCurrentFileName()
{
return m_cFilename;