X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferviewfilter.h;h=f27352e7a66d0ce2eb48f1c20739c71b952d1697;hp=c6b53cc10da8da659d0317d345515236740ead91;hb=770b7ef54b03f3ebd1e29a58b4757505e1809b2d;hpb=8699dd758516d0ded076811e8ea656adc95e69d0 diff --git a/src/uisupport/bufferviewfilter.h b/src/uisupport/bufferviewfilter.h index c6b53cc1..f27352e7 100644 --- a/src/uisupport/bufferviewfilter.h +++ b/src/uisupport/bufferviewfilter.h @@ -25,7 +25,8 @@ #include #include #include -#include "buffer.h" +// #include "buffer.h" +#include "types.h" /***************************************** * Buffer View Filter @@ -46,14 +47,16 @@ public: }; Q_DECLARE_FLAGS(Modes, Mode); - BufferViewFilter(QAbstractItemModel *model, const Modes &mode, const QList &nets); + BufferViewFilter(QAbstractItemModel *model, const Modes &mode, const QList &nets); virtual Qt::ItemFlags flags(const QModelIndex &index) const; virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent); - + + QVariant data(const QModelIndex &index, int role) const; + QVariant foreground(const QModelIndex &index) const; + public slots: void removeBuffer(const QModelIndex &); - void invalidateFilter_(); protected: bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const; @@ -61,12 +64,12 @@ protected: private: Modes mode; - QSet networks; - QSet buffers; + QSet networks; + QSet buffers; bool filterAcceptBuffer(const QModelIndex &) const; bool filterAcceptNetwork(const QModelIndex &) const; - void addBuffer(const uint &); + void addBuffer(const BufferId &); }; Q_DECLARE_OPERATORS_FOR_FLAGS(BufferViewFilter::Modes)