aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@theqtcompany.com>2015-04-27 13:18:05 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2015-04-27 13:18:05 +0000
commitdee67b41b031791c7b6313e935e622ef8d594686 (patch)
tree1f25dc9ac0deb8b54ce2c2eff0bd855636a5f54b /src
parent0699f27c9da6629ca02a1920146cb32999401676 (diff)
parente2447f9f5fbe6c8c070ce454bb48c5e45b8c35b3 (diff)
Merge "Merge remote-tracking branch 'origin/5.4' into 5.5" into refs/staging/5.5
Diffstat (limited to 'src')
-rw-r--r--src/qml/doc/src/qmlfunctions.qdoc2
-rw-r--r--src/qml/jsruntime/qv4engine.cpp10
-rw-r--r--src/qml/types/qqmlinstantiator.cpp2
3 files changed, 11 insertions, 3 deletions
diff --git a/src/qml/doc/src/qmlfunctions.qdoc b/src/qml/doc/src/qmlfunctions.qdoc
index 5732be6b26..25bb0d6068 100644
--- a/src/qml/doc/src/qmlfunctions.qdoc
+++ b/src/qml/doc/src/qmlfunctions.qdoc
@@ -516,7 +516,7 @@
#include <QtQml> to use this function.
- Returns non-zero if the registration was sucessful.
+ Returns -1 if the registration was not successful.
*/
/*!
diff --git a/src/qml/jsruntime/qv4engine.cpp b/src/qml/jsruntime/qv4engine.cpp
index cbfac86e9f..a247f85761 100644
--- a/src/qml/jsruntime/qv4engine.cpp
+++ b/src/qml/jsruntime/qv4engine.cpp
@@ -124,8 +124,14 @@ quintptr getStackLimit()
} else
size = pthread_get_stacksize_np(thread_self);
stackLimit -= size;
+# elif defined(__hppa)
+ // On some architectures the stack grows upwards. All of these are rather exotic, so simply assume
+ // everything is fine there.
+ // Known examples:
+ // -HP PA-RISC
+ stackLimit = 0;
+
# else
- void* stackBottom = 0;
pthread_attr_t attr;
#if HAVE(PTHREAD_NP_H) && OS(FREEBSD)
// on FreeBSD pthread_attr_init() must be called otherwise getting the attrs crashes
@@ -133,7 +139,9 @@ quintptr getStackLimit()
#else
if (pthread_getattr_np(pthread_self(), &attr) == 0) {
#endif
+ void *stackBottom = Q_NULLPTR;
size_t stackSize = 0;
+
pthread_attr_getstack(&attr, &stackBottom, &stackSize);
pthread_attr_destroy(&attr);
diff --git a/src/qml/types/qqmlinstantiator.cpp b/src/qml/types/qqmlinstantiator.cpp
index 0137a2796d..7626ba5a05 100644
--- a/src/qml/types/qqmlinstantiator.cpp
+++ b/src/qml/types/qqmlinstantiator.cpp
@@ -193,7 +193,7 @@ void QQmlInstantiatorPrivate::_q_modelUpdated(const QQmlChangeSet &changeSet, bo
void QQmlInstantiatorPrivate::makeModel()
{
Q_Q(QQmlInstantiator);
- QQmlDelegateModel* delegateModel = new QQmlDelegateModel(qmlContext(q));
+ QQmlDelegateModel* delegateModel = new QQmlDelegateModel(qmlContext(q), q);
instanceModel = delegateModel;
ownModel = true;
delegateModel->setDelegate(delegate);