Fix build with QT_NO_CONTEXTLESS_CONNECT in qtquickeffectmaker

Change-Id: If2c96b7cfc8211424765faad0c66aa9377146ba8
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Ahmad Samir 2023-12-21 22:10:30 +02:00
parent ef5df245db
commit 71471cce34
1 changed files with 6 additions and 3 deletions

View File

@ -345,9 +345,12 @@ void QQuickPaletteProviderPrivateBase<I, Impl>::connectItem()
if constexpr (!isRootWindow<I>()) {
// Item with palette has the same lifetime as its implementation that inherits this class
I::connect(itemWithPalette(), &I::parentChanged , [this]() { inheritPalette(parentPalette(defaultPalette())); });
I::connect(itemWithPalette(), &I::windowChanged , [this]() { inheritPalette(parentPalette(defaultPalette())); });
I::connect(itemWithPalette(), &I::enabledChanged, [this]() { setCurrentColorGroup(); });
I::connect(itemWithPalette(), &I::parentChanged,
itemWithPalette(), [this]() { inheritPalette(parentPalette(defaultPalette())); });
I::connect(itemWithPalette(), &I::windowChanged,
itemWithPalette(), [this]() { inheritPalette(parentPalette(defaultPalette())); });
I::connect(itemWithPalette(), &I::enabledChanged,
itemWithPalette(), [this]() { setCurrentColorGroup(); });
}
}