9const QString QV4DebugService::s_key = QStringLiteral(
"V8Debugger");
10const QString QQmlEngineDebugService::s_key = QStringLiteral(
"QmlDebugger");
11const QString QQmlInspectorService::s_key = QStringLiteral(
"QmlInspector");
12const QString QQmlProfilerService::s_key = QStringLiteral(
"CanvasFrameRate");
13const QString QQuickEventReplayService::s_key = QStringLiteral(
"EventReplay");
14const QString QDebugMessageService::s_key = QStringLiteral(
"DebugMessages");
15const QString QQmlEngineControlService::s_key = QStringLiteral(
"EngineControl");
16const QString QQmlNativeDebugService::s_key = QStringLiteral(
"NativeQmlDebugger");
17#if QT_CONFIG(translation)
18const QString QQmlDebugTranslationService::s_key = QStringLiteral(
"DebugTranslation");
21QV4DebugService::~QV4DebugService()
23QQmlEngineDebugService::~QQmlEngineDebugService()
25QQmlInspectorService::~QQmlInspectorService()
27QQmlProfilerService::~QQmlProfilerService()
29QQuickEventReplayService::~QQuickEventReplayService()
31QDebugMessageService::~QDebugMessageService()
33QQmlEngineControlService::~QQmlEngineControlService()
35QQmlNativeDebugService::~QQmlNativeDebugService()
39void QQmlEngineDebugService::setStatesDelegateFactory(QQmlDebugStatesDelegate *(*factory)())
41 statesDelegateFactory = factory;
44QQmlDebugStatesDelegate *QQmlEngineDebugService::createStatesDelegate()
46 return statesDelegateFactory ? statesDelegateFactory() :
nullptr;
49#if QT_CONFIG(translation)
50QQmlDebugTranslationService::~QQmlDebugTranslationService()
54QT_WARNING_DISABLE_GCC(
"-Wmaybe-uninitialized")
55const TranslationBindingInformation TranslationBindingInformation::create(
56 const QQmlRefPointer<QV4::ExecutableCompilationUnit> &compilationUnit,
57 const QV4::CompiledData::Binding *binding, QObject *scopeObject,
58 QQmlRefPointer<QQmlContextData> ctxt)
60 QQmlTranslation translation;
61 if (binding->type() == QV4::CompiledData::Binding::Type_TranslationById) {
62 const QV4::CompiledData::TranslationData data =
63 compilationUnit->unitData()->translations()[binding->value.translationDataIndex];
64 const QString id = compilationUnit->stringAt(data.stringIndex);
65 const int n = data.number;
67 translation = QQmlTranslation(QQmlTranslation::QsTrIdData(id, n));
69 Q_ASSERT(binding->type() == QV4::CompiledData::Binding::Type_Translation);
71 const QV4::CompiledData::TranslationData data =
72 compilationUnit->unitData()->translations()[binding->value.translationDataIndex];
73 const QString text = compilationUnit->stringAt(data.stringIndex);
74 const QString comment = compilationUnit->stringAt(data.commentIndex);
76 = data.contextIndex != QV4::CompiledData::TranslationData::NoContextIndex;
77 const int n = data.number;
79 translation = QQmlTranslation(
80 QQmlTranslation::QsTrData(
82 ? compilationUnit->stringAt(data.contextIndex)
83 : QQmlTranslation::contextFromQmlFilename(
84 compilationUnit->fileName()),
88 return { compilationUnit,
92 compilationUnit->stringAt(binding->propertyNameIndex),
95 binding->location.line(),
96 binding->location.column() };
103#include "moc_qqmldebugserviceinterfaces_p.cpp"
Combined button and popup list for selecting options.
static QQmlDebugStatesDelegate *(* statesDelegateFactory)()