Commit 7a9e624b authored by Taneli Peltoniemi's avatar Taneli Peltoniemi
Browse files

Fixed the drawing rectangle a bit

parent a83259e9
......@@ -125,8 +125,7 @@ void QmlPrinter::paintQQuickRectangle(QQuickItem *item, QPainter *painter)
void QmlPrinter::paintQQuickText(QQuickItem *item, QPainter *painter)
const QRectF boundingRect = item->mapRectToScene(item->boundingRect());
QRectF rect = QRectF(boundingRect.left() - 5,, boundingRect.width() + 10, boundingRect.height());
const QRectF rect = item->mapRectToScene(item->boundingRect());
const QFont font = item->property("font").value<QFont>();
const QString text = item->property("text").value<QString>();
const QColor color = item->property("color").value<QColor>();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment