From kde-commits Sat Jan 21 10:52:36 2012 From: Dominik Haumann Date: Sat, 21 Jan 2012 10:52:36 +0000 To: kde-commits Subject: Re: [kate] part/document: support replace-tabs in config interface Message-Id: <201201211152.36620.dhdev () gmx ! de> X-MARC-Message: https://marc.info/?l=kde-commits&m=132714338631757 Please adapt the API documentation in ktexteditor/configinterface.h accordingly. Thanks, Dominik On Friday, 20. January 2012, Milian Wolff wrote: > Git commit 7f71b032be9aee12a3666565984f01fa671e7098 by Milian Wolff. > Committed on 20/01/2012 at 17:36. > Pushed by mwolff into branch 'master'. > > support replace-tabs in config interface > > meh, this should *really* be extended properly... > > in KDevelop this is needed to prevent e.g. tabs inserted > from our source formatter (e.g. astyle) to be dynamically > replaced by spaces again from kate... > > M +4 -0 part/document/katedocument.cpp > > http://commits.kde.org/kate/7f71b032be9aee12a3666565984f01fa671e7098 > > diff --git a/part/document/katedocument.cpp > b/part/document/katedocument.cpp index c4c0963..a852024 100644 > --- a/part/document/katedocument.cpp > +++ b/part/document/katedocument.cpp > @@ -4670,6 +4670,8 @@ QVariant KateDocument::configValue(const QString > &key) return m_config->backupSuffix(); > } else if (key == "backup-on-save-prefix") { > return m_config->backupPrefix(); > + } else if (key == "replace-tabs") { > + return m_config->replaceTabsDyn(); > } > > // return invalid variant > @@ -4706,6 +4708,8 @@ void KateDocument::setConfigValue(const QString > &key, const QVariant &value) } > > m_config->setBackupFlags(f); > + } else if (key == "replace-tabs") { > + m_config->setReplaceTabsDyn(bValue); > } > } > }