X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fwebpreviewitem.h;h=dc32f1a36c6a8e3233d0614e6ddbe181b5383c95;hb=8c6448c2e0048389fbac9e2e9daf22b5b050d5b6;hp=51caacace604bc31dd5a8bf5049734d683d0e965;hpb=138e6d461c259df8052497d7228391ce6548bd5f;p=quassel.git diff --git a/src/qtui/webpreviewitem.h b/src/qtui/webpreviewitem.h index 51caacac..dc32f1a3 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-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -23,20 +23,19 @@ #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 || HAVE_WEBENGINE - -#endif //WEBPREVIEWITEM_H +#endif // WEBPREVIEWITEM_H