forked from qt-creator/qt-creator
Implement diff on close, on revert and on external modification
Task-number: QTCREATORBUG-1531 Change-Id: I8c9a740d66eb7836b3df6850ac243260fd282b32 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
|
||||
#include "diffeditor_global.h"
|
||||
|
||||
#include <coreplugin/diffservice.h>
|
||||
#include <texteditor/textdocument.h>
|
||||
#include <extensionsystem/iplugin.h>
|
||||
|
||||
@@ -37,6 +38,16 @@ namespace Core { class IEditor; }
|
||||
namespace DiffEditor {
|
||||
namespace Internal {
|
||||
|
||||
class DiffEditorServiceImpl : public QObject, public Core::DiffService
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_INTERFACES(Core::DiffService)
|
||||
public:
|
||||
explicit DiffEditorServiceImpl(QObject *parent = nullptr);
|
||||
|
||||
void diffModifiedFiles(const QStringList &fileNames) override;
|
||||
};
|
||||
|
||||
class DiffEditorPlugin : public ExtensionSystem::IPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
Reference in New Issue
Block a user