X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatscene.h;h=52580716b41e09021fefd6c9fa367de17c75813a;hp=ed27be77412612d3fbcd6633cdf8b7f51721f57a;hb=900cce213a6ed000b7131a05a0dec7d04b35b023;hpb=3a3e844f9fcfd12235a0086af75ecd503b621ef4 diff --git a/src/qtui/chatscene.h b/src/qtui/chatscene.h index ed27be77..52580716 100644 --- a/src/qtui/chatscene.h +++ b/src/qtui/chatscene.h @@ -73,7 +73,6 @@ public: }; ChatScene(QAbstractItemModel *model, QString idString, qreal width, ChatView *parent); - ~ChatScene() override; inline QAbstractItemModel *model() const { return _model; } inline MessageFilter *filter() const { return qobject_cast(_model); } @@ -286,13 +285,12 @@ private: ShowPreview, HidePreview }; - ChatItem *parentItem; - QGraphicsItem *previewItem; + ChatItem *parentItem{nullptr}; + QGraphicsItem *previewItem{nullptr}; QUrl url; QRectF urlRect; - PreviewState previewState; + PreviewState previewState{NoPreview}; QTimer timer; - WebPreview() : parentItem(nullptr), previewItem(nullptr), previewState(NoPreview) {} }; WebPreview webPreview; #endif // HAVE_WEBKIT || HAVE_WEBENGINE