Terminal: Fix exiting of conpty terminals

QMetaObject would complain about not knowing about the HANDLE type.

Change-Id: Iae240bed37c892561eaacdc1d22cf4ae0173df29
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Cristian Adam
2023-05-16 12:42:04 +02:00
parent d6111f2e1d
commit 1e595c6afe

View File

@@ -83,6 +83,8 @@ HRESULT ConPtyProcess::initializeStartupInfoAttachedToPseudoConsole(STARTUPINFOE
return hr;
}
Q_DECLARE_METATYPE(HANDLE)
ConPtyProcess::ConPtyProcess()
: IPtyProcess()
, m_ptyHandler { INVALID_HANDLE_VALUE }
@@ -90,7 +92,7 @@ ConPtyProcess::ConPtyProcess()
, m_hPipeOut { INVALID_HANDLE_VALUE }
, m_readThread(nullptr)
{
qRegisterMetaType<HANDLE>("HANDLE");
}
ConPtyProcess::~ConPtyProcess()