modernize: Use override instead of virtual
[quassel.git] / src / uisupport / tabcompleter.h
index 4e11c9d..a0e6074 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2015 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  *
@@ -18,8 +18,9 @@
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  ***************************************************************************/
 
-#ifndef TABCOMPLETER_H_
-#define TABCOMPLETER_H_
+#pragma once
+
+#include "uisupport-export.h"
 
 #include <QPointer>
 #include <QString>
@@ -31,7 +32,7 @@ class MultiLineEdit;
 class IrcUser;
 class Network;
 
-class TabCompleter : public QObject
+class UISUPPORT_EXPORT TabCompleter : public QObject
 {
     Q_OBJECT
 
@@ -46,7 +47,7 @@ public:
     void reset();
     void complete();
 
-    virtual bool eventFilter(QObject *obj, QEvent *event);
+    bool eventFilter(QObject *obj, QEvent *event) override;
 
 public slots:
     void onTabCompletionKey();
@@ -76,6 +77,3 @@ private:
 
     void buildCompletionList();
 };
-
-
-#endif