From d532a1b2b068ac4a7e5ccac764585daee366b8fc Mon Sep 17 00:00:00 2001 From: Pekka Vuorela Date: Fri, 21 Nov 2025 10:26:26 +0200 Subject: Repurpose .pro files for qt5 support - almost works There's still need for having qt5 support out there and the .pro files don't anyway compile with qt6 by now. Adjusting those and the code to build on qt5 didn't even require much adjustments. The hack to get _p.h includes work without private prefix, that used to be there for qmake build, is horrible but at least it's relatively small and affecting only .pro files. The examples had some existing issues building there, missing includes and not entirely disabled protocol editor support. The "almost works" part: builds fine but the metatype side is slightly lacking, resulting also a unit test failure. On qt5 qmailipc.h would need qRegisterMetaTypeStreamOperators() call after qRegisterMetaType() but I'm not eager to add qt version ifdeffing inside a macro, at least now. Hoping to clean up the whole metatype registration first. Change-Id: I6e620175383690ce4e6eb4c841e314ccf031026f Reviewed-by: Damien Caliste Reviewed-by: Reviewed-by: Pekka Vuorela --- examples/messagingaccounts/messagingaccounts.pro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/messagingaccounts') diff --git a/examples/messagingaccounts/messagingaccounts.pro b/examples/messagingaccounts/messagingaccounts.pro index 5ff2b74b..179516f4 100644 --- a/examples/messagingaccounts/messagingaccounts.pro +++ b/examples/messagingaccounts/messagingaccounts.pro @@ -9,11 +9,11 @@ INCLUDEPATH += \ $$QTMAIL_EXAMPLE HEADERS += $$QTMAIL_EXAMPLE/accountsettings.h \ - $$QTMAIL_EXAMPLE/editaccount.h \ + #$$QTMAIL_EXAMPLE/editaccount.h \ $$QTMAIL_EXAMPLE/statusbar.h SOURCES += $$QTMAIL_EXAMPLE/accountsettings.cpp \ - $$QTMAIL_EXAMPLE/editaccount.cpp \ + #$$QTMAIL_EXAMPLE/editaccount.cpp \ $$QTMAIL_EXAMPLE/statusbar.cpp \ main_messagingaccounts.cpp -- cgit v1.2.3