/***************************************************************************
- * 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 *
CustomWebView(QGraphicsProxyWidget *pItem) {
proxyItem = pItem;
}
- bool event(QEvent *event) {
+ bool event(QEvent *event) override {
if (event->type() == QEvent::UpdateRequest)
{
proxyItem->update();
#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;