X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fuisupport%2Fnickview.h;h=18a2bd655ca0fcd98f8244723d908cdbdda823ad;hb=cd0868fff76dd067470881134fd736e1a1d97e71;hp=4f7a17428cc0b19e683059cd04f26b6997f07d84;hpb=4980c92e1b3712824affe519e52e6696d68068ba;p=quassel.git diff --git a/src/uisupport/nickview.h b/src/uisupport/nickview.h index 4f7a1742..18a2bd65 100644 --- a/src/uisupport/nickview.h +++ b/src/uisupport/nickview.h @@ -40,12 +40,19 @@ class NickView : public QTreeView { virtual ~NickView(); protected: - void rowsInserted(const QModelIndex &, int, int); + virtual void rowsInserted(const QModelIndex &, int, int); + virtual QSize sizeHint() const; public slots: void setModel(QAbstractItemModel *model); void init(); - void showContextMenu(const QPoint & pos ); + void showContextMenu(const QPoint & pos); + void startQuery(const QModelIndex & modelIndex); + + private: + BufferInfo bufferInfoFromModelIndex(const QModelIndex & index); + QString nickFromModelIndex(const QModelIndex & index); + void executeCommand(const BufferInfo & bufferInfo, const QString & command); };