iOS: Don't warn about QBackingStore::resize() != window.size() for widgets
QtWidgets uses stale geometry data to do its backingstore resizes in a lot of places, eg QWidgetPrivate::setGeometry_sys() and show_sys(). As the resize doesn't have any effect for our GL backingstore anyways we can skip the warning to keep console noise down. Change-Id: Ie578f7faf35985708fddd0bfca4a7080820192c5 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
This commit is contained in:
parent
6318a6879d
commit
8f32476542
@ -117,7 +117,7 @@ void QIOSBackingStore::resize(const QSize &size, const QRegion &staticContents)
|
|||||||
// backing store and always keep the paint device's size in sync with the
|
// backing store and always keep the paint device's size in sync with the
|
||||||
// window size in beginPaint().
|
// window size in beginPaint().
|
||||||
|
|
||||||
if (size != window()->size())
|
if (size != window()->size() && !window()->inherits("QWidgetWindow"))
|
||||||
qWarning() << "QIOSBackingStore needs to have the same size as its window";
|
qWarning() << "QIOSBackingStore needs to have the same size as its window";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user