Return the current text.
| 2385 | |
| 2386 | // Return the current text. |
| 2387 | QString QsciScintilla::text() const |
| 2388 | { |
| 2389 | int buflen = length() + 1; |
| 2390 | char *buf = new char[buflen]; |
| 2391 | |
| 2392 | SendScintilla(SCI_GETTEXT, buflen, buf); |
| 2393 | |
| 2394 | QString qs = bytesAsText(buf,buflen-1); |
| 2395 | delete[] buf; |
| 2396 | |
| 2397 | return qs; |
| 2398 | } |
| 2399 | |
| 2400 | |
| 2401 | // Return the text of a line. |
no outgoing calls
no test coverage detected