Webkit changed location and scale() is gone.
authorK. Ernest (iFire) Lee <ernest.lee@chibifire.com>
Sun, 9 Feb 2014 21:57:30 +0000 (13:57 -0800)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 25 Mar 2014 20:57:56 +0000 (21:57 +0100)
Webkit's include location changed and scale() is replaced by transform().

src/qtui/webpreviewitem.cpp

index 99bb553..8dcc401 100644 (file)
@@ -24,8 +24,8 @@
 
 #include <QGraphicsProxyWidget>
 #include <QPainter>
-#include <QWebView>
-#include <QWebSettings>
+#include <QtWebKitWidgets/QWebView>
+#include <QtWebKit/QWebSettings>
 
 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);