X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fbuffermodel.h;h=cbfabaaeecf54ae4ac850b23e5cce9a1dff5d0da;hb=98144aaad0cd747f186edcd0e36a1d67326ac766;hp=55febaee1239eab650f73fd3ad1d3df4935cf229;hpb=b65b9f7615165e8700a44d59b7275a55558dd45b;p=quassel.git diff --git a/src/client/buffermodel.h b/src/client/buffermodel.h index 55febaee..cbfabaae 100644 --- a/src/client/buffermodel.h +++ b/src/client/buffermodel.h @@ -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 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