diff -r b72c6db6890b -r 5dc02b23752f src/opengl/qwindowsurface_x11gl_p.h --- a/src/opengl/qwindowsurface_x11gl_p.h Wed Jun 23 19:07:03 2010 +0300 +++ b/src/opengl/qwindowsurface_x11gl_p.h Tue Jul 06 15:10:48 2010 +0300 @@ -68,9 +68,11 @@ void flush(QWidget *widget, const QRegion ®ion, const QPoint &offset); void setGeometry(const QRect &rect); bool scroll(const QRegion &area, int dx, int dy); + QPixmap grabWidget(const QWidget *widget, const QRect& rectangle = QRect()) const; private: - GC m_GC; + GC m_windowGC; + GC m_pixmapGC; QPixmap m_backBuffer; QWidget *m_window; };