Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Konsole Konsole
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 34
    • Merge requests 34
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Utilities
  • KonsoleKonsole
  • Merge requests
  • !516

Merged
Created Oct 30, 2021 by Henry Heino@personalizedrefrigeratorContributor

Kate-like touchscreen scrolling support

  • Overview 66
  • Commits 1
  • Pipelines 38
  • Changes 2

Summary

Adds minimalistic touchscreen scrolling support. This is an adaptation of Daniel Tang's MR 123 that was submitted to Kate/KWrite for Konsole.

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

Notes

  • Functionality implemented in the earlier #318 not covered by this MR will (hopefully!) be the subject of follow-up pull requests.
  • The goal of this MR is to quickly add minimalistic touchscreen support to Konsole.

Testing (if you don't have a touchscreen)

In TerminalDisplay::TerminalDisplay, add the line that starts with a + below. This should be near line 310 of TerminalDisplay.cpp.

    QScroller::scroller(this)->setScrollerProperties(prop);
    QScroller::scroller(this)->grabGesture(this);
+    QScroller::scroller(this)->grabGesture(this, QScroller::LeftMouseButtonGesture);

    // Add the stretch item once, the KMessageWidgets are inserted at index 0.
    _verticalLayout->addWidget(_headerBar);
    _verticalLayout->addStretch();

With this change, clicking and dragging should trigger inertial scrolling.

Edited Nov 06, 2021 by Henry Heino
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: pr/minimal-touchscreen-support