Fix minor issues when changing window modes. toolbars are not configured yet
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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 ) :
|
||||
|
||||
Reference in New Issue
Block a user