8const QString QV4DebugService::s_key = QStringLiteral(
"V8Debugger");
9const QString QQmlEngineDebugService::s_key = QStringLiteral(
"QmlDebugger");
10const QString QQmlInspectorService::s_key = QStringLiteral(
"QmlInspector");
11const QString QQmlProfilerService::s_key = QStringLiteral(
"CanvasFrameRate");
12const QString QQuickEventReplayService::s_key = QStringLiteral(
"EventReplay");
13const QString QDebugMessageService::s_key = QStringLiteral(
"DebugMessages");
14const QString QQmlEngineControlService::s_key = QStringLiteral(
"EngineControl");
15const QString QQmlNativeDebugService::s_key = QStringLiteral(
"NativeQmlDebugger");
16#if QT_CONFIG(translation)
17const QString QQmlDebugTranslationService::s_key = QStringLiteral(
"DebugTranslation");
20QV4DebugService::~QV4DebugService()
22QQmlEngineDebugService::~QQmlEngineDebugService()
24QQmlInspectorService::~QQmlInspectorService()
26QQmlProfilerService::~QQmlProfilerService()
28QQuickEventReplayService::~QQuickEventReplayService()
30QDebugMessageService::~QDebugMessageService()
32QQmlEngineControlService::~QQmlEngineControlService()
34QQmlNativeDebugService::~QQmlNativeDebugService()
38void QQmlEngineDebugService::setStatesDelegateFactory(QQmlDebugStatesDelegate *(*factory)())
40 statesDelegateFactory = factory;
43QQmlDebugStatesDelegate *QQmlEngineDebugService::createStatesDelegate()
45 return statesDelegateFactory ? statesDelegateFactory() :
nullptr;
48#if QT_CONFIG(translation)
49QQmlDebugTranslationService::~QQmlDebugTranslationService()
53QT_WARNING_DISABLE_GCC(
"-Wmaybe-uninitialized")
54const TranslationBindingInformation TranslationBindingInformation::create(
55 const QQmlRefPointer<QV4::ExecutableCompilationUnit> &compilationUnit,
56 const QV4::CompiledData::Binding *binding, QObject *scopeObject,
57 QQmlRefPointer<QQmlContextData> ctxt)
59 QQmlTranslation translation;
60 if (binding->type() == QV4::CompiledData::Binding::Type_TranslationById) {
61 const QV4::CompiledData::TranslationData data =
62 compilationUnit->unitData()->translations()[binding->value.translationDataIndex];
63 const QString id = compilationUnit->stringAt(data.stringIndex);
64 const int n = data.number;
66 translation = QQmlTranslation(QQmlTranslation::QsTrIdData(id, n));
68 Q_ASSERT(binding->type() == QV4::CompiledData::Binding::Type_Translation);
70 const QV4::CompiledData::TranslationData data =
71 compilationUnit->unitData()->translations()[binding->value.translationDataIndex];
72 const QString text = compilationUnit->stringAt(data.stringIndex);
73 const QString comment = compilationUnit->stringAt(data.commentIndex);
75 = data.contextIndex != QV4::CompiledData::TranslationData::NoContextIndex;
76 const int n = data.number;
78 translation = QQmlTranslation(
79 QQmlTranslation::QsTrData(
81 ? compilationUnit->stringAt(data.contextIndex)
82 : QQmlTranslation::contextFromQmlFilename(
83 compilationUnit->fileName()),
87 return { compilationUnit,
91 compilationUnit->stringAt(binding->propertyNameIndex),
94 binding->location.line(),
95 binding->location.column() };
102#include "moc_qqmldebugserviceinterfaces_p.cpp"
Combined button and popup list for selecting options.
static QQmlDebugStatesDelegate *(* statesDelegateFactory)()