Bug 366781 - [frameworks] Implement zooming with a pinch gesture on a touch screen
Summary: [frameworks] Implement zooming with a pinch gesture on a touch screen
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.25.80
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-15 08:33 UTC by Oliver Sander
Modified: 2016-10-15 13:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Implement zooming with a two-finger pinch gesture on a touch screen. (1.79 KB, patch)
2016-08-15 08:35 UTC, Oliver Sander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Sander 2016-08-15 08:33:43 UTC
The attached patch implements document zoom controlled by a two-finger pinch gesture on a touch screen.  Can somebody please have a look at this?  The actual zooming was done by copy'n'paste, I don't understand the full details of how zooming works in okular, yet.

I tested it on my Lenovo Thinkpad Yoga, and it works nicely.

The patch needs some infrastructure from https://git.reviewboard.kde.org/r/126809/ 
On request, I can easily extract that infrastructure into a separate patch, or include it with this one here.

Unfortunately, I can't get ReviewBoard to accept the patch file.  The error message is

"The uploaded diff uses short revisions, but Review Board requires full revisions. Please generate a new diff using the --full-index parameter."

And when doing as told, I get 

"The specified diff file could not be parsed.
Line undefined: fatal: git cat-file 36b31779250246b13f1096f0af443027058d989e: bad file "

Any ideas?


Reproducible: Always
Comment 1 Oliver Sander 2016-08-15 08:35:12 UTC
Created attachment 100602 [details]
Implement zooming with a two-finger pinch gesture on a touch screen.

Needs the framework branch and

https://git.reviewboard.kde.org/r/126809/
Comment 2 Oliver Sander 2016-09-03 17:52:17 UTC
I managed to upload the patch to reviewboard after all:

https://git.reviewboard.kde.org/r/128821/

Unlike the patch that I attached above, the one at reviewboard applies directly to the frameworks branch, and contains all necessary gesture-grabbing infrastructure.  Therefore,

https://git.reviewboard.kde.org/r/126809/ 

is not needed.  Instead, the two will conflict.  I'll update one as soon as the other one is committed.
Comment 3 Martin Sandsmark 2016-10-15 13:23:32 UTC
Git commit 9d90a08ef5e22d682a5a5004128f72d1a5a84aff by Martin T. H. Sandsmark.
Committed on 15/10/2016 at 13:22.
Pushed by sandsmark into branch 'frameworks'.

Implement zooming with a pinch gesture on a touch screen

Patch by Oliver Sander <oliver.sander@tu-dresden.de>

REVIEW: 128821

M  +49   -0    ui/pageview.cpp
M  +5    -0    ui/pageview.h

http://commits.kde.org/okular/9d90a08ef5e22d682a5a5004128f72d1a5a84aff