| 652 | } |
| 653 | |
| 654 | QString KDevelop::TextView::viewStatus() const |
| 655 | { |
| 656 | Q_D(const TextView); |
| 657 | |
| 658 | // only show status when KTextEditor's own status bar isn't already enabled |
| 659 | const bool showStatus = !Core::self()->partControllerInternal()->showTextEditorStatusBar(); |
| 660 | if (!showStatus) { |
| 661 | return QString(); |
| 662 | } |
| 663 | |
| 664 | const KTextEditor::Cursor pos = d->view ? d->view->cursorPosition() : KTextEditor::Cursor::invalid(); |
| 665 | return i18n(" Line: %1 Col: %2 ", pos.line() + 1, pos.column() + 1); |
| 666 | } |
| 667 | |
| 668 | void KDevelop::TextView::sendStatusChanged() |
| 669 | { |
nothing calls this directly
no test coverage detected