DockManager configFlags functions are now static because the configuration flags are global, added support for QToolButton as tab close button

This commit is contained in:
Uwe Kindler
2019-09-12 21:15:35 +02:00
parent dae677e479
commit bed99eacc2
6 changed files with 18 additions and 11 deletions

View File

@@ -299,6 +299,10 @@ CMainWindow::CMainWindow(QWidget *parent) :
d->ui.setupUi(this);
d->createActions();
// uncomment the following line if the tab close button should be
// a QToolButton instead of a QPushButton
//CDockManager::setConfigFlags(CDockManager::configFlags() | CDockManager::TabCloseButtonIsToolButton);
// Now create the dock manager and its content
d->DockManager = new CDockManager(this);