mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 02:39:15 +02:00
Qt5: added 2 static QTimer_singleShot() overloads.
This commit is contained in:
parent
7125c37be8
commit
43db2a961a
@ -1,5 +1,5 @@
|
||||
//******************************************************************************
|
||||
// Copyright (c) 2005-2013 by Jan Van hijfte
|
||||
// Copyright (c) 2005-2023 by Jan Van hijfte, Željan Rikalo
|
||||
//
|
||||
// See the included file COPYING.TXT for details about the copyright.
|
||||
//
|
||||
@ -76,6 +76,16 @@ void QTimer_singleShot2(int msec, Qt::TimerType timerType, const QObjectH receiv
|
||||
QTimer::singleShot(msec, timerType, (const QObject*)receiver, member);
|
||||
}
|
||||
|
||||
void QTimer_singleShot3(int msec, void (*TimeoutEvent)())
|
||||
{
|
||||
QTimer::singleShot(msec, TimeoutEvent);
|
||||
}
|
||||
|
||||
void QTimer_singleShot4(int msec, const QObjectH context, void (*TimeoutEvent)())
|
||||
{
|
||||
QTimer::singleShot(msec, (const QObject*)context, TimeoutEvent);
|
||||
}
|
||||
|
||||
void QTimer_start(QTimerH handle, int msec)
|
||||
{
|
||||
((QTimer *)handle)->start(msec);
|
||||
|
@ -1,5 +1,5 @@
|
||||
//******************************************************************************
|
||||
// Copyright (c) 2005-2013 by Jan Van hijfte
|
||||
// Copyright (c) 2005-2023 by Jan Van hijfte, Željan Rikalo
|
||||
//
|
||||
// See the included file COPYING.TXT for details about the copyright.
|
||||
//
|
||||
@ -28,6 +28,8 @@ C_EXPORT void QTimer_setSingleShot(QTimerH handle, bool singleShot);
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user