X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferviewfilter.h;h=f27352e7a66d0ce2eb48f1c20739c71b952d1697;hp=2a91733e9358d8672bf37afa4d9ea7d69bb15efd;hb=aa40491595ffec54ba340a9850d99dc14d920eb3;hpb=d6b056e936ec441258d291b7a8af7b83f9f53016 diff --git a/src/uisupport/bufferviewfilter.h b/src/uisupport/bufferviewfilter.h index 2a91733e..f27352e7 100644 --- a/src/uisupport/bufferviewfilter.h +++ b/src/uisupport/bufferviewfilter.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-07 by the Quassel IRC Team * + * Copyright (C) 2005-08 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -25,8 +25,8 @@ #include #include #include -#include "buffer.h" -#include "buffertreemodel.h" +// #include "buffer.h" +#include "types.h" /***************************************** * Buffer View Filter @@ -47,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; @@ -62,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)