X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferview.h;h=09d6613000c513319bba0d3483a42052f7c77378;hp=0f1b502f76058d0ebea0288bad91294e85a3cc0a;hb=4319168202d99ddb5895ae0984b2eb0c30b46952;hpb=f2e4609f070221a010eef8be98524c5ce88d228b diff --git a/src/uisupport/bufferview.h b/src/uisupport/bufferview.h index 0f1b502f..09d66130 100644 --- a/src/uisupport/bufferview.h +++ b/src/uisupport/bufferview.h @@ -42,12 +42,14 @@ public: void setModel(QAbstractItemModel *model); void setFilteredModel(QAbstractItemModel *model, BufferViewConfig *config); + virtual void setSelectionModel(QItemSelectionModel *selectionModel); void setConfig(BufferViewConfig *config); inline BufferViewConfig *config() { return _config; } - + public slots: void setRootIndexForNetworkId(const NetworkId &networkId); + void removeSelectedBuffers(); signals: void removeBuffer(const QModelIndex &); @@ -58,11 +60,13 @@ protected: virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); virtual void wheelEvent(QWheelEvent *); virtual QSize sizeHint() const; + virtual void focusInEvent(QFocusEvent *event) { QAbstractScrollArea::focusInEvent(event); } private slots: void joinChannel(const QModelIndex &index); void toggleHeader(bool checked); void showContextMenu(const QPoint &); + void layoutChanged(); private: QPointer _config;