X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fwebpreviewitem.cpp;h=8a24d6f69210a59161d2f45b934fe33a946b25b6;hp=a3c76915839f1de9c82c3a7e54b802422ed66fa6;hb=e8a39b4c3c92e193ab861a3fea84a261bb6fbd24;hpb=101848c405a81911bf0404b35c0046664c1d2303 diff --git a/src/qtui/webpreviewitem.cpp b/src/qtui/webpreviewitem.cpp index a3c76915..8a24d6f6 100644 --- a/src/qtui/webpreviewitem.cpp +++ b/src/qtui/webpreviewitem.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -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;