X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fbufferviewoverlayfilter.h;h=65cbc517b7db18e5d3485b9d0b7ab3a85c98f217;hb=c0d6dc0dec628f2e143e37ecc95cec45e636f8a5;hp=de8b5e8cedd00cc542defe241c179c3518b1bcae;hpb=9d54503555534a2c554f09a33df6afa33d6308ec;p=quassel.git diff --git a/src/uisupport/bufferviewoverlayfilter.h b/src/uisupport/bufferviewoverlayfilter.h index de8b5e8c..65cbc517 100644 --- a/src/uisupport/bufferviewoverlayfilter.h +++ b/src/uisupport/bufferviewoverlayfilter.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-2020 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 BUFFERVIEWOVERLAYFILTER_H_ -#define BUFFERVIEWOVERLAYFILTER_H_ +#pragma once + +#include "uisupport-export.h" #include @@ -27,24 +28,21 @@ class BufferViewOverlay; -class BufferViewOverlayFilter : public QSortFilterProxyModel +class UISUPPORT_EXPORT BufferViewOverlayFilter : public QSortFilterProxyModel { Q_OBJECT public: - BufferViewOverlayFilter(QAbstractItemModel *model, BufferViewOverlay *overlay = 0); + BufferViewOverlayFilter(QAbstractItemModel* model, BufferViewOverlay* overlay = nullptr); - void setOverlay(BufferViewOverlay *overlay); + void setOverlay(BufferViewOverlay* overlay); protected: - bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const; + bool filterAcceptsRow(int source_row, const QModelIndex& source_parent) const override; private slots: void overlayDestroyed(); private: - BufferViewOverlay *_overlay; + BufferViewOverlay* _overlay; }; - - -#endif // BUFFERVIEWOVERLAYFILTER_H_