| 191 | } |
| 192 | |
| 193 | int CodeEditor::getSelectionBlockCount() |
| 194 | { |
| 195 | QTextCursor cursor=textCursor(); |
| 196 | if(!cursor.hasSelection()) |
| 197 | return 0; |
| 198 | |
| 199 | int finish=cursor.blockNumber(); |
| 200 | cursor.setPosition(cursor.anchor()); |
| 201 | int start=cursor.blockNumber(); |
| 202 | |
| 203 | return std::abs(finish-start); |
| 204 | } |
| 205 | |
| 206 | void CodeEditor::increaseSelectionIndent() |
| 207 | { |
nothing calls this directly
no outgoing calls
no test coverage detected