Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/corelib/kernel/qvariant.h

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    6161class QDate;
    6262class QDateTime;
     63
    6364class QLine;
    6465class QLineF;
     
    129130        Point = 25,
    130131        PointF = 26,
    131         RegExp = 27,
     132RegExp = 27,
    132133        Hash = 28,
    133         LastCoreType = Hash,
     134        EasingCurve = 29,
     135        LastCoreType = EasingCurve,
    134136
    135137        // value 62 is internally reserved
     
    220222    QVariant(const QRegExp &regExp);
    221223#endif
     224
     225
     226
    222227    QVariant(Qt::GlobalColor color);
    223228
     
    280285#ifndef QT_NO_REGEXP
    281286    QRegExp toRegExp() const;
     287
     288
     289
    282290#endif
    283291
     
    582590template<> inline QVariant qvariant_cast<QVariant>(const QVariant &v)
    583591{
    584     static const int vid = qRegisterMetaType<QVariant>("QVariant");
    585     if (vid == v.userType())
     592    if (v.userType() == QMetaType::QVariant)
    586593        return *reinterpret_cast<const QVariant *>(v.constData());
    587594    return v;
Note: See TracChangeset for help on using the changeset viewer.