[konsole] [Bug 403059] shrinking size of tabs

Sok Ann Yap bugzilla_noreply at kde.org
Wed May 22 05:29:29 BST 2019


https://bugs.kde.org/show_bug.cgi?id=403059

--- Comment #12 from Sok Ann Yap <sokann at gmail.com> ---
> > Seems to help — now up to 24 tabs can squash to fit, like before. However, with 25 or more tabs, it makes the window wider than the screen (which is 1920 pixels wide), though.

> The tabs seems to have a minimum width that I was not able to shrink.

In konsole 18.08.3 (before the QTabBar change), by default, the scrollbar also
starts to appear with 25 or more tabs, on a screen that is 1920 pixels wide.

Based on the phabricator change, I am able to get back the exact 18.08.3
behavior (scrollbar appearing after 25 or more tabs) with:

--- src/DetachableTabBar.cpp.orig       2019-05-22 11:24:43.341450877 +0700
+++ src/DetachableTabBar.cpp    2019-05-22 11:24:54.491383649 +0700
@@ -31,7 +31,9 @@
     dragType(DragType::NONE),
     _originalCursor(cursor()),
     tabId(-1)
-{}
+{
+    setElideMode(Qt::TextElideMode::ElideLeft);
+}

 bool DetachableTabBar::droppedContainerIsNotThis(const QPoint& currentPos)
const
 {

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list