Disable static contents optimization for now.

Since none of the platform backingstore implementations currently
implement this, skip trying to use the optimization for now to avoid
graphical glitches.

Task-number: QTBUG-27971
Change-Id: Ic6d263bb552ef0b4786910d71f965d26d810b7eb
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
This commit is contained in:
Samuel Rødal 2012-11-14 16:23:46 +01:00 committed by The Qt Project
parent 48f3128a7d
commit 9b62b01ddd
2 changed files with 2 additions and 4 deletions

View File

@ -240,7 +240,7 @@ private:
}
inline bool hasStaticContents() const
{ return !staticWidgets.isEmpty(); }
{ return !staticWidgets.isEmpty() && false; }
friend QRegion qt_dirtyRegion(QWidget *);
friend class QWidgetPrivate;

View File

@ -3550,9 +3550,7 @@ void tst_QWidget::optimizedResizeMove()
void tst_QWidget::optimizedResize_topLevel()
{
#if defined(Q_OS_MAC)
QSKIP("We do not yet have static contents support for *top-levels* on this platform");
#endif
QSKIP("We do not yet have static contents support, see QTBUG-28012");
StaticWidget topLevel;
topLevel.gotPaintEvent = false;