forked from qt-creator/qt-creator
CompilerExplorer: Fix undo
Fixes context handling for the Editor. This allows Undo/Redo actions to activate correctly. Change-Id: Ieb7fa27215f5746cf5f26e8e7b3b74f44023481c Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -58,6 +58,9 @@ public:
|
||||
void setCanUndoCallback(const Predicate &callback);
|
||||
void setCanRedoCallback(const Predicate &callback);
|
||||
|
||||
using UnhandledCallback = std::function<void(Utils::Id commandId, Core::IEditor *editor)>;
|
||||
void setUnhandledCallback(const UnhandledCallback &callback);
|
||||
|
||||
private:
|
||||
Internal::TextEditorActionHandlerPrivate *d;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user