Add support for Qt5

This commit is contained in:
Duncan Ogilvie committed 2026-02-10 23:06:55 +01:00
1 parent 6bd61a6b78
commit 7194322831
16 files changed
+363 -82

No files matched your search

+4
View File
@@ -47,7 +47,11 @@ int main(int argc, char* argv[]) {
app.quit();
});
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
QObject::connect(socket, &QLocalSocket::errorOccurred, [&](QLocalSocket::LocalSocketError err) {
#else
QObject::connect(socket, QOverload<QLocalSocket::LocalSocketError>::of(&QLocalSocket::error), [&](QLocalSocket::LocalSocketError err) {
#endif
fprintf(stderr, "[rcx-mcp-stdio] Socket error %d: %s\n",
(int)err, socket->errorString().toUtf8().constData());
app.quit();