From 57b7c82560088149010b000bc78a3a6d8f2f8834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20R=C3=B8dal?= Date: Fri, 29 Apr 2011 15:45:30 +0200 Subject: Add QWidgetWindow to bridge events from QWindow to QWidget. Gets rid of QWidget dependencies in QWindow and QWindowSurface. Events are not delivered to the correct child widget yet. --- src/gui/painting/qbackingstore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/painting/qbackingstore.cpp') diff --git a/src/gui/painting/qbackingstore.cpp b/src/gui/painting/qbackingstore.cpp index 42c1c354b6..7ec878c39d 100644 --- a/src/gui/painting/qbackingstore.cpp +++ b/src/gui/painting/qbackingstore.cpp @@ -114,9 +114,9 @@ static inline void qt_flush(QWidget *widget, const QRegion ®ion, QWindowSurfa } } if (widget != tlw) - windowSurface->flush(widget, region, tlwOffset + widget->mapTo(tlw, QPoint())); + windowSurface->flush(widget->windowHandle(), region, tlwOffset + widget->mapTo(tlw, QPoint())); else - windowSurface->flush(widget, region, tlwOffset); + windowSurface->flush(widget->windowHandle(), region, tlwOffset); } #ifndef QT_NO_PAINT_DEBUG -- cgit v1.2.3