From 67d3e3d6d53bb1762ce91912eff0471fa55d4676 Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Sat, 7 Feb 2015 22:44:19 +0100 Subject: QQuickText: Move baseUrl to ExtraData. It's only used for external resource loading, which is not the common case. Note that the case of an unset baseUrl may become a little more pessimised now, as it has to be looked up from the context which involves a loop to find the outermost parent context, but again, this is not a common case, so I'd consider that acceptable. QQuickTextPrivate now goes from 496 bytes to 488 bytes. ExtraData increases from 72 bytes to 80 on x86_64. Change-Id: I7e346eeb3b3cefe81912aac2b115e106ec519d1e Reviewed-by: Gunnar Sletta --- src/quick/items/qquicktext_p_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/quick/items/qquicktext_p_p.h') diff --git a/src/quick/items/qquicktext_p_p.h b/src/quick/items/qquicktext_p_p.h index ff128389e5..9a6da3736e 100644 --- a/src/quick/items/qquicktext_p_p.h +++ b/src/quick/items/qquicktext_p_p.h @@ -99,11 +99,11 @@ public: QQuickText::FontSizeMode fontSizeMode; QList imgTags; QList visibleImgTags; + QUrl baseUrl; }; QLazilyAllocated extra; QString text; - QUrl baseUrl; QFont font; QFont sourceFont; -- cgit v1.2.3