X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fbuffertreemodel.h;h=9916edd4de683500a465dd42f1166f39665e4d9e;hp=9d71dee7d5b1c32c8e6d22e13a3fd0161c3729e8;hb=a5c0b0735d9a448be2556dfe5dc8e89bb4176cd7;hpb=73edffb5f0f6ecae4118c36a7ca2c0d479b7f8c6 diff --git a/src/client/buffertreemodel.h b/src/client/buffertreemodel.h index 9d71dee7..9916edd4 100644 --- a/src/client/buffertreemodel.h +++ b/src/client/buffertreemodel.h @@ -22,7 +22,6 @@ #define _BUFFERTREEMODEL_H_ #include -#include // FIXME Dependency on QtGui #include "treemodel.h" #include "buffer.h" @@ -58,10 +57,11 @@ class BufferTreeModel : public TreeModel { public: enum myRoles { BufferTypeRole = Qt::UserRole, - BufferActiveRole + BufferActiveRole, + BufferNameRole, + BufferIdRole }; - //BufferTreeModel(const QList &, QObject *parent = 0); BufferTreeModel(QObject *parent = 0); static QList defaultHeader(); @@ -80,7 +80,7 @@ signals: void bufferSelected(Buffer *); void invalidateFilter(); void fakeUserInput(BufferId, QString); - void updateSelection(const QModelIndex &, QItemSelectionModel::SelectionFlags); + void selectionChanged(const QModelIndex &); private: bool isBufferIndex(const QModelIndex &) const;