X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fwebpreviewitem.h;h=5c2c81ddc06e44ece50cde740d3ed2721de3c58b;hp=d6b90efa446f795748adcee39b4164f77abf619d;hb=1f21c1f9613031ae263eeed0c4883bfcd5488343;hpb=0a43227b8cd44625f4881cc1545d42c8c8a4876c diff --git a/src/qtui/webpreviewitem.h b/src/qtui/webpreviewitem.h index d6b90efa..5c2c81dd 100644 --- a/src/qtui/webpreviewitem.h +++ b/src/qtui/webpreviewitem.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -21,22 +21,21 @@ #ifndef WEBPREVIEWITEM_H #define WEBPREVIEWITEM_H -#ifdef HAVE_WEBKIT +#if defined HAVE_WEBKIT || defined HAVE_WEBENGINE -#include +# include class WebPreviewItem : public QGraphicsItem { public: - WebPreviewItem(const QUrl &url); - virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); - virtual inline QRectF boundingRect() const { return _boundingRect; } + WebPreviewItem(const QUrl& url); + void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = nullptr) override; + inline QRectF boundingRect() const override { return _boundingRect; } private: QRectF _boundingRect; }; +#endif //#ifdef HAVE_WEBKIT || HAVE_WEBENGINE -#endif //#ifdef HAVE_WEBKIT - -#endif //WEBPREVIEWITEM_H +#endif // WEBPREVIEWITEM_H