X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fbufferviewconfig.cpp;h=54edae50bcc1649fa5c191b60e8e3f09d78e2b52;hp=08a3c5e47b7cece26eb2d2d14c81c312b95e0069;hb=3545504d0588f79ac92a7702c4cf78dc0adff05f;hpb=2fd8e1c1d5a04b167ffa73e9c011fd34faebe1fc diff --git a/src/common/bufferviewconfig.cpp b/src/common/bufferviewconfig.cpp index 08a3c5e4..54edae50 100644 --- a/src/common/bufferviewconfig.cpp +++ b/src/common/bufferviewconfig.cpp @@ -32,7 +32,8 @@ BufferViewConfig::BufferViewConfig(int bufferViewId, QObject *parent) _hideInactiveNetworks(false), _disableDecoration(false), _allowedBufferTypes(BufferInfo::StatusBuffer | BufferInfo::ChannelBuffer | BufferInfo::QueryBuffer | BufferInfo::GroupBuffer), - _minimumActivity(0) + _minimumActivity(0), + _showSearch(true) { setObjectName(QString::number(bufferViewId)); } @@ -144,6 +145,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 {