Changeset View
Changeset View
Standalone View
Standalone View
completion/helpers.cpp
Show First 20 Lines • Show All 203 Lines • ▼ Show 20 Line(s) | 199 | if (iface->configValue(QStringLiteral("replace-tabs")).toBool()) { | |||
---|---|---|---|---|---|
204 | * Provide a default implementation if current KatePart | 204 | * Provide a default implementation if current KatePart | ||
205 | * does not handle "indent-width". | 205 | * does not handle "indent-width". | ||
206 | */ | 206 | */ | ||
207 | return QStringLiteral(" "); | 207 | return QStringLiteral(" "); | ||
208 | } | 208 | } | ||
209 | return QStringLiteral("\t"); | 209 | return QStringLiteral("\t"); | ||
210 | } | 210 | } | ||
211 | 211 | | |||
212 | QString getIndendation( const QString &line ) { | 212 | QString getIndentation( const QString &line ) { | ||
213 | return line.left(line.indexOf(QRegExp("\\S"), 0)); | 213 | return line.left(line.indexOf(QRegExp("\\S"), 0)); | ||
214 | } | 214 | } | ||
215 | 215 | | |||
216 | } | 216 | } |