diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2013-04-05 13:24:54 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-08 12:45:59 +0200 |
commit | 508ee5616b80979f6800beeb4a52fa5cc0a4ad0a (patch) | |
tree | e093d10077f923b6c34d3e8a717433a7712da5b9 /src/corelib/kernel/qvariant.cpp | |
parent | c5a6b894e7484544c44a8a415a84e196c4b633c3 (diff) |
Add automatic container access registration for built-in containers.
Change-Id: I4d590c23e072994930922ff73367600f848fbcf0
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/corelib/kernel/qvariant.cpp')
-rw-r--r-- | src/corelib/kernel/qvariant.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/corelib/kernel/qvariant.cpp b/src/corelib/kernel/qvariant.cpp index 985433d83a..99fdb4fa4a 100644 --- a/src/corelib/kernel/qvariant.cpp +++ b/src/corelib/kernel/qvariant.cpp @@ -2753,11 +2753,9 @@ static bool canConvertMetaObject(int fromId, int toId, QObject *fromObject) \snippet code/src_corelib_kernel_qvariant.cpp 9 - This requires that the value_type of the container is itself a metatype. To make it - possible to convert or iterate over a sequential container, the qRegisterSequentialConverter - method must first be called for the container. + This requires that the value_type of the container is itself a metatype. - \sa convert(), QSequentialIterable + \sa convert(), QSequentialIterable, qRegisterSequentialConverter() */ bool QVariant::canConvert(int targetTypeId) const { @@ -3090,9 +3088,7 @@ QDebug operator<<(QDebug dbg, const QVariant::Type p) \snippet code/src_corelib_kernel_qvariant.cpp 9 - The qRegisterSequentialConverter method must first be called for the container. - - \sa setValue(), fromValue(), canConvert() + \sa setValue(), fromValue(), canConvert(), qRegisterSequentialConverter() */ /*! \fn bool QVariant::canConvert() const |