Changeset View
Changeset View
Standalone View
Standalone View
src/view/kateviewinternal.cpp
Show First 20 Lines • Show All 3183 Lines • ▼ Show 20 Line(s) | 3183 | { | |||
---|---|---|---|---|---|
3184 | m_textHintTimer.stop(); | 3184 | m_textHintTimer.stop(); | ||
3185 | 3185 | | |||
3186 | KTextEditor::Cursor c = coordinatesToCursor(m_textHintPos, false); | 3186 | KTextEditor::Cursor c = coordinatesToCursor(m_textHintPos, false); | ||
3187 | if (!c.isValid()) { | 3187 | if (!c.isValid()) { | ||
3188 | return; | 3188 | return; | ||
3189 | } | 3189 | } | ||
3190 | 3190 | | |||
3191 | QStringList textHints; | 3191 | QStringList textHints; | ||
3192 | foreach(KTextEditor::TextHintProvider * const p, m_textHintProviders) { | 3192 | for (KTextEditor::TextHintProvider * const p : qAsConst(m_textHintProviders)) { | ||
3193 | const QString hint = p->textHint(m_view, c); | 3193 | const QString hint = p->textHint(m_view, c); | ||
3194 | if (!hint.isEmpty()) { | 3194 | if (!hint.isEmpty()) { | ||
3195 | textHints.append(hint); | 3195 | textHints.append(hint); | ||
3196 | } | 3196 | } | ||
3197 | } | 3197 | } | ||
3198 | 3198 | | |||
3199 | if (!textHints.isEmpty()) { | 3199 | if (!textHints.isEmpty()) { | ||
3200 | qCDebug(LOG_KTE) << "Hint text: " << textHints; | 3200 | qCDebug(LOG_KTE) << "Hint text: " << textHints; | ||
▲ Show 20 Lines • Show All 703 Lines • Show Last 20 Lines |