MCPcopy Create free account
hub / github.com/KDE/kate / updateLineSizeLabel

Method updateLineSizeLabel

addons/project/gitcommitdialog.cpp:203–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203void GitCommitDialog::updateLineSizeLabel()
204{
205 int len = m_le.text().length();
206 if (len <= 52) {
207 m_leLen.setText(i18nc("Number of characters", "%1 / 52", QString::number(len)));
208 } else {
209 const QColor red = KColorScheme().foreground(KColorScheme::NegativeText).color();
210 changeTextColorToRed(&m_le, red);
211 m_leLen.setText(i18nc("Number of characters", "<span style=\"color:%1;\">%2</span> / 52", red.name(), QString::number(len)));
212 }
213}

Callers

nothing calls this directly

Calls 4

changeTextColorToRedFunction · 0.85
textMethod · 0.80
setTextMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected