Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion cfg/qt.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@
</arg>
<arg nr="4" default="0">
<not-uninit/>
<not-bool/>
</arg>
<arg nr="5" default="0">
<not-uninit/>
Expand Down
11 changes: 11 additions & 0 deletions test/cfg/qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <QRegion>
#include <QTransform>
#include <QDir>
#include <QTimer>

// 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))
Expand Down Expand Up @@ -892,3 +893,13 @@ int qdateIsValid()
Q_ASSERT(qd.isValid()); // Should not warn here with assertWithSideEffect
return qd.month();
}

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;
private slots:
bool update();
};
Loading