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