Commit f1c59c4e authored by Simon Hausmann's avatar Simon Hausmann
Browse files

Add support for translation function aliases that are member expressions


When traversing the AST for call expressions, it may happen that the
base of the call expression is a field member expression instead of a
plain identifier. For example with CustomTranslator.myTr() the base is a
field member, with an identifier as base and myTr as name. We can
construct a qualified name from that quite easily and this way support
qualified tr aliases in qml files.

Task-number: QTBUG-67278
Change-Id: I106243d8eed6d8cec75819a44942cf750de2829a
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@qt.io>
parent b34f8153
No related merge requests found
Showing with 25 additions and 3 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment