X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fbufferviewfilter.h;h=5e874f2eafcb01af2d8dc7e85d51f727d0fcf345;hb=2a04cb443a50e37165fc2d5447cc705a813efd3e;hp=c6b53cc10da8da659d0317d345515236740ead91;hpb=8699dd758516d0ded076811e8ea656adc95e69d0;p=quassel.git diff --git a/src/uisupport/bufferviewfilter.h b/src/uisupport/bufferviewfilter.h index c6b53cc1..5e874f2e 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,11 +47,14 @@ 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_(); @@ -61,12 +65,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)