aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickswipedelegate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quicktemplates2/qquickswipedelegate.cpp')
-rw-r--r--src/quicktemplates2/qquickswipedelegate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quicktemplates2/qquickswipedelegate.cpp b/src/quicktemplates2/qquickswipedelegate.cpp
index 68a50f7a2d..67041d1592 100644
--- a/src/quicktemplates2/qquickswipedelegate.cpp
+++ b/src/quicktemplates2/qquickswipedelegate.cpp
@@ -731,11 +731,11 @@ void QQuickSwipeDelegatePrivate::resizeBackground()
QQuickItemPrivate *p = QQuickItemPrivate::get(background);
const bool extraAllocated = extra.isAllocated();
// Don't check for or set the x here since it will just be overwritten by reposition().
- if (((!p->widthValid || !extraAllocated || !extra->hasBackgroundWidth))
+ if (((!p->widthValid() || !extraAllocated || !extra->hasBackgroundWidth))
|| (extraAllocated && (extra->hasLeftInset || extra->hasRightInset))) {
background->setWidth(width - getLeftInset() - getRightInset());
}
- if (((!p->heightValid || !extraAllocated || !extra->hasBackgroundHeight) && qFuzzyIsNull(background->y()))
+ if (((!p->heightValid() || !extraAllocated || !extra->hasBackgroundHeight) && qFuzzyIsNull(background->y()))
|| (extraAllocated && (extra->hasTopInset || extra->hasBottomInset))) {
background->setY(getTopInset());
background->setHeight(height - getTopInset() - getBottomInset());