D15347: Modify CloseDialogHelper in parttest
    Tobias Deiminger 
    noreply at phabricator.kde.org
       
    Sat Sep  8 15:31:21 BST 2018
    
    
  
tobiasdeiminger created this revision.
Herald added a project: Okular.
Herald added a subscriber: okular-devel.
tobiasdeiminger requested review of this revision.
REVISION SUMMARY
  This is mainly preparation for upcoming typewriter tests
  
  - QApplication::activeModalWidget is the simplest way to lookup a modal QInputDialog. In consequence, Okular::Part *p is no longer required.
  - QMetaObject::invokeMethod(button, "click", Qt::QueuedConnection) is required to avoid crashes, when CloseDialogHelper is used for QInputDialog from PickPointEngine::addTextNote.
  
  The latter is probably a workaround for a hidden bug in Okulars PickPointEngine::addTextNote. Try this:
  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.
  That's basically the same as what we encountered in the test prior using invokeMethod.
  
  Depends on D15205 <https://phabricator.kde.org/D15205> (well, not really, but I think it's best to present this revision as part of patch series).
TEST PLAN
  - tests in parttest continue to work as they did before
REPOSITORY
  R223 Okular
BRANCH
  typewriter_test1 (branched from master)
REVISION DETAIL
  https://phabricator.kde.org/D15347
AFFECTED FILES
  autotests/parttest.cpp
To: tobiasdeiminger
Cc: okular-devel, ngraham, aacid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20180908/18de3a7b/attachment.html>
    
    
More information about the Okular-devel
mailing list