summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/textdocument.h
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2017-11-08 13:13:59 +0100
committerEike Ziller <eike.ziller@qt.io>2017-11-13 07:47:46 +0000
commit3136efffa0dee6ee78c84bf0b5e1060d0867d78f (patch)
tree899d601095a5082b6202b569f3ced2d21d810c1a /src/plugins/texteditor/textdocument.h
parentd9cb19b229852af157ea092018a89ada27ffb3c3 (diff)
downloadqt-creator-3136efffa0dee6ee78c84bf0b5e1060d0867d78f.tar.gz
Project tree: Make code for diff against current file reusable
The same functionality should be available in the file system view. Change-Id: Ib31cb84924e767ebe06f595bf638a5e674d4f8b5 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/texteditor/textdocument.h')
-rw-r--r--src/plugins/texteditor/textdocument.h4
1 files changed, 4 insertions, 0 deletions
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 <QSharedPointer>
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<Utils::FileName()> &filePath);
+
signals:
void aboutToOpen(const QString &fileName, const QString &realFileName);
void openFinishedSuccessfully();