From 85f15e2af40be1e9500fe600daba31839b904ef4 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Thu, 30 Jan 2020 10:51:34 +0100 Subject: Required properties: Allow retroactive require specification It is now possible to mark a property of a parent class as required in the child by writing required Change-Id: I9e9d58c7b5c00577b056e905b39744b2fa359ea0 Reviewed-by: Ulf Hermann --- src/qml/parser/qqmljsast.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/qml/parser/qqmljsast.cpp') diff --git a/src/qml/parser/qqmljsast.cpp b/src/qml/parser/qqmljsast.cpp index aa3e8ab5e3..416916c547 100644 --- a/src/qml/parser/qqmljsast.cpp +++ b/src/qml/parser/qqmljsast.cpp @@ -1554,6 +1554,14 @@ void UiInlineComponent::accept0(Visitor *visitor) visitor->endVisit(this); } +void UiRequired::accept0(Visitor *visitor) +{ + if (visitor->visit(this)) { + } + + visitor->endVisit(this); +} + } } // namespace QQmlJS::AST QT_END_NAMESPACE -- cgit v1.2.3