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:
parent
ef5df245db
commit
71471cce34
|
@ -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(); });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue