Fix build with -no-feature-animation

Pick-to: 6.5
Change-Id: Ibd786bc140051ed09d65c6a784ad52c6a1ef7987
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Tasuku Suzuki 2023-03-03 14:26:10 +09:00 committed by Volker Hilsheimer
parent 45df0ed246
commit 0bbf817589

View File

@ -646,7 +646,7 @@ static int effectiveTextMargin(int defaultMargin, const QLineEditPrivate::SideWi
const auto visibleSideWidgetCount = std::count_if(widgets.begin(), widgets.end(), const auto visibleSideWidgetCount = std::count_if(widgets.begin(), widgets.end(),
[](const QLineEditPrivate::SideWidgetEntry &e) { [](const QLineEditPrivate::SideWidgetEntry &e) {
#if QT_CONFIG(toolbutton) #if QT_CONFIG(toolbutton) && QT_CONFIG(animation)
// a button that's fading out doesn't get any space // a button that's fading out doesn't get any space
if (auto* iconButton = qobject_cast<QLineEditIconButton*>(e.widget)) if (auto* iconButton = qobject_cast<QLineEditIconButton*>(e.widget))
return iconButton->needsSpace(); return iconButton->needsSpace();