X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatmonitorfilter.h;h=1b151894e4f9302a143812f7e3a9403aee76745d;hp=a3344d02e533c44beac4680fd3e83fb6e29dbb13;hb=HEAD;hpb=03f61d2ab68356bd74f6f014651c823e79678cbd diff --git a/src/qtui/chatmonitorfilter.h b/src/qtui/chatmonitorfilter.h index a3344d02..b09ca49f 100644 --- a/src/qtui/chatmonitorfilter.h +++ b/src/qtui/chatmonitorfilter.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2018 by the Quassel Project * + * Copyright (C) 2005-2022 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -29,7 +29,8 @@ class ChatMonitorFilter : public MessageFilter Q_OBJECT public: - enum SenderFields { + enum SenderFields + { NoField = 0x00, NetworkField = 0x01, BufferField = 0x02, @@ -37,11 +38,11 @@ public: AllFields = 0xff }; - ChatMonitorFilter(MessageModel *model, QObject *parent = 0); + ChatMonitorFilter(MessageModel* model, QObject* parent = nullptr); - virtual bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const; - virtual QString idString() const { return "ChatMonitor"; } - virtual QVariant data(const QModelIndex &index, int role) const; + bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const override; + QString idString() const override { return "ChatMonitor"; } + QVariant data(const QModelIndex& index, int role) const override; int showFields() const { return _showFields; } bool showOwnMessages() const { return _showOwnMessages; } @@ -52,20 +53,20 @@ public slots: void setShowOwnMessages(bool show); private slots: - void showFieldsSettingChanged(const QVariant &newValue); - void showOwnMessagesSettingChanged(const QVariant &newValue); - void alwaysOwnSettingChanged(const QVariant &newValue); - void showHighlightsSettingChanged(const QVariant &newValue); - void operationModeSettingChanged(const QVariant &newValue); - void buffersSettingChanged(const QVariant &newValue); - void showBacklogSettingChanged(const QVariant &newValue); - void includeReadSettingChanged(const QVariant &newValue); + void showFieldsSettingChanged(const QVariant& newValue); + void showOwnMessagesSettingChanged(const QVariant& newValue); + void alwaysOwnSettingChanged(const QVariant& newValue); + void showHighlightsSettingChanged(const QVariant& newValue); + void operationModeSettingChanged(const QVariant& newValue); + void buffersSettingChanged(const QVariant& newValue); + void showBacklogSettingChanged(const QVariant& newValue); + void includeReadSettingChanged(const QVariant& newValue); /** * Updates the local setting cache of whether or not to show sender brackets * * @param[in] newValue If true, sender brackets are enabled, otherwise false. */ - void showSenderBracketsSettingChanged(const QVariant &newValue); + void showSenderBracketsSettingChanged(const QVariant& newValue); private: int _showFields; @@ -76,5 +77,5 @@ private: int _operationMode; bool _showBacklog; bool _includeRead; - bool _showSenderBrackets; /// If true, show brackets around sender names + bool _showSenderBrackets; /// If true, show brackets around sender names };