public slots:
void updateForViewport(qreal width, qreal height);
void setWidth(qreal width);
- void layout(qreal width = -1);
+ void layout(int start, int end, qreal width);
// these are used by the chatitems to notify the scene and manage selections
void setSelectingItem(ChatItem *item);
void requestBacklog();
#ifdef HAVE_WEBKIT
- void loadWebPreview(ChatItem *parentItem, const QString &url, const QRectF &urlRect);
+ void loadWebPreview(ChatItem *parentItem, const QUrl &url, const QRectF &urlRect);
void clearWebPreview(ChatItem *parentItem = 0);
#endif
protected slots:
void rowsInserted(const QModelIndex &, int, int);
void rowsAboutToBeRemoved(const QModelIndex &, int, int);
+ void dataChanged(const QModelIndex &, const QModelIndex &);
private slots:
void firstHandlePositionChanged(qreal xpos);
};
ChatItem *parentItem;
QGraphicsItem *previewItem;
- QString url;
+ QUrl url;
QRectF urlRect;
PreviewState previewState;
QTimer timer;