[Konversation-devel] [Bug 279693] tab shows wrong channel name

Eike Hein hein at kde.org
Wed Sep 14 14:19:38 UTC 2011


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


Eike Hein <hein at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDSINFO                   |RESOLVED
         Resolution|WAITINGFORINFO              |UPSTREAM




--- Comment #7 from Eike Hein <hein kde org>  2011-09-14 14:19:38 ---
OK, we've found the cause now: This is actually a bug in kdelibs, uncovered by
recent code changes in Konversation. 

In Konversation commit e8a7b459 David Faure ported the method call that makes
tabs draggable from the old, deprecated KTabWidget::setTabReorderingEnabled()
to Qt's equivalent setMovable().

The problem is that this doesn't work well in conjunction with the call to
setAutomaticResizeTabs() made when the "Limit the size of the tab labels to fit
all on screen" checkbox is enabled in Konversation, because KTabWidget
maintains a copy of the tab names and is oblivious to the drag reorder done
inside Qt. The result is that when the tab bar moves between showing full
labels or eliding the labels as well as possibly some other circumstances, the
labels get replaced with what they were before dragging.

There's a couple of things to do now:
a) File a bug against KTabWidget, which I will do and reference here shortly.
b) We could go back to the deprecated setTabReorderingEnabled() for now to
avoid the bug.
c) You guys could either switch to the unaffected treeview version of the tab
bar (by placing tabs on the left) or disable "Limit the size of the tab labels
to fit all on screen" in the config dialog.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Konversation-devel mailing list