diff options
author | David Kaspar <dkaspar@blackberry.com> | 2013-10-17 09:16:18 +0200 |
---|---|---|
committer | David Kaspar <dkaspar@blackberry.com> | 2013-10-21 10:26:29 +0200 |
commit | 3d2ef178f67138ce8aa89449aa65fc56e9b74a01 (patch) | |
tree | a934c68f531ada2f22515b7bc031d6e82b9d576f /src/plugins/texteditor/texteditoractionhandler.h | |
parent | ab4207acf2f111f44d16ae5d63752ac59b312c1c (diff) | |
download | qt-creator-3d2ef178f67138ce8aa89449aa65fc56e9b74a01.tar.gz |
Qnx: Fixing Bar Descriptor XML file editor to provide editor actions
BarDescriptorEditorWidget is using TextEditorActionHandler class
to provide editor actions e.g. Undo, Redo, Cut, Copy, Paste accessible
from main menu and using shortcuts.
TextEditorActionHandler.resolveTextEditorWidget() virtual function is
added to all resolving TextEditorWidget for an Editor. This allows
to have IEditor->widget() to have non-BaseTextEditorWidget instances too.
Task-number: QTCREATORBUG-10040
Change-Id: I6f433fc307c13ef2b2a20c48e6473826f2619544
Reviewed-by: David Kaspar <dkaspar@blackberry.com>
Reviewed-by: David Schulz <david.schulz@digia.com>
Reviewed-by: Tobias Nätterlund <tobias.naetterlund@kdab.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
Diffstat (limited to 'src/plugins/texteditor/texteditoractionhandler.h')
-rw-r--r-- | src/plugins/texteditor/texteditoractionhandler.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/texteditor/texteditoractionhandler.h b/src/plugins/texteditor/texteditoractionhandler.h index 2e768b4b4e..a09e6a3a84 100644 --- a/src/plugins/texteditor/texteditoractionhandler.h +++ b/src/plugins/texteditor/texteditoractionhandler.h @@ -79,6 +79,7 @@ public slots: void updateCopyAction(); protected: + virtual BaseTextEditorWidget *resolveTextEditorWidget(Core::IEditor *editor) const; const QPointer<BaseTextEditorWidget> ¤tEditor() const; QAction *registerAction(const Core::Id &id, |