X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtgui%2Fbufferviewfilter.h;h=e5082b4ffaa970189cb33a1e199b457e483cedba;hb=6869909402a4dc807ee5261cc2a0999ac33053ee;hp=cd93a220c73d8a7be6eef614d1a76e7ccdb2eaab;hpb=64ff44560cc13569ab4968e3d974b0b7e9820607;p=quassel.git diff --git a/src/qtgui/bufferviewfilter.h b/src/qtgui/bufferviewfilter.h index cd93a220..e5082b4f 100644 --- a/src/qtgui/bufferviewfilter.h +++ b/src/qtgui/bufferviewfilter.h @@ -22,6 +22,7 @@ #define _BUFFERVIEWFILTER_H_ #include +#include #include #include "buffer.h" #include "buffertreemodel.h" @@ -45,28 +46,29 @@ public: }; Q_DECLARE_FLAGS(Modes, Mode) - BufferViewFilter(QAbstractItemModel *model, Modes mode, QStringList nets, QObject *parent = 0); + BufferViewFilter(QAbstractItemModel *model, const Modes &mode, const QStringList &nets); public slots: void invalidateMe(); void changeCurrent(const QModelIndex &, const QModelIndex &); void doubleClickReceived(const QModelIndex &); - void select(const QModelIndex &, QItemSelectionModel::SelectionFlags); - void enterDrag(); - void leaveDrag(); - void addBuffer(const uint &, const QString &); + void select(const QModelIndex &); + //void enterDrag(); + //void leaveDrag(); + void dropEvent(QDropEvent *); signals: void currentChanged(const QModelIndex &, const QModelIndex &); void doubleClicked(const QModelIndex &); - void updateSelection(const QModelIndex &, QItemSelectionModel::SelectionFlags); + void selectionChanged(const QModelIndex &); private: bool filterAcceptBuffer(const QModelIndex &) const; bool filterAcceptNetwork(const QModelIndex &) const; bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const; bool lessThan(const QModelIndex &, const QModelIndex &); - + void addBuffer(const uint &, const QString &); + Modes mode; QStringList networks; QList customBuffers;