Introduce an id string for the views (provided by MessageFilter); allows storing...
[quassel.git] / src / qtui / chatscene.h
index daabba7..8701f69 100644 (file)
@@ -36,7 +36,7 @@ class ChatScene : public QGraphicsScene {
   Q_OBJECT
 
   public:
-    ChatScene(QAbstractItemModel *model, QObject *parent);
+    ChatScene(QAbstractItemModel *model, const QString &idString, QObject *parent);
     virtual ~ChatScene();
 
     Buffer *buffer() const;
@@ -47,15 +47,16 @@ class ChatScene : public QGraphicsScene {
 
   private slots:
     void rectChanged(const QRectF &);
+    void handlePositionChanged(qreal xpos);
 
   signals:
     void heightChanged(qreal height);
 
   protected slots:
     void rowsInserted(const QModelIndex &, int, int);
-    void mousePressEvent(QGraphicsSceneMouseEvent * mouseEvent);
 
   private:
+    QString _idString;
     qreal _width, _height;
     QAbstractItemModel *_model;
     QList<ChatLine *> _lines;