X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fbuffermodel.h;h=80f1ec0ab33e701c5aff00bd2478540edf657cb8;hp=4eb22308d380d4fce7c8991e368708390a640588;hb=a71a4cc60303b29f493d9d0b6636f00473c4eaf6;hpb=2a04cb443a50e37165fc2d5447cc705a813efd3e diff --git a/src/client/buffermodel.h b/src/client/buffermodel.h index 4eb22308..80f1ec0a 100644 --- a/src/client/buffermodel.h +++ b/src/client/buffermodel.h @@ -23,16 +23,14 @@ #include #include -#include #include "types.h" - -class NetworkModel; #include "selectionmodelsynchronizer.h" #include "modelpropertymapper.h" + +class NetworkModel; class MappedSelectionModel; class QAbstractItemView; -class Buffer; class BufferModel : public QSortFilterProxyModel { Q_OBJECT @@ -51,17 +49,14 @@ public: void synchronizeView(QAbstractItemView *view); void mapProperty(int column, int role, QObject *target, const QByteArray &property); -public slots: QModelIndex currentIndex(); - void setCurrentIndex(const QModelIndex &index, QItemSelectionModel::SelectionFlags command); - -signals: - void selectionChanged(const QModelIndex &); +private slots: + void currentChanged(const QModelIndex ¤t, const QModelIndex &previous); + private: SelectionModelSynchronizer _selectionModelSynchronizer; ModelPropertyMapper _propertyMapper; - BufferId currentBuffer; }; #endif // BUFFERMODEL_H