diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-07-13 16:13:00 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-07-29 14:35:54 +0000 |
commit | db90054b186317da4e363c64207c0156d9d73da5 (patch) | |
tree | 3c9c7fd5d58ace0bb5e03e7fb67dae8661e08902 /src/qml/qml/qqmlboundsignal.cpp | |
parent | 3f3de3b9b762ecc2799a3575b97a2b172fcbc79a (diff) |
Remove static proxy methods from QQmlDebugService
They all internally map to one-liners and just add to binary size and
complexity. Especially, the most used one, isDebuggingEnabled(), simply
checks if there is a QQmlDebugServer::instance().
Change-Id: Ib269928e08506894d933f6696e34ff0d3acb048b
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/qml/qqmlboundsignal.cpp')
-rw-r--r-- | src/qml/qml/qqmlboundsignal.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlboundsignal.cpp b/src/qml/qml/qqmlboundsignal.cpp index 8b6f8afdce..3d263590e8 100644 --- a/src/qml/qml/qqmlboundsignal.cpp +++ b/src/qml/qml/qqmlboundsignal.cpp @@ -44,6 +44,7 @@ #include "qqmlglobal_p.h" #include <private/qqmlprofiler_p.h> #include <private/qv4debugservice_p.h> +#include <private/qqmldebugserver_p.h> #include <private/qqmlcompiler_p.h> #include "qqmlinfo.h" @@ -319,7 +320,7 @@ void QQmlBoundSignal_callback(QQmlNotifierEndpoint *e, void **a) if (!s->m_expression) return; - if (QQmlDebugService::isDebuggingEnabled()) + if (QQmlDebugServer::instance()) QV4DebugService::instance()->signalEmitted(QString::fromLatin1(QMetaObjectPrivate::signal(s->m_expression->target()->metaObject(), s->signalIndex()).methodSignature())); QQmlEngine *engine; |