summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpaintengineex_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/painting/qpaintengineex_p.h')
-rw-r--r--src/gui/painting/qpaintengineex_p.h48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/gui/painting/qpaintengineex_p.h b/src/gui/painting/qpaintengineex_p.h
index bc944b2297..8a65e6cf0b 100644
--- a/src/gui/painting/qpaintengineex_p.h
+++ b/src/gui/painting/qpaintengineex_p.h
@@ -84,54 +84,6 @@ struct QIntRect {
}
};
-class QRectVectorPath : public QVectorPath {
-public:
- inline void set(const QRect &r) {
- qreal left = r.x();
- qreal right = r.x() + r.width();
- qreal top = r.y();
- qreal bottom = r.y() + r.height();
- pts[0] = left;
- pts[1] = top;
- pts[2] = right;
- pts[3] = top;
- pts[4] = right;
- pts[5] = bottom;
- pts[6] = left;
- pts[7] = bottom;
- }
-
- inline void set(const QRectF &r) {
- qreal left = r.x();
- qreal right = r.x() + r.width();
- qreal top = r.y();
- qreal bottom = r.y() + r.height();
- pts[0] = left;
- pts[1] = top;
- pts[2] = right;
- pts[3] = top;
- pts[4] = right;
- pts[5] = bottom;
- pts[6] = left;
- pts[7] = bottom;
- }
- inline QRectVectorPath(const QRect &r)
- : QVectorPath(pts, 4, 0, QVectorPath::RectangleHint | QVectorPath::ImplicitClose)
- {
- set(r);
- }
- inline QRectVectorPath(const QRectF &r)
- : QVectorPath(pts, 4, 0, QVectorPath::RectangleHint | QVectorPath::ImplicitClose)
- {
- set(r);
- }
- inline QRectVectorPath()
- : QVectorPath(pts, 4, 0, QVectorPath::RectangleHint | QVectorPath::ImplicitClose)
- { }
-
- qreal pts[8];
-};
-
#ifndef QT_NO_DEBUG_STREAM
QDebug Q_GUI_EXPORT &operator<<(QDebug &, const QVectorPath &path);
#endif