X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferview.h;h=6bbca4ef88836df8ca32d99029799139777aa2d9;hp=032cd0fe162fd749a8697c69599c32c77ed26133;hb=09fea00d02da49748b6a040752759eab16ccd392;hpb=9cd9c0a87ff92b2cdac7bd5a7efdbcc924b57b48 diff --git a/src/uisupport/bufferview.h b/src/uisupport/bufferview.h index 032cd0fe..6bbca4ef 100644 --- a/src/uisupport/bufferview.h +++ b/src/uisupport/bufferview.h @@ -51,6 +51,7 @@ public: inline BufferViewConfig *config() { return _config; } void addActionsToMenu(QMenu *menu, const QModelIndex &index); + void addFilterActions(QMenu *contextMenu, const QModelIndex &index); public slots: void setRootIndexForNetworkId(const NetworkId &networkId); @@ -86,6 +87,20 @@ private: void storeExpandedState(NetworkId networkId, bool expanded); }; +// ****************************** +// TristateDelgate +// ****************************** +#include + +class TristateDelegate : public QStyledItemDelegate { + Q_OBJECT + +public: + TristateDelegate(QObject *parent = 0) : QStyledItemDelegate(parent) {} + bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index); +}; + + // ============================== // BufferView Dock // ==============================