X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fbuffertreemodel.h;h=f84901809a817255ce3a6b11360378b39ef2caeb;hp=9d71dee7d5b1c32c8e6d22e13a3fd0161c3729e8;hb=64ff44560cc13569ab4968e3d974b0b7e9820607;hpb=73edffb5f0f6ecae4118c36a7ca2c0d479b7f8c6 diff --git a/src/client/buffertreemodel.h b/src/client/buffertreemodel.h index 9d71dee7..f8490180 100644 --- a/src/client/buffertreemodel.h +++ b/src/client/buffertreemodel.h @@ -58,7 +58,9 @@ class BufferTreeModel : public TreeModel { public: enum myRoles { BufferTypeRole = Qt::UserRole, - BufferActiveRole + BufferActiveRole, + BufferNameRole, + BufferIdRole }; //BufferTreeModel(const QList &, QObject *parent = 0); @@ -81,6 +83,7 @@ signals: void invalidateFilter(); void fakeUserInput(BufferId, QString); void updateSelection(const QModelIndex &, QItemSelectionModel::SelectionFlags); + void addBuffer(const uint &, const QString &); private: bool isBufferIndex(const QModelIndex &) const;