File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 27
27
- [ ` FloatingContainerForceNativeTitleBar ` (Linux only)] ( #floatingcontainerforcenativetitlebar-linux-only )
28
28
- [ ` FloatingContainerForceQWidgetTitleBar ` (Linux only)] ( #floatingcontainerforceqwidgettitlebar-linux-only )
29
29
- [ ` MiddleMouseButtonClosesTab ` ] ( #middlemousebuttonclosestab )
30
+ - [ ` DisableTabTextEliding ` ] ( #disabletabtexteliding )
30
31
- [ Auto-Hide Configuration Flags] ( #auto-hide-configuration-flags )
31
32
- [ Auto Hide Dock Widgets] ( #auto-hide-dock-widgets )
32
33
- [ Pinning Auto-Hide Widgets to a certain border] ( #pinning-auto-hide-widgets-to-a-certain-border )
@@ -465,6 +466,10 @@ under the mouse. So you do not need to exactly hit the tab close button to
465
466
close tab. Just click with the middle mouse button on a tab like this is
466
467
possible in various web browsers.
467
468
469
+ ### `DisableTabTextEliding`
470
+
471
+ Set this flag to disable eliding of tab texts in dock area tabs.
472
+
468
473

469
474
470
475
## Auto-Hide Configuration Flags
Original file line number Diff line number Diff line change @@ -213,6 +213,7 @@ public Q_SLOTS:
213
213
// !< If neither this nor FloatingContainerForceNativeTitleBar is set (the default) native titlebars are used except on known bad systems.
214
214
// ! Users can overwrite this by setting the environment variable ADS_UseNativeTitle to "1" or "0".
215
215
MiddleMouseButtonClosesTab = 0x2000000 , // ! If the flag is set, the user can use the mouse middle button to close the tab under the mouse
216
+ DisableTabTextEliding = 0x4000000 , // ! Set this flag to disable eliding of tab texts in dock area tabs
216
217
217
218
DefaultDockAreaButtons = DockAreaHasCloseButton
218
219
| DockAreaHasUndockButton
Original file line number Diff line number Diff line change @@ -245,7 +245,14 @@ DockWidgetTabPrivate::DockWidgetTabPrivate(CDockWidgetTab* _public) :
245
245
void DockWidgetTabPrivate::createLayout ()
246
246
{
247
247
TitleLabel = new tTabLabel ();
248
- TitleLabel->setElideMode (Qt::ElideRight);
248
+ if (CDockManager::testConfigFlag (CDockManager::DisableTabTextEliding))
249
+ {
250
+ TitleLabel->setElideMode (Qt::ElideNone);
251
+ }
252
+ else
253
+ {
254
+ TitleLabel->setElideMode (Qt::ElideRight);
255
+ }
249
256
TitleLabel->setText (DockWidget->windowTitle ());
250
257
TitleLabel->setObjectName (" dockWidgetTabLabel" );
251
258
TitleLabel->setAlignment (Qt::AlignCenter);
You can’t perform that action at this time.
0 commit comments