File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -308,8 +308,8 @@ CMainWindow::CMainWindow(QWidget *parent) :
308
308
309
309
// Uncomment the following line to have the old style where the dock
310
310
// area close button closes the active tab
311
- // d->DockManager-> setConfigFlags({
312
- // CDockManager::DockAreaHasCloseButton | CDockManager::DockAreaCloseButtonClosesTab});
311
+ // CDockManager:: setConfigFlags({CDockManager::DockAreaHasCloseButton
312
+ // | CDockManager::DockAreaCloseButtonClosesTab});
313
313
connect (d->PerspectiveComboBox , SIGNAL (activated (const QString&)),
314
314
d->DockManager , SLOT (openPerspective (const QString&)));
315
315
Original file line number Diff line number Diff line change @@ -181,7 +181,10 @@ void DockAreaTitleBarPrivate::createButtons()
181
181
#endif
182
182
CloseButton->setSizePolicy (QSizePolicy::Fixed, QSizePolicy::Expanding);
183
183
CloseButton->setIconSize (QSize (16 , 16 ));
184
- TopLayout->addWidget (CloseButton, 0 );
184
+ if (testConfigFlag (CDockManager::DockAreaHasCloseButton))
185
+ {
186
+ TopLayout->addWidget (CloseButton, 0 );
187
+ }
185
188
_this->connect (CloseButton, SIGNAL (clicked ()), SLOT (onCloseButtonClicked ()));
186
189
}
187
190
You can’t perform that action at this time.
0 commit comments