equal
deleted
inserted
replaced
55 QVGWindowSurface::QVGWindowSurface(QWidget *window) |
55 QVGWindowSurface::QVGWindowSurface(QWidget *window) |
56 : QWindowSurface(window) |
56 : QWindowSurface(window) |
57 { |
57 { |
58 // Create the default type of EGL window surface for windows. |
58 // Create the default type of EGL window surface for windows. |
59 d_ptr = new QVGEGLWindowSurfaceDirect(this); |
59 d_ptr = new QVGEGLWindowSurfaceDirect(this); |
|
60 setStaticContentsSupport(d_ptr->supportsStaticContents()); |
60 } |
61 } |
61 |
62 |
62 QVGWindowSurface::QVGWindowSurface |
63 QVGWindowSurface::QVGWindowSurface |
63 (QWidget *window, QVGEGLWindowSurfacePrivate *d) |
64 (QWidget *window, QVGEGLWindowSurfacePrivate *d) |
64 : QWindowSurface(window), d_ptr(d) |
65 : QWindowSurface(window), d_ptr(d) |
87 QWindowSurface::setGeometry(rect); |
88 QWindowSurface::setGeometry(rect); |
88 } |
89 } |
89 |
90 |
90 bool QVGWindowSurface::scroll(const QRegion &area, int dx, int dy) |
91 bool QVGWindowSurface::scroll(const QRegion &area, int dx, int dy) |
91 { |
92 { |
92 return QWindowSurface::scroll(area, dx, dy); |
93 if (!d_ptr->scroll(window(), area, dx, dy)) |
|
94 return QWindowSurface::scroll(area, dx, dy); |
|
95 return true; |
93 } |
96 } |
94 |
97 |
95 void QVGWindowSurface::beginPaint(const QRegion ®ion) |
98 void QVGWindowSurface::beginPaint(const QRegion ®ion) |
96 { |
99 { |
97 d_ptr->beginPaint(window()); |
100 d_ptr->beginPaint(window()); |