X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fwebpreviewitem.cpp;h=f674166c847e476db3c5eecf5e18cee14f6b2a1d;hp=8f49032b8b351d14441773027b2d578fc552d267;hb=54a5d32d35101d5fbcb2687665d52415ca3a6aca;hpb=f824db0e31b54969e0b7fa0b5405b1e9173d482c diff --git a/src/qtui/webpreviewitem.cpp b/src/qtui/webpreviewitem.cpp index 8f49032b..f674166c 100644 --- a/src/qtui/webpreviewitem.cpp +++ b/src/qtui/webpreviewitem.cpp @@ -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);