X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fwebpreviewitem.cpp;h=8a24d6f69210a59161d2f45b934fe33a946b25b6;hp=37b5fa7719c9e45f31ab9bc441a10a23b5387dce;hb=e8a39b4c3c92e193ab861a3fea84a261bb6fbd24;hpb=68878dc8366f2f4a0afe132847aad9a51a80cdbf diff --git a/src/qtui/webpreviewitem.cpp b/src/qtui/webpreviewitem.cpp index 37b5fa77..8a24d6f6 100644 --- a/src/qtui/webpreviewitem.cpp +++ b/src/qtui/webpreviewitem.cpp @@ -46,7 +46,7 @@ public: CustomWebView(QGraphicsProxyWidget *pItem) { proxyItem = pItem; } - bool event(QEvent *event) { + bool event(QEvent *event) override { if (event->type() == QEvent::UpdateRequest) { proxyItem->update(); @@ -58,7 +58,7 @@ public: #endif WebPreviewItem::WebPreviewItem(const QUrl &url) - : QGraphicsItem(0), // needs to be a top level item as we otherwise cannot guarantee that it's on top of other chatlines + : QGraphicsItem(nullptr), // needs to be a top level item as we otherwise cannot guarantee that it's on top of other chatlines _boundingRect(0, 0, 400, 300) { qreal frameWidth = 5;