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 ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 61 61 #include "qsizepolicy.h" 62 62 #include "qtextformat.h" 63 64 65 66 67 63 68 64 69 #include "private/qvariant_p.h" … … 149 154 break; 150 155 } 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 151 181 default: 152 182 qcoreVariantHandler()->construct(x, copy); … … 222 252 v_clear<QPen>(d); 223 253 break; 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 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 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 329 423 default: 330 424 break; … … 514 608 dbg.nospace() << qvariant_cast<QPen>(v); 515 609 break; 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 516 635 default: 517 636 qcoreVariantHandler()->debugStream(dbg, v); … … 597 716 Q_DECL_METATYPE_HELPER(QMatrix) 598 717 Q_DECL_METATYPE_HELPER(QTransform) 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 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.