modernize: Use override instead of virtual
[quassel.git] / src / qtui / chatmonitorfilter.h
index ea115c9..7140213 100644 (file)
@@ -18,8 +18,7 @@
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  ***************************************************************************/
 
-#ifndef CHATMONITORFILTER_H_
-#define CHATMONITORFILTER_H_
+#pragma once
 
 #include <QDateTime>
 
@@ -38,11 +37,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; }
@@ -55,6 +54,7 @@ public slots:
 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);
@@ -70,6 +70,7 @@ private slots:
 private:
     int _showFields;
     bool _showOwnMessages;
+    bool _alwaysOwn;
     QList<BufferId> _bufferIds;
     bool _showHighlights;
     int _operationMode;
@@ -77,6 +78,3 @@ private:
     bool _includeRead;
     bool _showSenderBrackets;   /// If true, show brackets around sender names
 };
-
-
-#endif