X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fnickview.h;h=daa130ac8415bbd07cb2b8572bcee75bbb611f3c;hp=42e920abfd034f6ce6ae888270fdf712826b2c83;hb=e0e822499bb989ab48cc996ad0677f7f73b4709e;hpb=03896bdccdc8caf15bbce736680ba0f12bc2dc31 diff --git a/src/uisupport/nickview.h b/src/uisupport/nickview.h index 42e920ab..daa130ac 100644 --- a/src/uisupport/nickview.h +++ b/src/uisupport/nickview.h @@ -21,8 +21,13 @@ #ifndef _NICKVIEW_H_ #define _NICKVIEW_H_ + #include +#include "types.h" +#include "bufferinfo.h" + + class NickModel; class FilteredNickModel; class QSortFilterProxyModel; @@ -38,11 +43,17 @@ class NickView : public QTreeView { void rowsInserted(const QModelIndex &, int, int); public slots: - void setModel(QAbstractItemModel *model); + void setModel(QAbstractItemModel *model); + void init(); + void showContextMenu(const QPoint & pos); + void startQuery(const QModelIndex & modelIndex); -// private: -// QSortFilterProxyModel *filteredModel; + private: + BufferInfo bufferInfoFromModelIndex(const QModelIndex & index); + QString nickFromModelIndex(const QModelIndex & index); + void executeCommand(const BufferInfo & bufferInfo, const QString & command); }; + #endif