QRestAccessManager: fix syncqt generation

Apparently it has trouble with multiple attributes between the
class keyword and the class name, looking only for the EXPORT
macros.

As a quick band-aid we can add the #pragma to tell syncqt
to generate the header explicitly.

Fixes: QTBUG-123875
Change-Id: If155a5b667b9e71d43dfac04ad19caee0ff23793
Reviewed-by:  Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
(cherry picked from commit f2159d71313cca1d27a9c30da8e7709ea23320e2)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Mårten Nordheim 2024-04-02 14:41:50 +02:00 committed by Qt Cherry-pick Bot
parent bed03c10be
commit 45b90af43c

View File

@ -4,6 +4,10 @@
#ifndef QRESTACCESSMANAGER_H
#define QRESTACCESSMANAGER_H
#if 0
#pragma qt_class(QRestAccessManager)
#endif
#include <QtNetwork/qnetworkaccessmanager.h>
QT_BEGIN_NAMESPACE