[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kate] part/document: support replace-tabs in config interface
From: Milian Wolff <mail () milianw ! de>
Date: 2012-01-20 16:38:01
Message-ID: 20120120163801.09160A60B9 () git ! kde ! org
[Download RAW message or body]
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);
}
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic