aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquicklabel_p_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2018-04-08 19:58:03 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2018-04-09 08:55:12 +0000
commit159599e97750ad1a9208a66303552aa8b4f2cdc7 (patch)
tree2b611d591b22af6f481213011eb17dfb964f2576 /src/quicktemplates2/qquicklabel_p_p.h
parent4a8c2605c26acf575e181682f083e077b815ab4b (diff)
QQuickLabel: fix background resizing
setBackground() must resize the item if component construction is already complete. Change-Id: I76cada5b37257473a9c0146ee1f6de8de6c10218 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quicktemplates2/qquicklabel_p_p.h')
-rw-r--r--src/quicktemplates2/qquicklabel_p_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquicklabel_p_p.h b/src/quicktemplates2/qquicklabel_p_p.h
index bcd1aca6..4d6c7de7 100644
--- a/src/quicktemplates2/qquicklabel_p_p.h
+++ b/src/quicktemplates2/qquicklabel_p_p.h
@@ -74,6 +74,8 @@ public:
return static_cast<QQuickLabelPrivate *>(QObjectPrivate::get(item));
}
+ void resizeBackground();
+
void resolveFont();
void inheritFont(const QFont &font);
void updateFont(const QFont &font);