X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fbufferview.h;h=e7d8fa9a87883adef2a8005440c487221a1c82ab;hb=ed9a0a3e6d1af81cc07a54d4feebb8a01c451fb8;hp=032cd0fe162fd749a8697c69599c32c77ed26133;hpb=3c2914faeb01f3bc32e29f40179ae88040fbcf59;p=quassel.git diff --git a/src/uisupport/bufferview.h b/src/uisupport/bufferview.h index 032cd0fe..e7d8fa9a 100644 --- a/src/uisupport/bufferview.h +++ b/src/uisupport/bufferview.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -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 // ============================== @@ -94,7 +109,6 @@ class BufferViewDock : public QDockWidget { public: BufferViewDock(BufferViewConfig *config, QWidget *parent); - BufferViewDock(QWidget *parent); inline BufferView *bufferView() const { return qobject_cast(widget()); }