X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fbuffermodel.h;h=cbfabaaeecf54ae4ac850b23e5cce9a1dff5d0da;hb=c194ed5fb3d15e14b9364f9796d3521910dc72fe;hp=38a88f6a7f8bc81a9782c8b7ebe7558ab7048111;hpb=9fc57dc2c000e80fb8bd746a090e2e8210e1278e;p=quassel.git diff --git a/src/client/buffermodel.h b/src/client/buffermodel.h index 38a88f6a..cbfabaae 100644 --- a/src/client/buffermodel.h +++ b/src/client/buffermodel.h @@ -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 * @@ -18,8 +18,9 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef BUFFERMODEL_H -#define BUFFERMODEL_H +#pragma once + +#include "client-export.h" #include #include @@ -32,14 +33,14 @@ class QAbstractItemView; -class BufferModel : public QSortFilterProxyModel +class CLIENT_EXPORT BufferModel : public QSortFilterProxyModel { Q_OBJECT public: - BufferModel(NetworkModel *parent = 0); + BufferModel(NetworkModel *parent = nullptr); - bool filterAcceptsRow(int sourceRow, const QModelIndex &parent) const; + bool filterAcceptsRow(int sourceRow, const QModelIndex &parent) const override; inline const SelectionModelSynchronizer *selectionModelSynchronizer() const { return &_selectionModelSynchronizer; } inline QItemSelectionModel *standardSelectionModel() const { return _selectionModelSynchronizer.selectionModel(); } @@ -75,6 +76,3 @@ private: SelectionModelSynchronizer _selectionModelSynchronizer; QPair _bufferToSwitchTo; }; - - -#endif // BUFFERMODEL_H