projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
giving the chatscene more control over the webpreview thus making it less crashy
[quassel.git]
/
src
/
qtui
/
chatscene.h
diff --git
a/src/qtui/chatscene.h
b/src/qtui/chatscene.h
index
e0aaa50
..
aa741cb
100644
(file)
--- a/
src/qtui/chatscene.h
+++ b/
src/qtui/chatscene.h
@@
-31,6
+31,7
@@
class AbstractUiMsg;
class ChatItem;
class ChatLine;
class AbstractUiMsg;
class ChatItem;
class ChatLine;
+class WebPreviewItem;
class QGraphicsSceneMouseEvent;
class QGraphicsSceneMouseEvent;
@@
-65,6
+66,9
@@
public slots:
void requestBacklog();
void requestBacklog();
+ void loadWebPreview(ChatItem *parentItem, const QString &url, const QRectF &urlRect);
+ void clearWebPreview(ChatItem *parentItem = 0);
+
signals:
void lastLineChanged(QGraphicsItem *);
signals:
void lastLineChanged(QGraphicsItem *);
@@
-107,6
+111,15
@@
private:
bool _isSelecting;
int _lastBacklogSize;
bool _isSelecting;
int _lastBacklogSize;
+
+ struct WebPreview {
+ ChatItem *parentItem;
+ WebPreviewItem *previewItem;
+ QString url;
+ QRectF urlRect;
+ WebPreview() : parentItem(0), previewItem(0) {}
+ };
+ WebPreview webPreview;
};
bool ChatScene::containsBuffer(const BufferId &id) const {
};
bool ChatScene::containsBuffer(const BufferId &id) const {