diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2010-12-03 00:00:11 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2010-12-03 00:00:11 (GMT) |
commit | 78f32680e278f9b38d02eae4a8ab21ac8958dd94 (patch) | |
tree | 70448f5459c61ef73753084f196ae5e76bbce358 /src/gui/painting | |
parent | 4e2aa280254daafbc836dd000455509600c2cfa8 (diff) | |
parent | b4e64dc59fb860f16600e13061bd588b90c213fb (diff) | |
download | Qt-78f32680e278f9b38d02eae4a8ab21ac8958dd94.zip Qt-78f32680e278f9b38d02eae4a8ab21ac8958dd94.tar.gz Qt-78f32680e278f9b38d02eae4a8ab21ac8958dd94.tar.bz2 |
Merge branch 'master-upstream' into master-water
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qbackingstore.cpp | 4 | ||||
-rw-r--r-- | src/gui/painting/qpaintengine_mac.cpp | 2 | ||||
-rw-r--r-- | src/gui/painting/qwindowsurface.cpp | 11 |
3 files changed, 16 insertions, 1 deletions
diff --git a/src/gui/painting/qbackingstore.cpp b/src/gui/painting/qbackingstore.cpp index df1210f..c051228 100644 --- a/src/gui/painting/qbackingstore.cpp +++ b/src/gui/painting/qbackingstore.cpp @@ -1620,7 +1620,11 @@ void QWidgetPrivate::repaint_sys(const QRegion &rgn) extra->staticContentsSize = data.crect.size(); } +#ifdef Q_WS_QPA //Dont even call q->p + QPaintEngine *engine = 0; +#else QPaintEngine *engine = q->paintEngine(); +#endif // QGLWidget does not support partial updates if: // 1) The context is double buffered // 2) The context is single buffered and auto-fill background is enabled. diff --git a/src/gui/painting/qpaintengine_mac.cpp b/src/gui/painting/qpaintengine_mac.cpp index 601cf86..c14e558 100644 --- a/src/gui/painting/qpaintengine_mac.cpp +++ b/src/gui/painting/qpaintengine_mac.cpp @@ -57,6 +57,8 @@ #include <private/qfont_p.h> #include <private/qfontengine_p.h> +#include <private/qfontengine_coretext_p.h> +#include <private/qfontengine_mac_p.h> #include <private/qnumeric_p.h> #include <private/qpainter_p.h> #include <private/qpainterpath_p.h> diff --git a/src/gui/painting/qwindowsurface.cpp b/src/gui/painting/qwindowsurface.cpp index e9eb9c5..3ee8281 100644 --- a/src/gui/painting/qwindowsurface.cpp +++ b/src/gui/painting/qwindowsurface.cpp @@ -74,7 +74,7 @@ public: \since 4.3 \internal \preliminary - \ingroup qws + \ingroup qws qpa \brief The QWindowSurface class provides the drawing area for top-level windows. @@ -179,11 +179,20 @@ QRect QWindowSurface::geometry() const return d_ptr->geometry; } #else + +/*! + Sets the size of the windowsurface to be \a size. + + \sa size() +*/ void QWindowSurface::resize(const QSize &size) { d_ptr->size = size; } +/*! + Returns the current size of the windowsurface. +*/ QSize QWindowSurface::size() const { return d_ptr->size; |