NotepadNext icon indicating copy to clipboard operation
NotepadNext copied to clipboard

Tab bar should be scrollable with horizontal scroll gesture on touchpad/mouse

Open dzek69 opened this issue 1 year ago • 5 comments

When I hover the tab bar like that: image

I'd be great to be able to scroll it using touchpad gesture of horizontal scroll or using mouse that has horizontal scroll feature.

Personally I think it'd allow me to find the right tab much faster than the dropdown arrow on the right of the tabs.

Thanks in advance!

dzek69 avatar Feb 23 '24 20:02 dzek69

Again probably something the githubuser0xFFFF/Qt-Advanced-Docking-System would need to implement.

dail8859 avatar Feb 23 '24 20:02 dail8859

https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/issues/607

dail8859 avatar Feb 24 '24 02:02 dail8859

Looks like the maintainer of the library is not willing to address it even though it looks like it was implemented at one time.

There are hooks in the library to override some of the controls so if I have some time, I might try custom controls and implement it that way.

dail8859 avatar Feb 26 '24 15:02 dail8859

It is sad that maintainer does not want this feature. I'd be cool if you could still implement it, but I understand it might be not possible.

dzek69 avatar Feb 27 '24 10:02 dzek69

I took a shot at it yesterday and still no luck. It's odd because CDockAreaTabBar is a QScrollArea which by default should be scrollable. As noted in the issue something else seems to be handling the QWheelEvents and not letting them propagate to the CDockAreaTabBar. There's also a CDockAreaTitleBar in the mix. I'm no Qt expert so I can't really guess as to any good solutions. 🤷

dail8859 avatar Feb 27 '24 13:02 dail8859

Looks like this might have been fixed in https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/issues/654 but I need to pull in latest changes from there and test.

dail8859 avatar Jul 25 '24 13:07 dail8859

Yay, I can't wait! ⚡

dzek69 avatar Jul 25 '24 13:07 dzek69