Changeset 561 for trunk/src/gui/kernel/qguivariant.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/gui/kernel/qguivariant.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information (qt-info@nokia.com) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation (qt-info@nokia.com) 5 6 ** 6 7 ** This file is part of the QtGui module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you have questions regarding the use of this file, please contact 37 ** Nokia at qt-info@nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 61 61 #include "qsizepolicy.h" 62 62 #include "qtextformat.h" 63 #include "qmatrix4x4.h" 64 #include "qvector2d.h" 65 #include "qvector3d.h" 66 #include "qvector4d.h" 67 #include "qquaternion.h" 63 68 64 69 #include "private/qvariant_p.h" … … 149 154 break; 150 155 } 156 #ifndef QT_NO_MATRIX4X4 157 case QVariant::Matrix4x4: 158 v_construct<QMatrix4x4>(x, copy); 159 break; 160 #endif 161 #ifndef QT_NO_VECTOR2D 162 case QVariant::Vector2D: 163 v_construct<QVector2D>(x, copy); 164 break; 165 #endif 166 #ifndef QT_NO_VECTOR3D 167 case QVariant::Vector3D: 168 v_construct<QVector3D>(x, copy); 169 break; 170 #endif 171 #ifndef QT_NO_VECTOR4D 172 case QVariant::Vector4D: 173 v_construct<QVector4D>(x, copy); 174 break; 175 #endif 176 #ifndef QT_NO_QUATERNION 177 case QVariant::Quaternion: 178 v_construct<QQuaternion>(x, copy); 179 break; 180 #endif 151 181 default: 152 182 qcoreVariantHandler()->construct(x, copy); … … 222 252 v_clear<QPen>(d); 223 253 break; 254 #ifndef QT_NO_MATRIX4X4 255 case QVariant::Matrix4x4: 256 v_clear<QMatrix4x4>(d); 257 break; 258 #endif 259 #ifndef QT_NO_VECTOR2D 260 case QVariant::Vector2D: 261 v_clear<QVector2D>(d); 262 break; 263 #endif 264 #ifndef QT_NO_VECTOR3D 265 case QVariant::Vector3D: 266 v_clear<QVector3D>(d); 267 break; 268 #endif 269 #ifndef QT_NO_VECTOR4D 270 case QVariant::Vector4D: 271 v_clear<QVector4D>(d); 272 break; 273 #endif 274 #ifndef QT_NO_QUATERNION 275 case QVariant::Quaternion: 276 v_clear<QVector4D>(d); 277 break; 278 #endif 224 279 default: 225 280 qcoreVariantHandler()->clear(d); … … 267 322 #endif 268 323 case QVariant::Pen: 269 break; 324 #ifndef QT_NO_MATRIX4X4 325 case QVariant::Matrix4x4: 326 #endif 327 break; 328 #ifndef QT_NO_VECTOR2D 329 case QVariant::Vector2D: 330 return v_cast<QVector2D>(d)->isNull(); 331 #endif 332 #ifndef QT_NO_VECTOR3D 333 case QVariant::Vector3D: 334 return v_cast<QVector3D>(d)->isNull(); 335 #endif 336 #ifndef QT_NO_VECTOR4D 337 case QVariant::Vector4D: 338 return v_cast<QVector4D>(d)->isNull(); 339 #endif 340 #ifndef QT_NO_QUATERNION 341 case QVariant::Quaternion: 342 return v_cast<QQuaternion>(d)->isNull(); 343 #endif 270 344 default: 271 345 return qcoreVariantHandler()->isNull(d); … … 327 401 case QVariant::Pen: 328 402 return *v_cast<QPen>(a) == *v_cast<QPen>(b); 403 #ifndef QT_NO_MATRIX4X4 404 case QVariant::Matrix4x4: 405 return *v_cast<QMatrix4x4>(a) == *v_cast<QMatrix4x4>(b); 406 #endif 407 #ifndef QT_NO_VECTOR2D 408 case QVariant::Vector2D: 409 return *v_cast<QVector2D>(a) == *v_cast<QVector2D>(b); 410 #endif 411 #ifndef QT_NO_VECTOR3D 412 case QVariant::Vector3D: 413 return *v_cast<QVector3D>(a) == *v_cast<QVector3D>(b); 414 #endif 415 #ifndef QT_NO_VECTOR4D 416 case QVariant::Vector4D: 417 return *v_cast<QVector4D>(a) == *v_cast<QVector4D>(b); 418 #endif 419 #ifndef QT_NO_QUATERNION 420 case QVariant::Quaternion: 421 return *v_cast<QQuaternion>(a) == *v_cast<QQuaternion>(b); 422 #endif 329 423 default: 330 424 break; … … 514 608 dbg.nospace() << qvariant_cast<QPen>(v); 515 609 break; 610 #ifndef QT_NO_MATRIX4X4 611 case QVariant::Matrix4x4: 612 dbg.nospace() << qvariant_cast<QMatrix4x4>(v); 613 break; 614 #endif 615 #ifndef QT_NO_VECTOR2D 616 case QVariant::Vector2D: 617 dbg.nospace() << qvariant_cast<QVector2D>(v); 618 break; 619 #endif 620 #ifndef QT_NO_VECTOR3D 621 case QVariant::Vector3D: 622 dbg.nospace() << qvariant_cast<QVector3D>(v); 623 break; 624 #endif 625 #ifndef QT_NO_VECTOR4D 626 case QVariant::Vector4D: 627 dbg.nospace() << qvariant_cast<QVector4D>(v); 628 break; 629 #endif 630 #ifndef QT_NO_QUATERNION 631 case QVariant::Quaternion: 632 dbg.nospace() << qvariant_cast<QQuaternion>(v); 633 break; 634 #endif 516 635 default: 517 636 qcoreVariantHandler()->debugStream(dbg, v); … … 597 716 Q_DECL_METATYPE_HELPER(QMatrix) 598 717 Q_DECL_METATYPE_HELPER(QTransform) 718 #ifndef QT_NO_MATRIX4X4 719 Q_DECL_METATYPE_HELPER(QMatrix4x4) 720 #endif 721 #ifndef QT_NO_VECTOR2D 722 Q_DECL_METATYPE_HELPER(QVector2D) 723 #endif 724 #ifndef QT_NO_VECTOR3D 725 Q_DECL_METATYPE_HELPER(QVector3D) 726 #endif 727 #ifndef QT_NO_VECTOR4D 728 Q_DECL_METATYPE_HELPER(QVector4D) 729 #endif 730 #ifndef QT_NO_QUATERNION 731 Q_DECL_METATYPE_HELPER(QQuaternion) 732 #endif 599 733 600 734 #ifdef QT_NO_DATASTREAM … … 646 780 Q_IMPL_METATYPE_HELPER(QTextFormat), 647 781 Q_IMPL_METATYPE_HELPER(QMatrix), 648 Q_IMPL_METATYPE_HELPER(QTransform) 782 Q_IMPL_METATYPE_HELPER(QTransform), 783 #ifndef QT_NO_MATRIX4X4 784 Q_IMPL_METATYPE_HELPER(QMatrix4x4), 785 #else 786 {0, 0, 0, 0}, 787 #endif 788 #ifndef QT_NO_VECTOR2D 789 Q_IMPL_METATYPE_HELPER(QVector2D), 790 #else 791 {0, 0, 0, 0}, 792 #endif 793 #ifndef QT_NO_VECTOR3D 794 Q_IMPL_METATYPE_HELPER(QVector3D), 795 #else 796 {0, 0, 0, 0}, 797 #endif 798 #ifndef QT_NO_VECTOR4D 799 Q_IMPL_METATYPE_HELPER(QVector4D), 800 #else 801 {0, 0, 0, 0}, 802 #endif 803 #ifndef QT_NO_QUATERNION 804 Q_IMPL_METATYPE_HELPER(QQuaternion) 805 #else 806 {0, 0, 0, 0} 807 #endif 649 808 }; 650 809
Note:
See TracChangeset
for help on using the changeset viewer.