[kde-freebsd] konsole session title limited to 20 chars in tab bar

Andriy Gapon avg at icyb.net.ua
Wed May 26 16:41:21 CEST 2010


on 26/05/2010 16:25 Raphael Kubo da Costa said the following:
> 
> Hmm, as you've said, even with a proper diff I don't think it'd be good to 
> keep a patch like this in our tree -- I strongly suggest filing a review 
> request for Konsole on reviewboard.kde.org for that.

Right. Of course.
Here's the diff just in case,

--- apps/konsole/src/ViewContainer.cpp.orig	2010-05-26 15:59:14 +0300
+++ apps/konsole/src/ViewContainer.cpp	2010-05-26 15:59:28 +0300
@@ -259,6 +259,7 @@
     , _dropIndicatorIndex(-1)
     , _drawIndicatorDisabled(false)
 {
+    setElideMode(Qt::ElideLeft);
 }
 void ViewContainerTabBar::setDropIndicator(int index, bool drawDisabled)
 {
@@ -756,9 +757,10 @@
         const int index = _stackWidget->indexOf( iter.next() );

         QString tabText = item->title();
+#if 0
         if (tabText.count() > MAX_TAB_TEXT_LENGTH)
             tabText = tabText.right(MAX_TAB_TEXT_LENGTH).prepend("...");
-
+#endif
         _tabBar->setTabText( index , tabText );
     }
 }


-- 
Andriy Gapon


More information about the kde-freebsd mailing list