Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow horizontal scrolling with Shift+Scroll in EntryView. #11341

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

libklein
Copy link
Contributor

@libklein libklein commented Oct 9, 2024

Allows horizontal scrolling when pressing Shift + Scroll. This is currently limited to the EntryView.

The code changes are minimal: We listen to wheelEvent and forward it to the parent or the horizontal scrollbar depending on whether Shift is pressed or not.

Implements feature: #11337

Testing strategy

Tested locally.

Type of change

  • ✅ New feature (change that adds functionality)

if (event->modifiers() & Qt::ShiftModifier) {
horizontalScrollBar()->event(event);
} else {
QAbstractScrollArea::wheelEvent(event);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be calling down to the base class function.

@droidmonkey
Copy link
Member

You can already achieve this by pressing ALT and scrolling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants