<table><tr><td style="">tobiasdeiminger created this revision.<br />Herald added a project: Okular.<br />Herald added a subscriber: okular-devel.<br />tobiasdeiminger 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/D15347">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This is mainly preparation for upcoming typewriter tests</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">QApplication::activeModalWidget is the simplest way to lookup a modal QInputDialog. In consequence, Okular::Part *p is no longer required.</li>
<li class="remarkup-list-item">QMetaObject::invokeMethod(button, "click", Qt::QueuedConnection) is required to avoid crashes, when CloseDialogHelper is used for QInputDialog from PickPointEngine::addTextNote.</li>
</ul>
<p>The latter is probably a workaround for a hidden bug in Okulars PickPointEngine::addTextNote. Try this:<br />
Fire up okular in KDABs gammaray, select inline note tool, and click into a page. Now 20..50 QInputDialogs pop up immediately, instead of 1.<br />
That's basically the same as what we encountered in the test prior using invokeMethod.</p>
<p>Depends on <a href="https://phabricator.kde.org/D15205" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D15205</a> (well, not really, but I think it's best to present this revision as part of patch series).</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">tests in parttest continue to work as they did before</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>BRANCH</strong><div><div>typewriter_test1 (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15347">https://phabricator.kde.org/D15347</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/parttest.cpp</div></div></div><br /><div><strong>To: </strong>tobiasdeiminger<br /><strong>Cc: </strong>okular-devel, ngraham, aacid<br /></div>