diff options
Diffstat (limited to 'src/corelib/tools/qpoint.h')
-rw-r--r-- | src/corelib/tools/qpoint.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/corelib/tools/qpoint.h b/src/corelib/tools/qpoint.h index 4e2e6b91a6..7b1004897a 100644 --- a/src/corelib/tools/qpoint.h +++ b/src/corelib/tools/qpoint.h @@ -42,6 +42,10 @@ #include <QtCore/qnamespace.h> +#if defined(Q_OS_DARWIN) || defined(Q_QDOC) +struct CGPoint; +#endif + QT_BEGIN_NAMESPACE @@ -89,6 +93,10 @@ public: friend Q_DECL_CONSTEXPR inline const QPoint operator-(const QPoint &); friend Q_DECL_CONSTEXPR inline const QPoint operator/(const QPoint &, qreal); +#if defined(Q_OS_DARWIN) || defined(Q_QDOC) + CGPoint toCGPoint() const Q_DECL_NOTHROW Q_REQUIRED_RESULT; +#endif + private: friend class QTransform; int xp; @@ -247,6 +255,11 @@ public: Q_DECL_CONSTEXPR QPoint toPoint() const; +#if defined(Q_OS_DARWIN) || defined(Q_QDOC) + static QPointF fromCGPoint(CGPoint point) Q_DECL_NOTHROW Q_REQUIRED_RESULT; + CGPoint toCGPoint() const Q_DECL_NOTHROW Q_REQUIRED_RESULT; +#endif + private: friend class QMatrix; friend class QTransform; |