summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpainter.h
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2010-08-09 12:03:45 (GMT)
committerGunnar Sletta <gunnar.sletta@nokia.com>2010-08-09 12:04:54 (GMT)
commitcfc1658c68ee3b7227277a4549b60de545ec5f6f (patch)
treea633469d3c29868818e16b3e2fe63231eef1709f /src/gui/painting/qpainter.h
parent8bf7fbcc4f4e2cc5d9d9f0dc38a6e336d2fcc143 (diff)
downloadQt-cfc1658c68ee3b7227277a4549b60de545ec5f6f.zip
Qt-cfc1658c68ee3b7227277a4549b60de545ec5f6f.tar.gz
Qt-cfc1658c68ee3b7227277a4549b60de545ec5f6f.tar.bz2
Added QPainter::clipBoundingRect() which is significantly faster
than QPainter::clipRegion().boundingRect(). Task: http://bugreports.qt.nokia.com/browse/QTBUG-12618 Reviewed-by: Kim
Diffstat (limited to 'src/gui/painting/qpainter.h')
-rw-r--r--src/gui/painting/qpainter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/painting/qpainter.h b/src/gui/painting/qpainter.h
index 85751a9..96305e3 100644
--- a/src/gui/painting/qpainter.h
+++ b/src/gui/painting/qpainter.h
@@ -222,6 +222,8 @@ public:
void setClipping(bool enable);
bool hasClipping() const;
+ QRectF clipBoundingRect() const;
+
void save();
void restore();