aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJøger Hansegård <joger.hansegard@qt.io>2023-09-18 10:14:15 +0200
committerJøger Hansegård <joger.hansegard@qt.io>2023-09-28 08:56:35 +0200
commit905c86a83bb3bbca43edc98ee0dd9f4078aaa40f (patch)
treea68991aa3247fdd1bbad4ca3009d1da68974eda1 /src
parent251fdf01a65a52414dd9183308520efbbd731567 (diff)
Add missing connect context object in QQuickPaletteProviderPrivateBase
When building QtMultimedia on Windows as static library, the build failed when compiling qtmultimedia's multimediaquick module in qtmultimedia\src\multimediaquick\qquickvideooutput.cpp because a connect statement was contextless. This is no longer allowed because QT_NO_CONTEXTLESS_CONNECT is defined. The build issue is fixed by adding the output from itemWithPalette() as a context object. The output from itemWithPalette() is the object being used inside the lambda function. Change-Id: I0d9c807e360ffccf51da46913cd9faa5c71f5705 Reviewed-by: Ahmad Samir <a.samirh78@gmail.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/quick/items/qquickpaletteproviderprivatebase_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickpaletteproviderprivatebase_p.h b/src/quick/items/qquickpaletteproviderprivatebase_p.h
index f374b64e30..86b04abf4b 100644
--- a/src/quick/items/qquickpaletteproviderprivatebase_p.h
+++ b/src/quick/items/qquickpaletteproviderprivatebase_p.h
@@ -221,7 +221,7 @@ void QQuickPaletteProviderPrivateBase<I, Impl>::registerPalette(PalettePtr palet
// In order to avoid extra noise, we should connect
// the following signals only after everything is already setup
I::connect(paletteData(), &QQuickPalette::changed, itemWithPalette(), &I::paletteChanged);
- I::connect(paletteData(), &QQuickPalette::changed, [this]{ updateChildrenPalettes(toQPalette()); });
+ I::connect(paletteData(), &QQuickPalette::changed, itemWithPalette(), [this]{ updateChildrenPalettes(toQPalette()); });
}
template<class T> struct dependent_false : std::false_type {};