X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fbuffermodel.h;h=e45c60e656ce10a2b8322f948f5b25432c93243f;hb=f9fc50a5e043668a2525a6c0903ea339d4ba05b7;hp=4fb610db53743e727ffc72d4be65d70759a59e75;hpb=2f05c5d7e94d5e96d2b4bae59140fd3b60a7a62f;p=quassel.git diff --git a/src/client/buffermodel.h b/src/client/buffermodel.h index 4fb610db..e45c60e6 100644 --- a/src/client/buffermodel.h +++ b/src/client/buffermodel.h @@ -25,10 +25,10 @@ #include #include +#include "types.h" + class NetworkModel; -//class SelectionModelSynchronizer; #include "selectionmodelsynchronizer.h" -//class ModelPropertyMapper; #include "modelpropertymapper.h" class MappedSelectionModel; class QAbstractItemView; @@ -51,17 +51,16 @@ public: void mapProperty(int column, int role, QObject *target, const QByteArray &property); public slots: + QModelIndex currentIndex(); void setCurrentIndex(const QModelIndex &index, QItemSelectionModel::SelectionFlags command); - void selectBuffer(Buffer *buffer); signals: - void bufferSelected(Buffer *); void selectionChanged(const QModelIndex &); private: QPointer _selectionModelSynchronizer; QPointer _propertyMapper; - Buffer *currentBuffer; + BufferId currentBuffer; }; #endif // BUFFERMODEL_H