X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclientsettings.cpp;h=b968406d86532f1f449f98dc5462a7384688f191;hp=0b77903755340e2df7657ead8495d86c3f5ea4cc;hb=79ae829bc853477bbd4869f9335912b1daf32953;hpb=b099603e2e1297ec41a354dc949729e4f77d7bbd diff --git a/src/client/clientsettings.cpp b/src/client/clientsettings.cpp index 0b779037..b968406d 100644 --- a/src/client/clientsettings.cpp +++ b/src/client/clientsettings.cpp @@ -125,6 +125,7 @@ QVariantMap CoreAccountSettings::retrieveAccountData(AccountId id) { 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(); @@ -166,6 +167,24 @@ QHash CoreAccountSettings::jumpKeyMap() { return keyMap; } +void CoreAccountSettings::setBufferViewOverlay(const QSet &viewIds) { + QVariantList variants; + foreach(int viewId, viewIds) { + variants << qVariantFromValue(viewId); + } + setAccountValue("BufferViewOverlay", variants); +} + +QSet CoreAccountSettings::bufferViewOverlay() { + QSet 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())); } @@ -262,6 +281,14 @@ QString TabCompletionSettings::completionSuffix() { 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); }