mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 11:19:26 +02:00
Qt5: use QTimer::singleShot() with QObject context from Qt 5.9.0
This commit is contained in:
parent
e73c702be2
commit
e27bb2eef2
@ -83,7 +83,7 @@ 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))
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0))
|
||||
QTimer::singleShot(msec, (const QObject*)context, TimeoutEvent);
|
||||
#else
|
||||
QTimer::singleShot(msec, TimeoutEvent);
|
||||
|
Loading…
Reference in New Issue
Block a user