| 201 | } |
| 202 | |
| 203 | void 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 | } |
nothing calls this directly
no test coverage detected