Q_OBJECT
public:
- ChatScene(QAbstractItemModel *model, QObject *parent);
+ ChatScene(QAbstractItemModel *model, const QString &idString, QObject *parent);
virtual ~ChatScene();
Buffer *buffer() const;
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;