Compile after latest change.

bb10
Paul Olav Tvete 2011-04-29 16:29:09 +02:00
parent 57b7c82560
commit 15d73f83bd
3 changed files with 7 additions and 6 deletions

View File

@ -78,5 +78,5 @@ QPlatformWindow *QMinimalIntegration::createPlatformWindow(QWindow *window) cons
QWindowSurface *QMinimalIntegration::createWindowSurface(QWindow *window, WId winId) const
{
Q_UNUSED(winId);
return new QMinimalWindowSurface(window->widget());
return new QMinimalWindowSurface(window);
}

View File

@ -46,7 +46,7 @@
QT_BEGIN_NAMESPACE
QMinimalWindowSurface::QMinimalWindowSurface(QWidget *window)
QMinimalWindowSurface::QMinimalWindowSurface(QWindow *window)
: QWindowSurface(window)
{
//qDebug() << "QMinimalWindowSurface::QMinimalWindowSurface:" << (long)this;
@ -62,9 +62,9 @@ QPaintDevice *QMinimalWindowSurface::paintDevice()
return &mImage;
}
void QMinimalWindowSurface::flush(QWidget *widget, const QRegion &region, const QPoint &offset)
void QMinimalWindowSurface::flush(QWindow *window, const QRegion &region, const QPoint &offset)
{
Q_UNUSED(widget);
Q_UNUSED(window);
Q_UNUSED(region);
Q_UNUSED(offset);

View File

@ -45,17 +45,18 @@
#include <QtGui/private/qwindowsurface_p.h>
#include <QtGui/QPlatformWindow>
#include <QtGui/QImage>
QT_BEGIN_NAMESPACE
class QMinimalWindowSurface : public QWindowSurface
{
public:
QMinimalWindowSurface(QWidget *window);
QMinimalWindowSurface(QWindow *window);
~QMinimalWindowSurface();
QPaintDevice *paintDevice();
void flush(QWidget *widget, const QRegion &region, const QPoint &offset);
void flush(QWindow *window, const QRegion &region, const QPoint &offset);
void resize(const QSize &size);
private: