Qt5: fixed Qt documentation inconsistency about QTimer::singleShot() overload.

This commit is contained in:
Željan Rikalo 2023-08-28 18:05:01 +02:00
parent 614f1a392e
commit 269b3d0007
2 changed files with 7 additions and 3 deletions

View File

@ -10,13 +10,13 @@
# Binding Release Version 1.2.13 against Qt5 5.6 LTS release.
# Binding Release Version 1.2.14 against Qt5 5.6 LTS release.
# WebKit widgets are disabled until webenginewidgets are implemented.
VERSION = 1.2.13
VERSION = 1.2.14
VER_MAJ = 1
VER_MIN = 2
VER_PAT = 13
VER_PAT = 14
win32:VERSION_PE_HEADER = 1.2
QT += gui network printsupport

View File

@ -83,7 +83,11 @@ void QTimer_singleShot3(int msec, void (*TimeoutEvent)())
void QTimer_singleShot4(int msec, const QObjectH context, void (*TimeoutEvent)())
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0))
QTimer::singleShot(msec, (const QObject*)context, TimeoutEvent);
#else
QTimer::singleShot(msec, TimeoutEvent);
#endif
}
void QTimer_start(QTimerH handle, int msec)