aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/quicktemplates2/qquicklabel.cpp1
-rw-r--r--src/quicktemplates2/qquicktextarea.cpp1
-rw-r--r--src/quicktemplates2/qquicktextfield.cpp1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquicklabel.cpp b/src/quicktemplates2/qquicklabel.cpp
index 8c94ee87..d39006cd 100644
--- a/src/quicktemplates2/qquicklabel.cpp
+++ b/src/quicktemplates2/qquicklabel.cpp
@@ -347,6 +347,7 @@ void QQuickLabel::componentComplete()
Q_D(QQuickLabel);
d->executeBackground(true);
QQuickText::componentComplete();
+ d->resizeBackground();
#if QT_CONFIG(accessibility)
if (QAccessible::isActive())
d->accessibilityActiveChanged(true);
diff --git a/src/quicktemplates2/qquicktextarea.cpp b/src/quicktemplates2/qquicktextarea.cpp
index 9a076e83..aca13d5e 100644
--- a/src/quicktemplates2/qquicktextarea.cpp
+++ b/src/quicktemplates2/qquicktextarea.cpp
@@ -718,6 +718,7 @@ void QQuickTextArea::componentComplete()
Q_D(QQuickTextArea);
d->executeBackground(true);
QQuickTextEdit::componentComplete();
+ d->resizeBackground();
#if QT_CONFIG(quicktemplates2_hover)
if (!d->explicitHoverEnabled)
setAcceptHoverEvents(QQuickControlPrivate::calcHoverEnabled(d->parentItem));
diff --git a/src/quicktemplates2/qquicktextfield.cpp b/src/quicktemplates2/qquicktextfield.cpp
index 49f9b4c8..876ceca6 100644
--- a/src/quicktemplates2/qquicktextfield.cpp
+++ b/src/quicktemplates2/qquicktextfield.cpp
@@ -569,6 +569,7 @@ void QQuickTextField::componentComplete()
Q_D(QQuickTextField);
d->executeBackground(true);
QQuickTextInput::componentComplete();
+ d->resizeBackground();
#if QT_CONFIG(quicktemplates2_hover)
if (!d->explicitHoverEnabled)
setAcceptHoverEvents(QQuickControlPrivate::calcHoverEnabled(d->parentItem));