Bug 424072

Summary: Tab bar auto-scrolls when there's a lot of tabs open
Product: [Applications] konsole Reporter: Avamander <Avamander>
Component: tabbarAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Avamander 2020-07-10 14:42:50 UTC
SUMMARY
If one opens a lot of tabs then the extra tabs get hidden and have to be scrolled to somehow. That works when you use the scroll wheel, but when you click on a tab the bar auto-scrolls to hide the overflown tabs.

For example these are the tabs open, tabs hidden due to overflow are in parenthesis:

1 2 3 4 5 6 7 (8) (9)
^

When one scrolls to see the last tab, like this:

(1) (2) 3 4 5 6 7 8 9
                    ^

Then clicking tab 8 will result in this:

(1) 2 3 4 5 6 7 8 (9) 
                ^

Instead of proper (this happens when you use the mouse wheel to scroll):

(1) (2) 3 4 5 6 7 8 9
                  ^


OBSERVED RESULT
The tab bar auto-scrolls and hides items that are after the clicked tab.


EXPECTED RESULT
The tab bar doesn't auto-scroll, that it behaves the same using a mouse click than it does when using a scroll wheel.


SOFTWARE/OS VERSIONS
Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Comment 1 Christoph Feck 2020-08-03 18:27:17 UTC
This is a QTabBar, which behaves this way. I believe the auto-scrolling was intentionally added, but maybe you can convince Qt developers that it is not working correctly. Please report this issue directly to them via https://bugreports.qt.io/
Comment 2 Avamander 2020-08-03 19:37:15 UTC
Upstream bug: https://bugreports.qt.io/browse/QTBUG-85871