X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fwebpreviewitem.cpp;h=f674166c847e476db3c5eecf5e18cee14f6b2a1d;hp=eb12eea8fb8b371594224863d09a8195bcbd0c37;hb=54a5d32d35101d5fbcb2687665d52415ca3a6aca;hpb=514e28135038076a91d3b4853b41b258551bd196 diff --git a/src/qtui/webpreviewitem.cpp b/src/qtui/webpreviewitem.cpp index eb12eea8..f674166c 100644 --- a/src/qtui/webpreviewitem.cpp +++ b/src/qtui/webpreviewitem.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -25,14 +25,16 @@ #include #include #include +#include -WebPreviewItem::WebPreviewItem(const QString &url) +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 _boundingRect(0, 0, 400, 300) { qreal frameWidth = 5; QWebView *webView = new QWebView; + webView->settings()->setAttribute(QWebSettings::JavascriptEnabled, false); webView->load(url); webView->resize(1000, 750); QGraphicsProxyWidget *proxyItem = new QGraphicsProxyWidget(this);