Qt5: added forgotten QGuiApplication::applicationState() to the bindings and qt56.pas

This commit is contained in:
Željan Rikalo 2023-06-13 21:39:56 +02:00
parent e040e5626d
commit 03a4881ad3
3 changed files with 7 additions and 0 deletions

View File

@ -35,6 +35,11 @@ void QGuiApplication_applicationDisplayName(PWideString retval)
copyQStringToPWideString(t_retval, retval);
}
Qt::ApplicationState QGuiApplication_applicationState()
{
return (Qt::ApplicationState) QGuiApplication::applicationState();
}
void QGuiApplication_allWindows(PPtrIntArray retval)
{
QWindowList t_retval;

View File

@ -19,6 +19,7 @@ C_EXPORT QGuiApplicationH QGuiApplication_Create(int* argc, char** argv, int Ano
C_EXPORT void QGuiApplication_Destroy(QGuiApplicationH handle);
C_EXPORT void QGuiApplication_setApplicationDisplayName(PWideString name);
C_EXPORT void QGuiApplication_applicationDisplayName(PWideString retval);
C_EXPORT Qt::ApplicationState QGuiApplication_applicationState();
C_EXPORT void QGuiApplication_allWindows(PPtrIntArray retval);
C_EXPORT void QGuiApplication_topLevelWindows(PPtrIntArray retval);
C_EXPORT QWindowH QGuiApplication_topLevelAt(const QPointH pos);

View File

@ -5506,6 +5506,7 @@ function QGuiApplication_Create(argc: PInteger; argv: PPAnsiChar; AnonParam3: In
procedure QGuiApplication_Destroy(handle: QGuiApplicationH); cdecl; external Qt5PasLib name 'QGuiApplication_Destroy';
procedure QGuiApplication_setApplicationDisplayName(name: PWideString); cdecl; external Qt5PasLib name 'QGuiApplication_setApplicationDisplayName';
procedure QGuiApplication_applicationDisplayName(retval: PWideString); cdecl; external Qt5PasLib name 'QGuiApplication_applicationDisplayName';
function QGuiApplication_applicationState(): QtApplicationState; cdecl; external Qt5PasLib name 'QGuiApplication_applicationState';
procedure QGuiApplication_allWindows(retval: PPtrIntArray); cdecl; external Qt5PasLib name 'QGuiApplication_allWindows';
procedure QGuiApplication_topLevelWindows(retval: PPtrIntArray); cdecl; external Qt5PasLib name 'QGuiApplication_topLevelWindows';
function QGuiApplication_topLevelAt(pos: PQtPoint): QWindowH; cdecl; external Qt5PasLib name 'QGuiApplication_topLevelAt';