From: K. Ernest (iFire) Lee Date: Sun, 9 Feb 2014 21:57:30 +0000 (-0800) Subject: Webkit changed location and scale() is gone. X-Git-Tag: 0.11.0~58 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=ad695ee0ae2b39e00e33a10ab6eea6c765e4b233;ds=inline Webkit changed location and scale() is gone. Webkit's include location changed and scale() is replaced by transform(). --- diff --git a/src/qtui/webpreviewitem.cpp b/src/qtui/webpreviewitem.cpp index 99bb5538..8dcc4013 100644 --- a/src/qtui/webpreviewitem.cpp +++ b/src/qtui/webpreviewitem.cpp @@ -24,8 +24,8 @@ #include #include -#include -#include +#include +#include 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 @@ -44,7 +44,7 @@ WebPreviewItem::WebPreviewItem(const QUrl &url) qreal xScale = (_boundingRect.width() - 2 * frameWidth) / webView->width(); qreal yScale = (_boundingRect.height() - 2 * frameWidth) / webView->height(); - proxyItem->scale(xScale, yScale); + proxyItem->setTransform(QTransform::fromScale(xScale, yScale), true); proxyItem->setPos(frameWidth, frameWidth); setZValue(30);