Add a menu to select reference for all windows
This commit is contained in:
1 parent
fc54d02527
commit
b19dc41857
4 files changed
+6
-8
No files matched your search
@@ -215,9 +215,7 @@ Void DialogSubWindowSelector::removeSubWindow()
|
||||
for( Int i = 0; i < selectedWindows.size(); i++ )
|
||||
{
|
||||
QString currName = selectedWindows.at( i )->text();
|
||||
qDebug( ) << currName;
|
||||
Int indexCurrName = m_pcSelectedWindowListNames.indexOf( currName );
|
||||
qDebug( ) << indexCurrName;
|
||||
m_pcSelectedWindowListNames.removeAt( indexCurrName );
|
||||
m_listSelectedWindows->removeItemWidget( selectedWindows[i] );
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ SubWindowHandle* ModulesHandle::enableModuleIf( PlaYUVerAppModuleIf *pcCurrModul
|
||||
for( Int i = 0; i < m_pcMdiArea->subWindowList().size(); i++ )
|
||||
{
|
||||
subWindow = qobject_cast<SubWindowHandle*>( m_pcMdiArea->subWindowList().at( i ) );
|
||||
if( subWindow->windowTitle() == selectedWindows.at( j ) )
|
||||
if( subWindow->getWindowName() == selectedWindows.at( j ) )
|
||||
{
|
||||
subWindowList.append( qobject_cast<VideoSubWindow*>( m_pcMdiArea->subWindowList().at( i ) ) );
|
||||
pcCurrModuleIf->m_pcSubWindow[j] = qobject_cast<VideoSubWindow*>( m_pcMdiArea->subWindowList().at( i ) );
|
||||
|
||||
@@ -142,7 +142,10 @@ public:
|
||||
|
||||
Void setRefSubWindow( VideoSubWindow* subWindow )
|
||||
{
|
||||
m_pcReferenceSubWindow = subWindow;
|
||||
m_pcReferenceSubWindow = NULL;
|
||||
if( subWindow )
|
||||
if( m_pcCurrFrame->haveSameFmt( subWindow->getCurrFrame() ) )
|
||||
m_pcReferenceSubWindow = subWindow;
|
||||
}
|
||||
VideoSubWindow* getRefSubWindow()
|
||||
{
|
||||
|
||||
+1
-4
@@ -1403,10 +1403,7 @@ Void plaYUVerApp::createDockWidgets()
|
||||
QMainWindow::tabifyDockWidget( m_arraySideBars[FRAME_DOCK], m_arraySideBars[STREAM_DOCK] );
|
||||
//QMainWindow::setTabPosition(Qt::RightDockWidgetArea, QTabWidget::North);
|
||||
|
||||
m_arraySideBars[QUALITY_DOCK] = new QDockWidget( tr( "Quality Measurement" ), this );
|
||||
m_arraySideBars[QUALITY_DOCK]->setAllowedAreas( Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea );
|
||||
m_arraySideBars[QUALITY_DOCK]->setWidget( m_appModuleQuality->createDock() );
|
||||
addDockWidget( Qt::RightDockWidgetArea, m_arraySideBars[QUALITY_DOCK] );
|
||||
addDockWidget( Qt::RightDockWidgetArea, m_appModuleQuality->createDock() );
|
||||
}
|
||||
|
||||
Void plaYUVerApp::createStatusBar()
|
||||
|
||||
Reference in new issue
Block a user