X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fwebpreviewitem.cpp;h=1d7a27cd619a136d19857e94d86897945474705d;hb=2fabb938a014186c2aa7aa1a1b885c6afa353f1e;hp=99bb5538ba4a1deede2197f27461c56799a42b5b;hpb=aff2b5e81f0e45f95c0e15303a9ec4e7ea36c555;p=quassel.git diff --git a/src/qtui/webpreviewitem.cpp b/src/qtui/webpreviewitem.cpp index 99bb5538..1d7a27cd 100644 --- a/src/qtui/webpreviewitem.cpp +++ b/src/qtui/webpreviewitem.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-2015 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -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);