MCPcopy Create free account
hub / github.com/GilesBathgate/RapCAD / getSelectionBlockCount

Method getSelectionBlockCount

src/ui/codeeditor.cpp:193–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193int 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
206void CodeEditor::increaseSelectionIndent()
207{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected