MCPcopy Create free account
hub / github.com/KDE/kdevelop / viewStatus

Method viewStatus

kdevplatform/shell/textdocument.cpp:654–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

652}
653
654QString 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
668void KDevelop::TextView::sendStatusChanged()
669{

Callers

nothing calls this directly

Calls 7

QStringClass · 0.70
invalidFunction · 0.50
cursorPositionMethod · 0.45
lineMethod · 0.45
columnMethod · 0.45

Tested by

no test coverage detected