aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire@kdab.com>2014-04-01 10:59:39 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-01 14:18:53 +0200
commit0e0528df68659748f0ba62ffaf3defd99b551bff (patch)
tree4a20dccce76b942e9374b57c5cab26824f9f8b37 /src/qml
parent722dcd2c315acc2bab1cfa9072986ca66a5bba88 (diff)
Give the QML and the debug server thread an objectname.
Now it is easier to identify the threads in e.g. the debugger in QtCreator. Change-Id: I032822e869df09cf43dc1d6e01d14610005ce217 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com> Reviewed-by: Ulf Hermann <ulf.hermann@digia.com>
Diffstat (limited to 'src/qml')
-rw-r--r--src/qml/debugger/qqmldebugserver.cpp1
-rw-r--r--src/qml/qml/ftw/qqmlthread.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/debugger/qqmldebugserver.cpp b/src/qml/debugger/qqmldebugserver.cpp
index 2d3e54c46a..b1eb130ee8 100644
--- a/src/qml/debugger/qqmldebugserver.cpp
+++ b/src/qml/debugger/qqmldebugserver.cpp
@@ -413,6 +413,7 @@ QQmlDebugServer::QQmlDebugServer()
Q_D(QQmlDebugServer);
d->thread = new QQmlDebugServerThread;
moveToThread(d->thread);
+ d->thread->setObjectName(QStringLiteral("QQmlDebugServerThread"));
d->thread->setPluginName(pluginName);
d->thread->setPortRange(portFrom, portTo, block, hostAddress);
diff --git a/src/qml/qml/ftw/qqmlthread.cpp b/src/qml/qml/ftw/qqmlthread.cpp
index c49463c913..700e5c3324 100644
--- a/src/qml/qml/ftw/qqmlthread.cpp
+++ b/src/qml/qml/ftw/qqmlthread.cpp
@@ -127,6 +127,7 @@ QQmlThreadPrivate::QQmlThreadPrivate(QQmlThread *q)
: q(q), m_threadProcessing(false), m_mainProcessing(false), m_shutdown(false),
m_mainThreadWaiting(false), mainSync(0), m_mainObject(this)
{
+ setObjectName(QStringLiteral("QQmlThread"));
}
bool QQmlThreadPrivate::event(QEvent *e)