summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Heikkinen <jani.heikkinen@qt.io>2021-11-30 08:15:51 +0200
committerJani Heikkinen <jani.heikkinen@qt.io>2021-11-30 10:23:26 +0200
commit3b8b630bccda55c7c78ff2459484904406c12875 (patch)
tree3485c322d033673e4af06d9d17c00e0625040ed5
parent0c230bbd40cafcf69a001af2d97e882c045ce3f1 (diff)
Move Q_DECLARE_PUBLIC to the public section
This is now required to use QObjectPrivate::connect. Fixes: QTBUG-98735 Pick-to: 6.2 Change-Id: Iec32a4726faa34b3fe57d9cd97c5d806db6b0377 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
-rw-r--r--src/serialport/qserialport_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/serialport/qserialport_p.h b/src/serialport/qserialport_p.h
index a24ed0b4..cb2007d4 100644
--- a/src/serialport/qserialport_p.h
+++ b/src/serialport/qserialport_p.h
@@ -125,8 +125,9 @@ public:
class QSerialPortPrivate : public QIODevicePrivate
{
- Q_DECLARE_PUBLIC(QSerialPort)
public:
+ Q_DECLARE_PUBLIC(QSerialPort)
+
QSerialPortPrivate();
bool open(QIODevice::OpenMode mode);