D5656: Adds method to force the reloading of a document

Pedro Arthur P. R. Duarte noreply at phabricator.kde.org
Sat Apr 29 15:54:38 UTC 2017


pedroarthurp created this revision.
Restricted Application added subscribers: Frameworks, kwrite-devel.
Restricted Application added a project: Frameworks.

REVISION SUMMARY
  Currently, `KTextEditor::Document::documentReload()` shows a dialog asking the user if he/she wants to reload a file from disk. However, there are use cases where reloading the file from disk is the norm and no user interaction is required. For example, an external script would make changes in the file and those changes should be immediately reloaded.
  
  This patch then implements a mechanism through which `KTextEditor` clients could reload the file without asking user confirmation. The main motivation of this patch is to enable this no-confirmation-required file reloading to the external script facilities of kdevplataform.

REPOSITORY
  R39 KTextEditor

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

AFFECTED FILES
  src/document/katedocument.cpp
  src/document/katedocument.h
  src/include/ktexteditor/document.h

To: pedroarthurp
Cc: kwrite-devel, #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170429/9e3eb112/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list