Commit 426b0631 authored by Michael Winkelmann's avatar Michael Winkelmann

Fix Row and Column layouting

parent 27c4f18d
......@@ -132,6 +132,11 @@ void QmlPrinter::paintItem(QQuickItem *item, QQuickWindow *window,
painter->setClipRect(item->clipRect());
}
if (inherits(item->metaObject(), "QQuickRow") ||
inherits(item->metaObject(), "QQuickColumn")) {
QMetaObject::invokeMethod(item,"forceLayout");
}
item->update();
// This is a bit special case as we need to use childItems instead of children
if (inherits(item->metaObject(), "QQuickListView")) {
......@@ -265,6 +270,7 @@ void QmlPrinter::paintQQuickText(QQuickItem *item, QPainter *painter) const {
if (textFormat == Qt::AutoText) {
textFormat = Qt::mightBeRichText(text) ? 4 : Qt::PlainText;
}
item->polish();
QTextDocument document;
document.setPageSize(item->size());
......
Markdown is supported
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