| 31 | Selection(int caret, int anchor) : caret(caret), anchor(anchor) {} |
| 32 | |
| 33 | int start() const { return qMin(caret, anchor); } |
| 34 | int end() const { return qMax(caret, anchor); } |
| 35 | int length() const { return end() - start(); } |
| 36 | void set(int pos) { anchor = caret = pos; } |
no outgoing calls
no test coverage detected