Changeset View
Changeset View
Standalone View
Standalone View
src/document/katedocument.cpp
Show First 20 Lines • Show All 4583 Lines • ▼ Show 20 Line(s) | 4575 | } else { | |||
---|---|---|---|---|---|
4584 | } else if (var == QLatin1String("indent-pasted-text") && checkBoolValue(val, &state)) { | 4584 | } else if (var == QLatin1String("indent-pasted-text") && checkBoolValue(val, &state)) { | ||
4585 | m_config->setIndentPastedText(state); | 4585 | m_config->setIndentPastedText(state); | ||
4586 | } else if (var == QLatin1String("replace-tabs") && checkBoolValue(val, &state)) { | 4586 | } else if (var == QLatin1String("replace-tabs") && checkBoolValue(val, &state)) { | ||
4587 | m_config->setReplaceTabsDyn(state); | 4587 | m_config->setReplaceTabsDyn(state); | ||
4588 | replaceTabsSet = true; // for backward compatibility; see below | 4588 | replaceTabsSet = true; // for backward compatibility; see below | ||
4589 | } else if (var == QLatin1String("remove-trailing-space") && checkBoolValue(val, &state)) { | 4589 | } else if (var == QLatin1String("remove-trailing-space") && checkBoolValue(val, &state)) { | ||
4590 | qCWarning(LOG_KTE) << i18n("Using deprecated modeline 'remove-trailing-space'. " | 4590 | qCWarning(LOG_KTE) << i18n("Using deprecated modeline 'remove-trailing-space'. " | ||
4591 | "Please replace with 'remove-trailing-spaces modified;', see " | 4591 | "Please replace with 'remove-trailing-spaces modified;', see " | ||
4592 | "http://docs.kde.org/stable/en/applications/kate/config-variables.html#variable-remove-trailing-spaces"); | 4592 | "https://docs.kde.org/stable5/en/applications/katepart/config-variables.html#variable-remove-trailing-spaces"); | ||
lueck: dead link: The requested URL /stable5/en/applications/kate/config-variables.html was not found… | |||||
4593 | m_config->setRemoveSpaces(state ? 1 : 0); | 4593 | m_config->setRemoveSpaces(state ? 1 : 0); | ||
4594 | } else if (var == QLatin1String("replace-trailing-space-save") && checkBoolValue(val, &state)) { | 4594 | } else if (var == QLatin1String("replace-trailing-space-save") && checkBoolValue(val, &state)) { | ||
4595 | qCWarning(LOG_KTE) << i18n("Using deprecated modeline 'replace-trailing-space-save'. " | 4595 | qCWarning(LOG_KTE) << i18n("Using deprecated modeline 'replace-trailing-space-save'. " | ||
4596 | "Please replace with 'remove-trailing-spaces all;', see " | 4596 | "Please replace with 'remove-trailing-spaces all;', see " | ||
4597 | "http://docs.kde.org/stable/en/applications/kate/config-variables.html#variable-remove-trailing-spaces"); | 4597 | "https://docs.kde.org/stable5/en/applications/katepart/config-variables.html#variable-remove-trailing-spaces"); | ||
lueck: dead link, see above | |||||
4598 | m_config->setRemoveSpaces(state ? 2 : 0); | 4598 | m_config->setRemoveSpaces(state ? 2 : 0); | ||
4599 | } else if (var == QLatin1String("overwrite-mode") && checkBoolValue(val, &state)) { | 4599 | } else if (var == QLatin1String("overwrite-mode") && checkBoolValue(val, &state)) { | ||
4600 | m_config->setOvr(state); | 4600 | m_config->setOvr(state); | ||
4601 | } else if (var == QLatin1String("keep-extra-spaces") && checkBoolValue(val, &state)) { | 4601 | } else if (var == QLatin1String("keep-extra-spaces") && checkBoolValue(val, &state)) { | ||
4602 | m_config->setKeepExtraSpaces(state); | 4602 | m_config->setKeepExtraSpaces(state); | ||
4603 | } else if (var == QLatin1String("tab-indents") && checkBoolValue(val, &state)) { | 4603 | } else if (var == QLatin1String("tab-indents") && checkBoolValue(val, &state)) { | ||
4604 | m_config->setTabIndents(state); | 4604 | m_config->setTabIndents(state); | ||
4605 | } else if (var == QLatin1String("show-tabs") && checkBoolValue(val, &state)) { | 4605 | } else if (var == QLatin1String("show-tabs") && checkBoolValue(val, &state)) { | ||
▲ Show 20 Lines • Show All 1392 Lines • Show Last 20 Lines |
dead link: The requested URL /stable5/en/applications/kate/config-variables.html was not found on this server.
This link works:
https://docs.kde.org/stable5/en/applications/katepart/config-variables.html#variable-remove-trailing-spaces