From f654c3a672b105df0053c6a81090cefcf09aa37d Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Thu, 2 Jul 2026 17:27:49 +0200 Subject: [PATCH 1/3] Update qt.cfg --- cfg/qt.cfg | 1 - 1 file changed, 1 deletion(-) diff --git a/cfg/qt.cfg b/cfg/qt.cfg index 66f6e78b3b6..d89626bd21f 100644 --- a/cfg/qt.cfg +++ b/cfg/qt.cfg @@ -406,7 +406,6 @@ - From 9bd2f44de67f4d65f90f87ba288b740ade4210ed Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Thu, 2 Jul 2026 17:31:11 +0200 Subject: [PATCH 2/3] Update qt.cpp --- test/cfg/qt.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/cfg/qt.cpp b/test/cfg/qt.cpp index 78827d3583c..157958b774f 100644 --- a/test/cfg/qt.cpp +++ b/test/cfg/qt.cpp @@ -33,6 +33,7 @@ #include #include #include +#include // TODO: this is actually available via Core5Compat but I could not get it to work with pkg-config #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) @@ -892,3 +893,12 @@ int qdateIsValid() Q_ASSERT(qd.isValid()); // Should not warn here with assertWithSideEffect return qd.month(); } + +struct S_QTimer_connect : QObject { // #13846 + S_QTimer_connect() { + QObject::connect(&timer, SIGNAL(timeout()), this, SLOT(update())); + } + QTimer timer; +private slots: + bool update(); +}; From f1814b7437f340833cb87e145e153a419a71f509 Mon Sep 17 00:00:00 2001 From: chrchr-github Date: Thu, 2 Jul 2026 18:54:19 +0200 Subject: [PATCH 3/3] Fix --- cfg/qt.cfg | 2 +- test/cfg/qt.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cfg/qt.cfg b/cfg/qt.cfg index d89626bd21f..c7bf3d8779b 100644 --- a/cfg/qt.cfg +++ b/cfg/qt.cfg @@ -406,10 +406,10 @@ + - diff --git a/test/cfg/qt.cpp b/test/cfg/qt.cpp index 157958b774f..2b683648dcd 100644 --- a/test/cfg/qt.cpp +++ b/test/cfg/qt.cpp @@ -896,6 +896,7 @@ int qdateIsValid() struct S_QTimer_connect : QObject { // #13846 S_QTimer_connect() { + // cppcheck-suppress checkLibraryFunction - timeout() is a signal from QTimer QObject::connect(&timer, SIGNAL(timeout()), this, SLOT(update())); } QTimer timer;