mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 12:41:21 +02:00
Qt5: use QTimer::singleShot() with QObject context from Qt 5.9.0
(cherry picked from commit e27bb2eef2
)
This commit is contained in:
parent
aacd2f6ce5
commit
079a625837
@ -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