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