modernize: Prefer default member init over ctor init
[quassel.git] / src / uisupport / clickable.h
index 295256c..a57513f 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2013 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  *
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  ***************************************************************************/
 
-#ifndef CLICKABLE_H_
-#define CLICKABLE_H_
+#pragma once
+
+#include "uisupport-export.h"
+
+#include <vector>
 
 #include <QStackedWidget>
 
@@ -27,7 +30,7 @@
 
 class QModelIndex;
 
-class Clickable
+class UISUPPORT_EXPORT Clickable
 {
 public:
     // Don't change these enums without also changing dependent methods!
@@ -57,13 +60,10 @@ private:
 };
 
 
-class ClickableList : public QList<Clickable>
+class UISUPPORT_EXPORT ClickableList : public std::vector<Clickable>
 {
 public:
     static ClickableList fromString(const QString &);
 
     Clickable atCursorPos(int idx);
 };
-
-
-#endif // CLICKABLE_H_