X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fwebpreviewitem.h;h=46f14e8591c666245a0276d669ec5f67048ecf5c;hp=adb6641f0cae56107df17c5be9c2a5ef4212b072;hb=35ca85f1c4371ee28d00d5ff0195a5b44aadb299;hpb=4e8c5025fef997fcee75673c7bb1ca0a786e064b diff --git a/src/qtui/webpreviewitem.h b/src/qtui/webpreviewitem.h index adb6641f..46f14e85 100644 --- a/src/qtui/webpreviewitem.h +++ b/src/qtui/webpreviewitem.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 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 * @@ -15,25 +15,28 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef WEBPREVIEWITEM_H #define WEBPREVIEWITEM_H -#ifdef HAVE_WEBKIT +#if defined HAVE_WEBKIT || defined HAVE_WEBENGINE #include -class WebPreviewItem : public QGraphicsItem { +class WebPreviewItem : public QGraphicsItem +{ public: - WebPreviewItem(const QString &url); - virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); - virtual inline QRectF boundingRect() const { return _boundingRect; } + WebPreviewItem(const QUrl &url); + virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); + virtual inline QRectF boundingRect() const { return _boundingRect; } private: - QRectF _boundingRect; + QRectF _boundingRect; }; -#endif //#ifdef HAVE_WEBKIT + + +#endif //#ifdef HAVE_WEBKIT || HAVE_WEBENGINE #endif //WEBPREVIEWITEM_H