X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferviewoverlayfilter.h;h=e706e40af883637daf20c8b271b3fedb723f35a3;hp=d8db915d072b7cab793880e3def3460da44dc867;hb=HEAD;hpb=b65b9f7615165e8700a44d59b7275a55558dd45b diff --git a/src/uisupport/bufferviewoverlayfilter.h b/src/uisupport/bufferviewoverlayfilter.h index d8db915d..16d0ca60 100644 --- a/src/uisupport/bufferviewoverlayfilter.h +++ b/src/uisupport/bufferviewoverlayfilter.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2022 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_