map["ProxyUser"] = oldmap.value("proxyUser");
map["ProxyPassword"] = oldmap.value("proxyPassword");
map["ProxyType"] = oldmap.value("proxyType");
+ map["Internal"] = oldmap.value("InternalAccount");
map["AccountId"] = id.toInt();
map["Uuid"] = QUuid::createUuid().toString();
return keyMap;
}
+void CoreAccountSettings::setBufferViewOverlay(const QSet<int> &viewIds) {
+ QVariantList variants;
+ foreach(int viewId, viewIds) {
+ variants << qVariantFromValue(viewId);
+ }
+ setAccountValue("BufferViewOverlay", variants);
+}
+
+QSet<int> CoreAccountSettings::bufferViewOverlay() {
+ QSet<int> viewIds;
+ QVariantList variants = accountValue("BufferViewOverlay").toList();
+ QVariantList::const_iterator iter = variants.constBegin();
+ for(QVariantList::const_iterator iter = variants.constBegin(); iter != variants.constEnd(); iter++) {
+ viewIds << iter->toInt();
+ }
+ return viewIds;
+}
+
void CoreAccountSettings::removeAccount(AccountId id) {
removeLocalKey(QString("%1").arg(id.toInt()));
}
return localValue("CompletionSuffix", ": ").toString();
}
+void TabCompletionSettings::setAddSpaceMidSentence(bool space) {
+ setLocalValue("AddSpaceMidSentence", space);
+}
+
+bool TabCompletionSettings::addSpaceMidSentence() {
+ return localValue("AddSpaceMidSentence", false).toBool();
+}
+
void TabCompletionSettings::setSortMode(SortMode mode) {
setLocalValue("SortMode", mode);
}