qa: Use override in QtUi
[quassel.git] / src / qtui / qtui.h
index 4584c48..96e934f 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2012 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  *
@@ -15,7 +15,7 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program; if not, write to the                         *
  *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  ***************************************************************************/
 
 #ifndef QTUI_H
@@ -42,8 +42,8 @@ public:
     QtUi();
     ~QtUi();
 
-    MessageModel *createMessageModel(QObject *parent);
-    AbstractMessageProcessor *createMessageProcessor(QObject *parent);
+    MessageModel *createMessageModel(QObject *parent) override;
+    AbstractMessageProcessor *createMessageProcessor(QObject *parent) override;
 
     inline static QtUi *instance();
     inline static QtUiStyle *style();
@@ -60,21 +60,21 @@ public:
     static const QList<AbstractNotificationBackend::Notification> &activeNotifications();
 
 public slots:
-    virtual void init();
+    void init() override;
 
     uint invokeNotification(BufferId bufId, AbstractNotificationBackend::NotificationType type, const QString &sender, const QString &text);
     void closeNotification(uint notificationId);
     void closeNotifications(BufferId bufferId = BufferId());
 
 protected slots:
-    void connectedToCore();
-    void disconnectedFromCore();
+    void connectedToCore() override;
+    void disconnectedFromCore() override;
     void notificationActivated(uint notificationId);
     void bufferMarkedAsRead(BufferId);
 
 protected:
-    virtual void minimizeRestore(bool show);
-    virtual bool isHidingMainWidgetAllowed() const;
+    void minimizeRestore(bool show) override;
+    bool isHidingMainWidgetAllowed() const override;
 
 private slots:
     void useSystemTrayChanged(const QVariant &);