X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fbufferviewconfig.h;h=8d135d2db82d1dc5965d13fe5ae91081bfc992a9;hp=cbbac8d130dd65d13470d934a8dd2c0d17132c2d;hb=68878dc8366f2f4a0afe132847aad9a51a80cdbf;hpb=1cb02004ee5973b89368bd84f234d4652794690d diff --git a/src/common/bufferviewconfig.h b/src/common/bufferviewconfig.h index cbbac8d1..8d135d2d 100644 --- a/src/common/bufferviewconfig.h +++ b/src/common/bufferviewconfig.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 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 * @@ -39,6 +39,7 @@ class BufferViewConfig : public SyncableObject Q_PROPERTY(bool disableDecoration READ disableDecoration WRITE setDisableDecoration) Q_PROPERTY(int allowedBufferTypes READ allowedBufferTypes WRITE setAllowedBufferTypes) Q_PROPERTY(int minimumActivity READ minimumActivity WRITE setMinimumActivity) + Q_PROPERTY(bool showSearch READ showSearch WRITE setShowSearch) public : BufferViewConfig(int bufferViewId, QObject *parent = 0); @@ -76,6 +77,9 @@ public slots: inline bool hideInactiveNetworks() const { return _hideInactiveNetworks; } void setHideInactiveNetworks(bool hideInactiveNetworks); + inline bool showSearch() const { return _showSearch; } + void setShowSearch(bool showSearch); + virtual inline void requestSetBufferViewName(const QString &bufferViewName) { REQUEST(ARG(bufferViewName)) } const QList &bufferList() const { return _buffers; } @@ -135,6 +139,7 @@ private: bool _disableDecoration; int _allowedBufferTypes; int _minimumActivity; + bool _showSearch; QList _buffers; QSet _removedBuffers; QSet _temporarilyRemovedBuffers;