Fix minor issues when changing window modes. toolbars are not configured yet

This commit is contained in:
2015-04-09 16:03:37 +01:00
parent 65652df6ed
commit dae6ab4156
2 changed files with 11 additions and 3 deletions
+5 -3
View File
@@ -113,15 +113,18 @@ Void PlaYUVerSubWindowHandle::setWindowMode( Int iWindowMode )
m_apcSubWindowList.at( i )->sizeHint();
m_apcSubWindowList.at( i )->show();
}
setVisible( false );
parentWidget()->update();
parentWidget()->showNormal();
qApp->processEvents();
QSize screenSize = QApplication::desktop()->availableGeometry().size();
parentWidget()->move( 0, 0 );
parentWidget()->resize( screenSize.width(), 5 );
setVisible( false );
}
if( iWindowMode == MdiWSubWindows )
{
setVisible( true );
m_pcMdiArea = new PlaYUVerMdiArea( this );
m_pcMdiArea->setActivationOrder( QMdiArea::ActivationHistoryOrder );
connect( m_pcMdiArea, SIGNAL( subWindowActivated(QMdiSubWindow*) ), this, SLOT( updateActiveSubWindow() ) );
@@ -134,7 +137,6 @@ Void PlaYUVerSubWindowHandle::setWindowMode( Int iWindowMode )
}
parentWidget()->move( m_cMdiModeWindowPosition );
parentWidget()->resize( m_cMdiModeWindowSize );
setVisible( true );
}
m_iWindowMode = iWindowMode;
tileSubWindows();
+6
View File
@@ -39,6 +39,12 @@ Void PlotSubWindow::definePlotColors()
m_arrayColorList.append( Qt::yellow );
m_arrayColorList.append( Qt::gray );
m_arrayColorList.append( Qt::darkRed );
m_arrayColorList.append( Qt::darkGreen );
m_arrayColorList.append( Qt::darkRed );
m_arrayColorList.append( Qt::darkBlue );
m_arrayColorList.append( Qt::darkMagenta );
m_arrayColorList.append( Qt::darkCyan );
m_arrayColorList.append( Qt::darkYellow );
}
PlotSubWindow::PlotSubWindow( const QString& windowTitle, QWidget * parent ) :