X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fbufferviewconfig.h;h=59164bb70a1c1fffbde43f8be76b2489f3817c37;hb=61aac1868f15babb7086d8bc6bbcff530346f438;hp=cbbac8d130dd65d13470d934a8dd2c0d17132c2d;hpb=1cb02004ee5973b89368bd84f234d4652794690d;p=quassel.git diff --git a/src/common/bufferviewconfig.h b/src/common/bufferviewconfig.h index cbbac8d1..59164bb7 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-2016 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;