aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2026-04-16 16:37:36 +0200
committerMarc Mutz <marc.mutz@qt.io>2026-04-23 13:18:01 +0000
commit5b33ac6e640ad9fffee7441463042f1fb2292c74 (patch)
tree9a388ae19a1279191a9b103dbf7a68c002210cc1
parentf50c583d657d501108b558b193e226de935a1a6a (diff)
QQuickStyleConstants: fix 3-arg connect
Use 'this' as the context argument, because that's what the lambda acts on, too. As a drive-by, fix the depreated [=] capture of *this by capturing [this] instead, which likely breaks C++20 builds. Therefore pick all the way. Amends 8a650ed550ea65a62ecce7f472838cc0ba53d5e4 (picked to 6.5). Pick-to: 6.8 6.5 Task-number: QTBUG-145829 Change-Id: I6ff932696a923b80796319729b93c97fb573dc9a Reviewed-by: Ahmad Samir <a.samirh78@gmail.com> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit 34d5f23ad5faa0218498066e770388cb0231ebc1) Reviewed-by: Marc Mutz <marc.mutz@qt.io>
-rw-r--r--src/quicknativestyle/util/qquickstyleconstants.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicknativestyle/util/qquickstyleconstants.mm b/src/quicknativestyle/util/qquickstyleconstants.mm
index fb2b00e8c6..874b27ec02 100644
--- a/src/quicknativestyle/util/qquickstyleconstants.mm
+++ b/src/quicknativestyle/util/qquickstyleconstants.mm
@@ -16,7 +16,7 @@ using namespace Qt::StringLiterals;
QQuickStyleConstants::QQuickStyleConstants()
{
- connect(QGuiApplication::styleHints(), &QStyleHints::colorSchemeChanged, [=]{
+ connect(QGuiApplication::styleHints(), &QStyleHints::colorSchemeChanged, this, [this] {
emit secondarySystemFillColorChanged();
emit tertiarySystemFillColorChanged();
});