projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize: Use override instead of virtual
[quassel.git]
/
src
/
qtui
/
webpreviewitem.cpp
diff --git
a/src/qtui/webpreviewitem.cpp
b/src/qtui/webpreviewitem.cpp
index
a3c7691
..
8a24d6f
100644
(file)
--- a/
src/qtui/webpreviewitem.cpp
+++ b/
src/qtui/webpreviewitem.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-201
6
by the Quassel Project *
+ * Copyright (C) 2005-201
8
by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* 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;
}
CustomWebView(QGraphicsProxyWidget *pItem) {
proxyItem = pItem;
}
- bool event(QEvent *event) {
+ bool event(QEvent *event)
override
{
if (event->type() == QEvent::UpdateRequest)
{
proxyItem->update();
if (event->type() == QEvent::UpdateRequest)
{
proxyItem->update();
@@
-58,7
+58,7
@@
public:
#endif
WebPreviewItem::WebPreviewItem(const QUrl &url)
#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;
_boundingRect(0, 0, 400, 300)
{
qreal frameWidth = 5;