/***************************************************************************
- * Copyright (C) 2005-2012 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 *
_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));
}
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
{