};
ChatScene(QAbstractItemModel *model, const QString &idString, qreal width, ChatView *parent);
virtual ~ChatScene();
inline QAbstractItemModel *model() const { return _model; }
};
ChatScene(QAbstractItemModel *model, const QString &idString, qreal width, ChatView *parent);
virtual ~ChatScene();
inline QAbstractItemModel *model() const { return _model; }
public slots:
void updateForViewport(qreal width, qreal height);
void setWidth(qreal width);
public slots:
void updateForViewport(qreal width, qreal height);
void setWidth(qreal width);
// these are used by the chatitems to notify the scene and manage selections
void setSelectingItem(ChatItem *item);
// these are used by the chatitems to notify the scene and manage selections
void setSelectingItem(ChatItem *item);
protected slots:
void rowsInserted(const QModelIndex &, int, int);
void rowsAboutToBeRemoved(const QModelIndex &, int, int);
protected slots:
void rowsInserted(const QModelIndex &, int, int);
void rowsAboutToBeRemoved(const QModelIndex &, int, int);
// calls to QChatScene::sceneRect() are very expensive. As we manage the scenerect ourselves
// we store the size in a member variable.
// calls to QChatScene::sceneRect() are very expensive. As we manage the scenerect ourselves
// we store the size in a member variable.
- QTimer delayTimer;
- QTimer deleteTimer;
- WebPreview() : parentItem(0), previewItem(0) {}
+ PreviewState previewState;
+ QTimer timer;
+ WebPreview() : parentItem(0), previewItem(0), previewState(NoPreview) {}