forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user