X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferviewfilter.h;h=f27352e7a66d0ce2eb48f1c20739c71b952d1697;hp=d20445dc24c0620d70c395a636110e48b68eaaf6;hb=6bd0b562428184b3b4b2f50bac429bb20ce6a986;hpb=50706d89d4d60e258ebb6873d3778383621898e4 diff --git a/src/uisupport/bufferviewfilter.h b/src/uisupport/bufferviewfilter.h index d20445dc..f27352e7 100644 --- a/src/uisupport/bufferviewfilter.h +++ b/src/uisupport/bufferviewfilter.h @@ -26,6 +26,7 @@ #include #include // #include "buffer.h" +#include "types.h" /***************************************** * Buffer View Filter @@ -46,7 +47,7 @@ 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); @@ -56,7 +57,6 @@ public: public slots: void removeBuffer(const QModelIndex &); - void invalidateFilter_(); protected: bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const; @@ -64,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)