X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatmonitorfilter.h;fp=src%2Fqtui%2Fchatmonitorfilter.h;h=6b3adcd13e6ff8d02dffde4827e3f91c0c06477b;hp=d7f4c4bda09930e7d640b3b8f4841e93f93f178c;hb=694f9bfbf7f1af19108461c7e00d133e55082bce;hpb=61c8d84d1c849373e0f115dc748ed45cff95287d diff --git a/src/qtui/chatmonitorfilter.h b/src/qtui/chatmonitorfilter.h index d7f4c4bd..6b3adcd1 100644 --- a/src/qtui/chatmonitorfilter.h +++ b/src/qtui/chatmonitorfilter.h @@ -25,45 +25,47 @@ #include "messagefilter.h" -class ChatMonitorFilter : public MessageFilter { - Q_OBJECT +class ChatMonitorFilter : public MessageFilter +{ + Q_OBJECT public: - enum SenderFields { - NoField = 0x00, - NetworkField = 0x01, - BufferField = 0x02, - SenderField = 0x04, - AllFields = 0xff - }; + enum SenderFields { + NoField = 0x00, + NetworkField = 0x01, + BufferField = 0x02, + SenderField = 0x04, + AllFields = 0xff + }; - ChatMonitorFilter(MessageModel *model, QObject *parent = 0); + ChatMonitorFilter(MessageModel *model, QObject *parent = 0); - virtual bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const; - virtual QString idString() const { return "ChatMonitor"; } - virtual QVariant data(const QModelIndex &index, int role) const; + virtual bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const; + virtual QString idString() const { return "ChatMonitor"; } + virtual QVariant data(const QModelIndex &index, int role) const; - int showFields() const { return _showFields; } - bool showOwnMessages() const { return _showOwnMessages; } + int showFields() const { return _showFields; } + bool showOwnMessages() const { return _showOwnMessages; } public slots: - void addShowField(int field); - void removeShowField(int field); - void setShowOwnMessages(bool show); + void addShowField(int field); + void removeShowField(int field); + void setShowOwnMessages(bool show); private slots: - void showFieldsSettingChanged(const QVariant &newValue); - void showOwnMessagesSettingChanged(const QVariant &newValue); - void showHighlightsSettingChanged(const QVariant &newValue); - void operationModeSettingChanged(const QVariant &newValue); - void buffersSettingChanged(const QVariant &newValue); + void showFieldsSettingChanged(const QVariant &newValue); + void showOwnMessagesSettingChanged(const QVariant &newValue); + void showHighlightsSettingChanged(const QVariant &newValue); + void operationModeSettingChanged(const QVariant &newValue); + void buffersSettingChanged(const QVariant &newValue); private: - int _showFields; - bool _showOwnMessages; - QList _bufferIds; - bool _showHighlights; - int _operationMode; + int _showFields; + bool _showOwnMessages; + QList _bufferIds; + bool _showHighlights; + int _operationMode; }; + #endif