Add MdiArea to a layout

This commit is contained in:
jfmcarreira committed 2015-01-21 00:37:16 +00:00
1 parent 26054b014e
commit 2103e9b40c
2 files changed
+7

No files matched your search

+5
View File
@@ -35,6 +35,11 @@ PlaYUVerSubWinManager::PlaYUVerSubWinManager( QWidget *parent ) :
m_bMdiModeEnabled = true;
m_pcMdiArea = new QMdiArea( this );
m_pcMdiArea->setActivationOrder( QMdiArea::ActivationHistoryOrder );
QHBoxLayout* m_pcWindowManagerLayout = new QHBoxLayout( this );
m_pcWindowManagerLayout->addWidget( m_pcMdiArea );
setLayout( m_pcWindowManagerLayout );
connect( m_pcMdiArea, SIGNAL( subWindowActivated(QMdiSubWindow*) ), this, SLOT( updateActiveSubWindow() ) );
+2
View File
@@ -46,6 +46,8 @@ private:
Bool m_bMdiModeEnabled;
QList<SubWindowHandle*> m_apcSubWindowList;
QList<QMdiSubWindow*> m_apcMdiSubWindowList;
QHBoxLayout* m_pcWindowManagerLayout;
QMdiArea* m_pcMdiArea;
SubWindowHandle* m_pcActiveWindow;