D16345: Create new "Zoom to 100%" action

Nathaniel Graham noreply at phabricator.kde.org
Sun Oct 21 05:03:56 BST 2018


ngraham created this revision.
ngraham added a reviewer: Okular.
Herald added a project: Okular.
Herald added a subscriber: okular-devel.
ngraham requested review of this revision.

REVISION SUMMARY
  This patch implements a "Zoom to 100%" action and sticks it in the View menu. Since it's a `KStandardAction` with a `KStandardShortcut`, we automatically get the correct icon and keyboard shortcut, but we do override the name to be "Zoom to 100%" since that's clearer for Okular's use case.
  
  FEATURE: 400048
  FIXED-IN: 18.12.0

TEST PLAN
  - Action works to zoom the document to 100% scale when invoked
  - Action is disabled when document is opened at 100% scale or is manually zoomed to 100% scale after being opened
  - All other zoom modes and action still work
  
  [image goes here]

REPOSITORY
  R223 Okular

BRANCH
  zoom-to-100 (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D16345

AFFECTED FILES
  part-viewermode.rc
  part.rc
  ui/pageview.cpp
  ui/pageview.h

To: ngraham, #okular
Cc: okular-devel, ngraham, aacid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20181021/42678db2/attachment.html>


More information about the Okular-devel mailing list