summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qwindowsurface.cpp
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-04-07 14:13:19 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2010-04-07 14:14:05 (GMT)
commitc13076a30e5ae3d0f6795261ad00ca1eb73ad0b9 (patch)
tree081619d235389411f5ba7a16d96e37f477e7b2c0 /src/gui/painting/qwindowsurface.cpp
parentfcec5d444f1e37e7b53ab503fa46b4d7f7d90b41 (diff)
downloadQt-c13076a30e5ae3d0f6795261ad00ca1eb73ad0b9.zip
Qt-c13076a30e5ae3d0f6795261ad00ca1eb73ad0b9.tar.gz
Qt-c13076a30e5ae3d0f6795261ad00ca1eb73ad0b9.tar.bz2
Added QPlatformWindow
Diffstat (limited to 'src/gui/painting/qwindowsurface.cpp')
-rw-r--r--src/gui/painting/qwindowsurface.cpp53
1 files changed, 16 insertions, 37 deletions
diff --git a/src/gui/painting/qwindowsurface.cpp b/src/gui/painting/qwindowsurface.cpp
index 34c2936..20594c4 100644
--- a/src/gui/painting/qwindowsurface.cpp
+++ b/src/gui/painting/qwindowsurface.cpp
@@ -52,7 +52,11 @@ public:
QWindowSurfacePrivate(QWidget *w) : window(w), staticContentsSupport(false) {}
QWidget *window;
+#if !defined(Q_WS_LITE)
QRect geometry;
+#else
+ QSize size;
+#endif //Q_WS_LITE
QRegion staticContents;
QList<QImage*> bufferImages;
bool staticContentsSupport;
@@ -144,6 +148,7 @@ void QWindowSurface::endPaint(const QRegion &)
d_ptr->bufferImages.clear();
}
+#if !defined(Q_WS_LITE)
/*!
Sets the currently allocated area to be the given \a rect.
@@ -164,6 +169,17 @@ QRect QWindowSurface::geometry() const
{
return d_ptr->geometry;
}
+#else
+void QWindowSurface::resize(const QSize &size)
+{
+ d_ptr->size = size;
+}
+
+QSize QWindowSurface::size() const
+{
+ return d_ptr->size;
+}
+#endif //Q_WS_LITE
/*!
Scrolls the given \a area \a dx pixels to the right and \a dy
@@ -349,41 +365,4 @@ void qt_scrollRectInImage(QImage &img, const QRect &rect, const QPoint &offset)
}
}
-
-#ifdef Q_WS_LITE
-/*!
-Requests setting the window flags of this surface to \a type. Returns the actual flags set.
-*/
-Qt::WindowFlags QWindowSurface::setWindowFlags(Qt::WindowFlags type)
-{
- Q_UNUSED(type);
- qDebug() << "QWindowSurface::setWindowFlags" << hex << type;
- return Qt::Window;
-}
-
-/*!
- Returns the effective window flags for this surface.
-*/
-Qt::WindowFlags QWindowSurface::windowFlags() const
-{
- return Qt::Window;
-}
-
-/*!
-Reimplemented in subclasses to show the surface if \a visible is \c true, and hide it if \a visible is \c false.
-*/
-
-void QWindowSurface::setVisible(bool visible)
-{
- Q_UNUSED(visible);
-}
-
-
-WId QWindowSurface::winId() const
-{
- return WId(0);
-}
-
-#endif
-
QT_END_NAMESPACE