From 5ef2440102e5eff29296b2463694f9d30ae396c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amanda=20Hamblin-Tru=C3=A9?= Date: Mon, 19 Jun 2023 15:38:47 +0200 Subject: [PATCH] Revamp bindable subscription example Silence a bogus warning. Task-number: QTBUG-114689 Change-Id: I7267b752e780b0c48cc57a513d12ad504e4c7a30 Reviewed-by: Fabian Kosmale (cherry picked from commit 0644f8e63adf9dacc5e6adfac1bdc2dfa4324e2f) Reviewed-by: Qt Cherry-pick Bot --- .../corelib/bindableproperties/bindablesubscription/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/corelib/bindableproperties/bindablesubscription/main.cpp b/examples/corelib/bindableproperties/bindablesubscription/main.cpp index fb247836863..dd4e26fb740 100644 --- a/examples/corelib/bindableproperties/bindablesubscription/main.cpp +++ b/examples/corelib/bindableproperties/bindablesubscription/main.cpp @@ -23,6 +23,8 @@ int main(int argc, char *argv[]) BindableSubscription subscription(&user); SubscriptionWindow w; + // clazy:excludeall=lambda-in-connect + // when subscription is out of scope so is window // Initialize subscription data QRadioButton *monthly = w.findChild("btnMonthly");