diff options
author | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-02-22 08:51:40 (GMT) |
---|---|---|
committer | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-02-23 08:10:10 (GMT) |
commit | ab2497c20116399e963748adf0ed2bf691d42cbf (patch) | |
tree | 44f8818918be4bd3fe0e9e85eede553195c54a70 /src/corelib/tools/qeasingcurve.h | |
parent | 23fb8f6e4f3f6fe4ae7611de84f09cc0095e240c (diff) | |
download | Qt-ab2497c20116399e963748adf0ed2bf691d42cbf.zip Qt-ab2497c20116399e963748adf0ed2bf691d42cbf.tar.gz Qt-ab2497c20116399e963748adf0ed2bf691d42cbf.tar.bz2 |
Add QEasingCurve as builtin metatype
This is needed for qml, in order to be able to use easing as a valuetype.
Task-number: QTBUG-8235
Reviewed-by: thierry
Reviewed-by: janarve
Diffstat (limited to 'src/corelib/tools/qeasingcurve.h')
-rw-r--r-- | src/corelib/tools/qeasingcurve.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/corelib/tools/qeasingcurve.h b/src/corelib/tools/qeasingcurve.h index ae8822e..173fba4 100644 --- a/src/corelib/tools/qeasingcurve.h +++ b/src/corelib/tools/qeasingcurve.h @@ -100,13 +100,24 @@ public: qreal valueForProgress(qreal progress) const; private: QEasingCurvePrivate *d_ptr; +#ifndef QT_NO_DEBUG_STREAM friend Q_CORE_EXPORT QDebug operator<<(QDebug debug, const QEasingCurve &item); +#endif +#ifndef QT_NO_DATASTREAM + friend Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QEasingCurve&); + friend Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QEasingCurve &); +#endif }; #ifndef QT_NO_DEBUG_STREAM Q_CORE_EXPORT QDebug operator<<(QDebug debug, const QEasingCurve &item); #endif +#ifndef QT_NO_DATASTREAM +Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QEasingCurve&); +Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QEasingCurve &); +#endif + QT_END_NAMESPACE QT_END_HEADER |