aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlengine.cpp
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2015-03-03 18:13:37 +0100
committerFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2015-03-03 18:13:38 +0100
commit6dbf435ca46e87893dc46b3f7f09a95f29998e3e (patch)
tree840394a855c4b0df25637c2c0d90ef13d228af80 /src/qml/qml/qqmlengine.cpp
parenta6c752333d6dbe76e07db39684fdb878f5fbf865 (diff)
parent4d8b9373c62b9b58c54548f41f1e9d84e9522c6e (diff)
Merge remote-tracking branch 'origin/5.5' into dev
Diffstat (limited to 'src/qml/qml/qqmlengine.cpp')
-rw-r--r--src/qml/qml/qqmlengine.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/qml/qml/qqmlengine.cpp b/src/qml/qml/qqmlengine.cpp
index ab67d7738d..92e98e3e84 100644
--- a/src/qml/qml/qqmlengine.cpp
+++ b/src/qml/qml/qqmlengine.cpp
@@ -368,7 +368,7 @@ The following functions are also on the Qt object.
/*!
\qmlproperty object Qt::platform
- \since 4.8
+ \since 5.1
The \c platform object provides info about the underlying platform.
@@ -392,6 +392,8 @@ The following functions are also on the Qt object.
\li \c "unix" - Other Unix-based OS
\li \c "windows" - Windows
\li \c "wince" - Windows CE
+ \li \c "winrt" - Windows RT
+ \li \c "winphone" - Windows Phone
\endlist
\endtable
*/
@@ -593,6 +595,9 @@ QQmlEnginePrivate::QQmlEnginePrivate(QQmlEngine *e)
QQmlEnginePrivate::~QQmlEnginePrivate()
{
+ typedef QHash<QPair<QQmlType *, int>, QQmlPropertyCache *>::Iterator TypePropertyCacheIt;
+ typedef QHash<int, QQmlCompiledData *>::Iterator CompositeTypesIt;
+
if (inProgressCreations)
qWarning() << QQmlEngine::tr("There are still \"%1\" items in the process of being created at engine destruction.").arg(inProgressCreations);
@@ -610,9 +615,9 @@ QQmlEnginePrivate::~QQmlEnginePrivate()
if (incubationController) incubationController->d = 0;
incubationController = 0;
- for(QHash<QPair<QQmlType *, int>, QQmlPropertyCache *>::Iterator iter = typePropertyCache.begin(); iter != typePropertyCache.end(); ++iter)
+ for (TypePropertyCacheIt iter = typePropertyCache.begin(), end = typePropertyCache.end(); iter != end; ++iter)
(*iter)->release();
- for (QHash<int, QQmlCompiledData *>::Iterator iter = m_compositeTypes.begin(); iter != m_compositeTypes.end(); ++iter)
+ for (CompositeTypesIt iter = m_compositeTypes.begin(), end = m_compositeTypes.end(); iter != end; ++iter)
iter.value()->isRegisteredWithEngine = false;
delete profiler;
}