diff options
author | Adam Treat <atreat@rim.com> | 2012-01-22 17:05:02 -0500 |
---|---|---|
committer | Leandro Melo <leandro.melo@nokia.com> | 2012-02-10 12:42:29 +0100 |
commit | fe9eeece403e15d88759aa3766168f7c7d76d5d7 (patch) | |
tree | cd5687324b58c0ab79cba9859be163cf0fab8312 /src/plugins/texteditor/texteditoractionhandler.h | |
parent | ff083c1e3daa8b7df258374a5923d031e70f5f4c (diff) |
Adds two actions to indent and unindent a selection.
Add actions to the basetexteditor to indent and unindent a selection. These actions
are equivalent to Key_Tab and Key_BackTab respectively. The advantage of having
actions here is the user can override them and assign any key binding they want.
Thus, I could assign Ctrl+I and Shift+Ctrl+I to them and have the same behavior
as Kate.
Change-Id: I0a305a7b45018072a78f2880ea15650ea92095a1
Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
Diffstat (limited to 'src/plugins/texteditor/texteditoractionhandler.h')
-rw-r--r-- | src/plugins/texteditor/texteditoractionhandler.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/texteditor/texteditoractionhandler.h b/src/plugins/texteditor/texteditoractionhandler.h index f24e4ec845..70ff79237a 100644 --- a/src/plugins/texteditor/texteditoractionhandler.h +++ b/src/plugins/texteditor/texteditoractionhandler.h @@ -138,6 +138,8 @@ private slots: void uppercaseSelection(); void lowercaseSelection(); void updateCurrentEditor(Core::IEditor *editor); + void indent(); + void unindent(); void gotoLineStart(); void gotoLineStartWithSelection(); @@ -206,6 +208,8 @@ private: QAction *m_insertLineBelowAction; QAction *m_upperCaseSelectionAction; QAction *m_lowerCaseSelectionAction; + QAction *m_indentAction; + QAction *m_unindentAction; QList<QAction *> m_modifyingActions; uint m_optionalActions; |