Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Okular
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
34
Merge Requests
34
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Graphics
Okular
Commits
a2b7ce74
Commit
a2b7ce74
authored
Jul 08, 2017
by
ntninja
👲🏻
Committed by
Oliver Sander
Jul 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support Forward and Backward mouse buttons in presentation mode
REVIEW: 130172
parent
5fdbecf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
ui/presentationwidget.cpp
ui/presentationwidget.cpp
+8
-2
No files found.
ui/presentationwidget.cpp
View file @
a2b7ce74
...
...
@@ -702,8 +702,14 @@ void PresentationWidget::mousePressEvent( QMouseEvent * e )
m_goToNextPageOnRelease
=
true
;
}
// pressing right button
else
if
(
e
->
button
()
==
Qt
::
RightButton
)
// pressing the "move forward" mouse button: unlike the left button this
// always means "show next page", so we unconditionally delegate to that
// action on mouse button press
else
if
(
e
->
button
()
==
Qt
::
ForwardButton
)
{
slotNextPage
();
}
// pressing right or backward button
else
if
(
e
->
button
()
==
Qt
::
RightButton
||
e
->
button
()
==
Qt
::
BackButton
)
slotPrevPage
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment