X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fbufferviewconfig.cpp;h=5bb9b1e1f22414c20a5620354cd43a4e7762c30f;hp=2b6f3409e09d5742fa3095a078c3ebfd5d4edfca;hb=8582c2ad5708a1972c85bea1cf8d81ad3ece4814;hpb=ce26c3770b254362c7bd1e094ba8f8bf22133653 diff --git a/src/common/bufferviewconfig.cpp b/src/common/bufferviewconfig.cpp index 2b6f3409..5bb9b1e1 100644 --- a/src/common/bufferviewconfig.cpp +++ b/src/common/bufferviewconfig.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -20,19 +20,9 @@ #include "bufferviewconfig.h" -#include "bufferinfo.h" - -INIT_SYNCABLE_OBJECT(BufferViewConfig) BufferViewConfig::BufferViewConfig(int bufferViewId, QObject *parent) : SyncableObject(parent), - _bufferViewId(bufferViewId), - _addNewBuffersAutomatically(true), - _sortAlphabetically(true), - _hideInactiveBuffers(false), - _hideInactiveNetworks(false), - _disableDecoration(false), - _allowedBufferTypes(BufferInfo::StatusBuffer | BufferInfo::ChannelBuffer | BufferInfo::QueryBuffer | BufferInfo::GroupBuffer), - _minimumActivity(0) + _bufferViewId(bufferViewId) { setObjectName(QString::number(bufferViewId)); } @@ -144,6 +134,16 @@ void BufferViewConfig::setHideInactiveNetworks(bool hideInactiveNetworks) emit configChanged(); } +void BufferViewConfig::setShowSearch(bool showSearch) { + if (_showSearch == showSearch) { + return; + } + + _showSearch = showSearch; + SYNC(ARG(showSearch)) + emit configChanged(); +} + QVariantList BufferViewConfig::initBufferList() const {