diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/qmlcompiler/qqmljslinter.cpp | 17 | ||||
-rw-r--r-- | src/qmlls/documentSymbolSupport/qqmldocumentsymbolsupport.cpp | 2 | ||||
-rw-r--r-- | src/quick/accessible/qaccessiblequickitem.cpp | 3 | ||||
-rw-r--r-- | src/quicklayouts/qquickflexboxlayout.cpp | 7 |
4 files changed, 11 insertions, 18 deletions
diff --git a/src/qmlcompiler/qqmljslinter.cpp b/src/qmlcompiler/qqmljslinter.cpp index 3031d82bf7..c177968220 100644 --- a/src/qmlcompiler/qqmljslinter.cpp +++ b/src/qmlcompiler/qqmljslinter.cpp @@ -471,31 +471,18 @@ static void addJsonWarning(QJsonArray &warnings, const QQmlJS::DiagnosticMessage QJsonObject jsonFix { { "message"_L1, suggestion->fixDescription() }, { "replacement"_L1, suggestion->replacement() }, - { "isHint"_L1, !suggestion->isAutoApplicable() }, + { "isAutoApplicable"_L1, suggestion->isAutoApplicable() }, + { "hint"_L1, suggestion->hint() }, }; convertLocation(suggestion->location(), &jsonFix); const QString filename = suggestion->filename(); if (!filename.isEmpty()) jsonFix.insert("fileName"_L1, filename); suggestions << jsonFix; - - const QString hint = suggestion->hint(); - if (!hint.isEmpty()) { - // We need to keep compatibility with the JSON format. - // Therefore the overly verbose encoding of the hint. - QJsonObject jsonHint { - { "message"_L1, hint }, - { "replacement"_L1, QString() }, - { "isHint"_L1, true } - }; - convertLocation(QQmlJS::SourceLocation(), &jsonHint); - suggestions << jsonHint; - } } jsonMessage[u"suggestions"] = suggestions; warnings << jsonMessage; - } void QQmlJSLinter::processMessages(QJsonArray &warnings) diff --git a/src/qmlls/documentSymbolSupport/qqmldocumentsymbolsupport.cpp b/src/qmlls/documentSymbolSupport/qqmldocumentsymbolsupport.cpp index 68cc8ff973..57e474f652 100644 --- a/src/qmlls/documentSymbolSupport/qqmldocumentsymbolsupport.cpp +++ b/src/qmlls/documentSymbolSupport/qqmldocumentsymbolsupport.cpp @@ -37,7 +37,7 @@ void QQmlDocumentSymbolSupport::process(QQmlDocumentSymbolSupport::RequestPointe const auto qmlFileItem = doc.snapshot.validDoc.fileObject(QQmlJS::Dom::GoTo::MostLikely); QList<QLspSpecification::DocumentSymbol> results; ResponseScopeGuard guard(results, request->m_response); - if (!qmlFileItem) + if (qmlFileItem.internalKind() != QQmlJS::Dom::DomType::QmlFile) return; results = DocumentSymbolUtils::assembleSymbolsForQmlFile(qmlFileItem); DocumentSymbolUtils::reorganizeForOutlineView(results); diff --git a/src/quick/accessible/qaccessiblequickitem.cpp b/src/quick/accessible/qaccessiblequickitem.cpp index f88f82648b..8a46ad3f91 100644 --- a/src/quick/accessible/qaccessiblequickitem.cpp +++ b/src/quick/accessible/qaccessiblequickitem.cpp @@ -723,7 +723,8 @@ void *QAccessibleQuickItem::interface_cast(QAccessible::InterfaceType t) if (t == QAccessible::TextInterface) { if (r == QAccessible::EditableText || - r == QAccessible::StaticText) + r == QAccessible::StaticText || + r == QAccessible::Heading) return static_cast<QAccessibleTextInterface*>(this); } diff --git a/src/quicklayouts/qquickflexboxlayout.cpp b/src/quicklayouts/qquickflexboxlayout.cpp index 87cbf2cc64..2dad441652 100644 --- a/src/quicklayouts/qquickflexboxlayout.cpp +++ b/src/quicklayouts/qquickflexboxlayout.cpp @@ -8,7 +8,7 @@ /*! \qmltype FlexboxLayout //! \nativetype QQuickFlexboxLayout - \inherits Layout + \inherits Item \inqmlmodule QtQuick.Layouts \ingroup layouts \since 6.10 @@ -47,6 +47,11 @@ \li \l{Layout::maximumHeight}{Layout.maximumHeight} \li \l{Layout::fillWidth}{Layout.fillWidth} \li \l{Layout::fillHeight}{Layout.fillHeight} + \li \l{Layout::margins}{Layout.margins} + \li \l{Layout::leftMargin}{Layout.leftMargin} + \li \l{Layout::rightMargin}{Layout.rightMargin} + \li \l{Layout::topMargin}{Layout.topMargin} + \li \l{Layout::bottomMargin}{Layout.bottomMargin} \endlist Read more about attached properties \l{QML Object Attributes}{here}. |