X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fcoreaccountmodel.h;h=88bc341d97c5656d03b9e34a262b98e5e462abf4;hp=9814d08b211f184f8f87c61651251d27a76d9c7b;hb=8f2ee00f4edef1693628d3af0bdee84d725eb754;hpb=db6e6642a43143bc45ddb0732d144815b68e37f8 diff --git a/src/client/coreaccountmodel.h b/src/client/coreaccountmodel.h index 9814d08b..88bc341d 100644 --- a/src/client/coreaccountmodel.h +++ b/src/client/coreaccountmodel.h @@ -18,15 +18,16 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef COREACCOUNTMODEL_H_ -#define COREACCOUNTMODEL_H_ +#pragma once + +#include "client-export.h" #include #include #include "coreaccount.h" -class CoreAccountModel : public QAbstractListModel +class CLIENT_EXPORT CoreAccountModel : public QAbstractListModel { Q_OBJECT @@ -36,11 +37,11 @@ public: UuidRole }; - CoreAccountModel(QObject *parent = 0); - CoreAccountModel(const CoreAccountModel *other, QObject *parent = 0); + CoreAccountModel(QObject *parent = nullptr); + CoreAccountModel(const CoreAccountModel *other, QObject *parent = nullptr); - inline int rowCount(const QModelIndex &parent = QModelIndex()) const; - virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; + inline int rowCount(const QModelIndex &parent = QModelIndex()) const override; + QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; CoreAccount account(const QModelIndex &) const; CoreAccount account(AccountId) const; @@ -88,6 +89,3 @@ AccountId CoreAccountModel::internalAccount() const { return _internalAccount; } - - -#endif