| 179 | } |
| 180 | |
| 181 | void CodeEditor::keyPressEvent(QKeyEvent* e) |
| 182 | { |
| 183 | if(e->key()==Qt::Key_Tab) { |
| 184 | if(e->modifiers()==Qt::ControlModifier) |
| 185 | return decreaseSelectionIndent(); |
| 186 | if(textCursor().hasSelection()) |
| 187 | return increaseSelectionIndent(); |
| 188 | } |
| 189 | |
| 190 | return QPlainTextEdit::keyPressEvent(e); |
| 191 | } |
| 192 | |
| 193 | int CodeEditor::getSelectionBlockCount() |
| 194 | { |
nothing calls this directly
no outgoing calls
no test coverage detected