QSizePolicy: remind to mark as Q_PRIMITIVE_TYPE in Qt 6

Change-Id: I1f18b4cd99f37aadf199e70d3acade9c8f5f9799
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Marc Mutz 2014-10-04 01:21:18 +02:00 committed by Giuseppe D'Angelo
parent e57153b082
commit adadb5e870

View File

@ -150,6 +150,10 @@ private:
quint32 data;
};
};
#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
// Can't add in Qt 5, as QList<QSizePolicy> would be BiC:
Q_DECLARE_TYPEINFO(QSizePolicy, Q_PRIMITIVE_TYPE);
#endif
Q_DECLARE_OPERATORS_FOR_FLAGS(QSizePolicy::ControlTypes)