D5656: Adds method to force the reloading of a document

Anthony Fieroni noreply at phabricator.kde.org
Mon Aug 21 07:29:49 UTC 2017


anthonyfieroni added a comment.


  Make a protected constructor
  
    Document::Document(DocumentPrivate &dd) : d(dd) {}
  
  In KateDocument extend DocumentPrivate with KateDocumentPrivate, override documentReload and give it to base Document
  
    KateDocument(...) : Document(*new KateDocumentPrivate)
  
  Then make documentReload public non-virtual in Document with implementation
  
    d->documentReload(...) => which will call KateDocumentPrivate override function

REPOSITORY
  R39 KTextEditor

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

To: pedroarthurp, dfaure, brauch, dhaumann, cullmann
Cc: anthonyfieroni, nalvarez, kwrite-devel, #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170821/9b018d8b/attachment.html>


More information about the Kde-frameworks-devel mailing list