forked from qt-creator/qt-creator
Handle "Diff All Modified Files" action enablement
Also rename it to "Diff Open Files". Task-number: QTCREATORBUG-17094 Change-Id: I370c32497fcb56cb2bd84700ef7cb4aa7ba0a573 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -28,7 +28,6 @@
|
||||
#include "diffeditor_global.h"
|
||||
|
||||
#include <coreplugin/diffservice.h>
|
||||
#include <texteditor/textdocument.h>
|
||||
#include <extensionsystem/iplugin.h>
|
||||
|
||||
QT_FORWARD_DECLARE_CLASS(QAction)
|
||||
@@ -58,10 +57,10 @@ public:
|
||||
void extensionsInitialized();
|
||||
|
||||
private slots:
|
||||
void updateCurrentEditor(Core::IEditor *editor);
|
||||
void updateActions();
|
||||
void updateDiffCurrentFileAction();
|
||||
void updateDiffOpenFilesAction();
|
||||
void diffCurrentFile();
|
||||
void diffAllModifiedFiles();
|
||||
void diffOpenFiles();
|
||||
void diffExternalFiles();
|
||||
|
||||
#ifdef WITH_TESTS
|
||||
@@ -72,7 +71,7 @@ private slots:
|
||||
#endif // WITH_TESTS
|
||||
private:
|
||||
QAction *m_diffCurrentFileAction;
|
||||
QPointer<TextEditor::TextDocument> m_currentTextDocument;
|
||||
QAction *m_diffOpenFilesAction;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user