From 3136efffa0dee6ee78c84bf0b5e1060d0867d78f Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 8 Nov 2017 13:13:59 +0100 Subject: Project tree: Make code for diff against current file reusable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The same functionality should be available in the file system view. Change-Id: Ib31cb84924e767ebe06f595bf638a5e674d4f8b5 Reviewed-by: André Hartmann Reviewed-by: Orgad Shaneh --- src/plugins/texteditor/textdocument.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/texteditor/textdocument.h') diff --git a/src/plugins/texteditor/textdocument.h b/src/plugins/texteditor/textdocument.h index eecaa83823..65caa2b2e6 100644 --- a/src/plugins/texteditor/textdocument.h +++ b/src/plugins/texteditor/textdocument.h @@ -35,6 +35,7 @@ #include QT_BEGIN_NAMESPACE +class QAction; class QTextCursor; class QTextDocument; QT_END_NAMESPACE @@ -138,6 +139,9 @@ public: void setTabSettings(const TextEditor::TabSettings &tabSettings); void setFontSettings(const TextEditor::FontSettings &fontSettings); + static QAction *createDiffAgainstCurrentFileAction(QObject *parent, + const std::function &filePath); + signals: void aboutToOpen(const QString &fileName, const QString &realFileName); void openFinishedSuccessfully(); -- cgit v1.2.1