Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/kernel/qguivariant.cpp

    r2 r561  
    22**
    33** 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])
    56**
    67** This file is part of the QtGui module of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    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.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    6161#include "qsizepolicy.h"
    6262#include "qtextformat.h"
     63
     64
     65
     66
     67
    6368
    6469#include "private/qvariant_p.h"
     
    149154        break;
    150155    }
     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
    151181    default:
    152182        qcoreVariantHandler()->construct(x, copy);
     
    222252        v_clear<QPen>(d);
    223253        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
    224279    default:
    225280        qcoreVariantHandler()->clear(d);
     
    267322#endif
    268323    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
    270344    default:
    271345        return qcoreVariantHandler()->isNull(d);
     
    327401    case QVariant::Pen:
    328402        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
    329423    default:
    330424        break;
     
    514608        dbg.nospace() << qvariant_cast<QPen>(v);
    515609        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
    516635    default:
    517636        qcoreVariantHandler()->debugStream(dbg, v);
     
    597716Q_DECL_METATYPE_HELPER(QMatrix)
    598717Q_DECL_METATYPE_HELPER(QTransform)
     718
     719
     720
     721
     722
     723
     724
     725
     726
     727
     728
     729
     730
     731
     732
    599733
    600734#ifdef QT_NO_DATASTREAM
     
    646780    Q_IMPL_METATYPE_HELPER(QTextFormat),
    647781    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
    649808};
    650809
Note: See TracChangeset for help on using the changeset viewer.