Changeset 846 for trunk/src/corelib/kernel/qvariant.h
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/corelib/kernel/qvariant.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 61 61 class QDate; 62 62 class QDateTime; 63 63 64 class QLine; 64 65 class QLineF; … … 129 130 Point = 25, 130 131 PointF = 26, 131 132 RegExp = 27, 132 133 Hash = 28, 133 LastCoreType = Hash, 134 EasingCurve = 29, 135 LastCoreType = EasingCurve, 134 136 135 137 // value 62 is internally reserved … … 220 222 QVariant(const QRegExp ®Exp); 221 223 #endif 224 225 226 222 227 QVariant(Qt::GlobalColor color); 223 228 … … 280 285 #ifndef QT_NO_REGEXP 281 286 QRegExp toRegExp() const; 287 288 289 282 290 #endif 283 291 … … 582 590 template<> inline QVariant qvariant_cast<QVariant>(const QVariant &v) 583 591 { 584 static const int vid = qRegisterMetaType<QVariant>("QVariant"); 585 if (vid == v.userType()) 592 if (v.userType() == QMetaType::QVariant) 586 593 return *reinterpret_cast<const QVariant *>(v.constData()); 587 594 return v;
Note:
See TracChangeset
for help on using the changeset viewer.