mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 12:40:22 +02:00
Qt5: removed QTimer_singleShot4() overload because it cannot be used with Qt5 < 5.10.
This commit is contained in:
parent
0a80c22cf5
commit
0a5d375c2e
@ -81,15 +81,6 @@ void QTimer_singleShot3(int msec, void (*TimeoutEvent)())
|
||||
QTimer::singleShot(msec, TimeoutEvent);
|
||||
}
|
||||
|
||||
void QTimer_singleShot4(int msec, const QObjectH context, void (*TimeoutEvent)())
|
||||
{
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0))
|
||||
QTimer::singleShot(msec, (const QObject*)context, TimeoutEvent);
|
||||
#else
|
||||
QTimer::singleShot(msec, TimeoutEvent);
|
||||
#endif
|
||||
}
|
||||
|
||||
void QTimer_start(QTimerH handle, int msec)
|
||||
{
|
||||
((QTimer *)handle)->start(msec);
|
||||
|
@ -29,7 +29,6 @@ C_EXPORT bool QTimer_isSingleShot(QTimerH handle);
|
||||
C_EXPORT void QTimer_singleShot(int msec, const QObjectH receiver, const char* member);
|
||||
C_EXPORT void QTimer_singleShot2(int msec, Qt::TimerType timerType, const QObjectH receiver, const char* member);
|
||||
C_EXPORT void QTimer_singleShot3(int msec, void (*TimeoutEvent)());
|
||||
C_EXPORT void QTimer_singleShot4(int msec, const QObjectH context, void (*TimeoutEvent)());
|
||||
C_EXPORT void QTimer_start(QTimerH handle, int msec);
|
||||
C_EXPORT void QTimer_start2(QTimerH handle);
|
||||
C_EXPORT void QTimer_stop(QTimerH handle);
|
||||
|
@ -2539,7 +2539,6 @@ function QTimer_isSingleShot(handle: QTimerH): Boolean; cdecl; external Qt5PasLi
|
||||
procedure QTimer_singleShot(msec: Integer; receiver: QObjectH; member: PAnsiChar); cdecl; external Qt5PasLib name 'QTimer_singleShot';
|
||||
procedure QTimer_singleShot(msec: Integer; timerType: QtTimerType; receiver: QObjectH; member: PAnsiChar); cdecl; external Qt5PasLib name 'QTimer_singleShot2';
|
||||
procedure QTimer_singleShot(msec: Integer; timeoutEvent: QTimer_timeout_Event); cdecl; external Qt5PasLib name 'QTimer_singleShot3';
|
||||
procedure QTimer_singleShot(msec: Integer; context: QObjectH; timeoutEvent: QTimer_timeout_Event); cdecl; external Qt5PasLib name 'QTimer_singleShot4';
|
||||
procedure QTimer_start(handle: QTimerH; msec: Integer); cdecl; external Qt5PasLib name 'QTimer_start';
|
||||
procedure QTimer_start(handle: QTimerH); cdecl; external Qt5PasLib name 'QTimer_start2';
|
||||
procedure QTimer_stop(handle: QTimerH); cdecl; external Qt5PasLib name 'QTimer_stop';
|
||||
|
Loading…
Reference in New Issue
Block a user