void pMainWindow::addDockManagerWidget( Qt::ToolBarArea area, QDockWidget* dockWidget, Qt::Orientation orientation ) { dockToolBar( area )->addDockWidget( dockWidget ); if ( orientation == Qt::Horizontal ) { dockWidget->setFeatures( dockWidget->features() ^ QDockWidget::DockWidgetVerticalTitleBar ); } else { dockWidget->setFeatures( dockWidget->features() | QDockWidget::DockWidgetVerticalTitleBar ); } }
void MNavigationBar::undockToolBar() { dockToolBar(NULL); }
void pMainWindow::setDockManagerAreaExclusive( Qt::ToolBarArea area, bool exclusive ) { dockToolBar( area )->setExclusive( exclusive ); }