X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtgui%2Fbufferview.h;h=8a130d6898fbeb90b72145f9e8bb61120d6c70d4;hp=561cae722ef955545d2276d53e78aadcdb7bc177;hb=902c95728306e5ba115de84800fc8d5d239c9d62;hpb=e7e564dcf469faa4c47383368a58cedbe3a204e6 diff --git a/src/qtgui/bufferview.h b/src/qtgui/bufferview.h index 561cae72..8a130d68 100644 --- a/src/qtgui/bufferview.h +++ b/src/qtgui/bufferview.h @@ -32,16 +32,24 @@ class BufferView : public QTreeView { Q_OBJECT - public: - BufferView(QWidget *parent = 0); - void init(); - void setModel(QAbstractItemModel *model); - void setFilteredModel(QAbstractItemModel *model, BufferViewFilter::Modes mode, QStringList nets); +public: + BufferView(QWidget *parent = 0); + void init(); + void setModel(QAbstractItemModel *model); + void setFilteredModel(QAbstractItemModel *model, BufferViewFilter::Modes mode, QStringList nets); - void dragEnterEvent(QDragEnterEvent *); - - protected: - void rowsInserted (const QModelIndex & parent, int start, int end); +public slots: + void select(const QModelIndex &); + +signals: + void eventDropped(QDropEvent *); + void removeBuffer(const QModelIndex &); + void selectionChanged(const QModelIndex &, QItemSelectionModel::SelectionFlags); + +protected: + void dropEvent(QDropEvent *); + void keyPressEvent(QKeyEvent *); + void rowsInserted (const QModelIndex & parent, int start, int end); };