aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/texteditoractionhandler.h
diff options
context:
space:
mode:
authorFawzi Mohamed <fawzi.mohamed@nokia.com>2011-05-19 12:25:27 +0200
committerTobias Hunger <tobias.hunger@nokia.com>2011-05-19 14:07:55 +0200
commited0f9f678e899c80f3c00c3c3442ca144b759fee (patch)
treed9e62a063a2057d4260d4db06131a72e2e6a9550 /src/plugins/texteditor/texteditoractionhandler.h
parent9d72a6e7c834d24dc5bbefd6c35e8f2cfbdc1e2f (diff)
Editor: fix disabling modifying actions for read-only editors
Now correctly disables all modifying actions and shortcuts of texteditoractionhandler if the editor is readonly. Task-number: QTCREATORBUG-4774 Change-Id: Ic212a2fe3b6dcc18e2fbc461d24bed031c67f6a2 Reviewed-on: http://codereview.qt.nokia.com/7 Reviewed-by: Bill King <bill.king@nokia.com> Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Diffstat (limited to 'src/plugins/texteditor/texteditoractionhandler.h')
-rw-r--r--src/plugins/texteditor/texteditoractionhandler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/texteditor/texteditoractionhandler.h b/src/plugins/texteditor/texteditoractionhandler.h
index bb0c7cf996..8f197676d0 100644
--- a/src/plugins/texteditor/texteditoractionhandler.h
+++ b/src/plugins/texteditor/texteditoractionhandler.h
@@ -41,6 +41,7 @@
#include <QtCore/QList>
#include <QtCore/QObject>
#include <QtCore/QPointer>
+#include <QtCore/QList>
namespace TextEditor {
@@ -186,6 +187,7 @@ private:
QAction *m_insertLineBelowAction;
QAction *m_upperCaseSelectionAction;
QAction *m_lowerCaseSelectionAction;
+ QList<QAction *> m_modifyingActions;
uint m_optionalActions;
QPointer<BaseTextEditorWidget> m_currentEditor;