Skip to content

Commit 9bd2f44

Browse files
Update qt.cpp
1 parent f654c3a commit 9bd2f44

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

test/cfg/qt.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <QRegion>
3434
#include <QTransform>
3535
#include <QDir>
36+
#include <QTimer>
3637

3738
// TODO: this is actually available via Core5Compat but I could not get it to work with pkg-config
3839
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
@@ -892,3 +893,12 @@ int qdateIsValid()
892893
Q_ASSERT(qd.isValid()); // Should not warn here with assertWithSideEffect
893894
return qd.month();
894895
}
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

Comments
 (0)