X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtgui%2Fbufferviewfilter.h;h=cd93a220c73d8a7be6eef614d1a76e7ccdb2eaab;hp=8bce14392e052691bc1b93c19260bfe95e4b1283;hb=64ff44560cc13569ab4968e3d974b0b7e9820607;hpb=73edffb5f0f6ecae4118c36a7ca2c0d479b7f8c6 diff --git a/src/qtgui/bufferviewfilter.h b/src/qtgui/bufferviewfilter.h index 8bce1439..cd93a220 100644 --- a/src/qtgui/bufferviewfilter.h +++ b/src/qtgui/bufferviewfilter.h @@ -40,7 +40,8 @@ public: AllNets = 0x08, NoChannels = 0x10, NoQueries = 0x20, - NoServers = 0x40 + NoServers = 0x40, + FullCustom = 0x80 }; Q_DECLARE_FLAGS(Modes, Mode) @@ -51,6 +52,9 @@ public slots: 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 &); signals: void currentChanged(const QModelIndex &, const QModelIndex &); @@ -58,10 +62,14 @@ signals: void updateSelection(const QModelIndex &, QItemSelectionModel::SelectionFlags); 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 &); Modes mode; QStringList networks; + QList customBuffers; }; Q_DECLARE_OPERATORS_FOR_FLAGS(BufferViewFilter::Modes)