1 parent f654c3a commit 9bd2f44Copy full SHA for 9bd2f44
1 file changed
test/cfg/qt.cpp
@@ -33,6 +33,7 @@
33
#include <QRegion>
34
#include <QTransform>
35
#include <QDir>
36
+#include <QTimer>
37
38
// TODO: this is actually available via Core5Compat but I could not get it to work with pkg-config
39
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
@@ -892,3 +893,12 @@ int qdateIsValid()
892
893
Q_ASSERT(qd.isValid()); // Should not warn here with assertWithSideEffect
894
return qd.month();
895
}
896
+
897
+struct S_QTimer_connect : QObject { // #13846
898
+ S_QTimer_connect() {
899
+ QObject::connect(&timer, SIGNAL(timeout()), this, SLOT(update()));
900
+ }
901
+ QTimer timer;
902
+private slots:
903
+ bool update();
904
+};
0 commit comments