X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fbufferviewconfig.cpp;h=e735e298a6e654f53353db97f8f29f274d956ca4;hb=61aac1868f15babb7086d8bc6bbcff530346f438;hp=15750ced5c6d133c4bb0a3df86b6a368dce3ca54;hpb=694f9bfbf7f1af19108461c7e00d133e55082bce;p=quassel.git diff --git a/src/common/bufferviewconfig.cpp b/src/common/bufferviewconfig.cpp index 15750ced..e735e298 100644 --- a/src/common/bufferviewconfig.cpp +++ b/src/common/bufferviewconfig.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-09 by the Quassel Project * + * Copyright (C) 2005-2016 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #include "bufferviewconfig.h" @@ -29,9 +29,11 @@ BufferViewConfig::BufferViewConfig(int bufferViewId, QObject *parent) _addNewBuffersAutomatically(true), _sortAlphabetically(true), _hideInactiveBuffers(false), + _hideInactiveNetworks(false), _disableDecoration(false), _allowedBufferTypes(BufferInfo::StatusBuffer | BufferInfo::ChannelBuffer | BufferInfo::QueryBuffer | BufferInfo::GroupBuffer), - _minimumActivity(0) + _minimumActivity(0), + _showSearch(false) { setObjectName(QString::number(bufferViewId)); } @@ -133,6 +135,26 @@ void BufferViewConfig::setHideInactiveBuffers(bool hideInactiveBuffers) emit configChanged(); } +void BufferViewConfig::setHideInactiveNetworks(bool hideInactiveNetworks) +{ + if (_hideInactiveNetworks == hideInactiveNetworks) + return; + + _hideInactiveNetworks = hideInactiveNetworks; + SYNC(ARG(hideInactiveNetworks)) + emit configChanged(); +} + +void BufferViewConfig::setShowSearch(bool showSearch) { + if (_showSearch == showSearch) { + return; + } + + _showSearch = showSearch; + SYNC(ARG(showSearch)) + emit configChanged(); +} + QVariantList BufferViewConfig::initBufferList() const {