diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2011-05-03 22:51:17 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2011-05-03 22:51:17 +0200 |
commit | 54c9b1a80c04a5ecc685dc29e27a27de81d8cc1b (patch) | |
tree | aa2a0374e57a8fd82036485a77bacfcee208a532 /src/gui/painting/qmatrix.cpp | |
parent | 181df199d31a8018cfcfc31b548909fe4b57ccbd (diff) |
even less QT3_SUPPORT
the new libQtGui should now be free of any
Qt3 related methods.
Diffstat (limited to 'src/gui/painting/qmatrix.cpp')
-rw-r--r-- | src/gui/painting/qmatrix.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/gui/painting/qmatrix.cpp b/src/gui/painting/qmatrix.cpp index 38f78e1a46..a7523fd3cb 100644 --- a/src/gui/painting/qmatrix.cpp +++ b/src/gui/painting/qmatrix.cpp @@ -731,42 +731,6 @@ QPainterPath QMatrix::map(const QPainterPath &path) const } /*! - \fn QRegion QMatrix::mapToRegion(const QRect &rectangle) const - - Returns the transformed rectangle \a rectangle as a QRegion - object. A rectangle which has been rotated or sheared may result - in a non-rectangular region being returned. - - Use the mapToPolygon() or map() function instead. -*/ -#ifdef QT3_SUPPORT -QRegion QMatrix::mapToRegion(const QRect &rect) const -{ - QRegion result; - if (isIdentity()) { - result = rect; - } else if (m12() == 0.0F && m21() == 0.0F) { - int x = qRound(m11()*rect.x() + dx()); - int y = qRound(m22()*rect.y() + dy()); - int w = qRound(m11()*rect.width()); - int h = qRound(m22()*rect.height()); - if (w < 0) { - w = -w; - x -= w - 1; - } - if (h < 0) { - h = -h; - y -= h - 1; - } - result = QRect(x, y, w, h); - } else { - result = QRegion(mapToPolygon(rect)); - } - return result; - -} -#endif -/*! \fn QPolygon QMatrix::mapToPolygon(const QRect &rectangle) const Creates and returns a QPolygon representation of the given \a |