<table><tr><td style="">ngraham created this revision.<br />ngraham added a reviewer: Okular.<br />Herald added a project: Okular.<br />Herald added a subscriber: okular-devel.<br />ngraham requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D16345">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This patch implements a "Zoom to 100%" action and sticks it in the <span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">View</span></span></span> menu. Since it's a <tt style="background: #ebebeb; font-size: 13px;">KStandardAction</tt> with a <tt style="background: #ebebeb; font-size: 13px;">KStandardShortcut</tt>, 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.</p>

<p>FEATURE: 400048<br />
FIXED-IN: 18.12.0</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">Action works to zoom the document to 100% scale when invoked</li>
<li class="remarkup-list-item">Action is disabled when document is opened at 100% scale or is manually zoomed to 100% scale after being opened</li>
<li class="remarkup-list-item">All other zoom modes and action still work</li>
</ul>

<p>[image goes here]</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>BRANCH</strong><div><div>zoom-to-100 (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16345">https://phabricator.kde.org/D16345</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>part-viewermode.rc<br />
part.rc<br />
ui/pageview.cpp<br />
ui/pageview.h</div></div></div><br /><div><strong>To: </strong>ngraham, Okular<br /><strong>Cc: </strong>okular-devel, ngraham, aacid<br /></div>