qprintengine.h declares Q_DECLARE_METATYPE(QMarginsF). We can use its macro to check.

This commit is contained in:
Roman Telezhynskyi 2023-02-21 10:20:39 +02:00
parent 647653a40a
commit 48da4ff899
3 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ Q_GLOBAL_STATIC_WITH_ARGS(const QString, settingLayoutLineWidth, (QLatin1String(
int cachedLineWidth = -1;
} // namespace
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
#ifndef QPRINTENGINE_H
Q_DECLARE_METATYPE(QMarginsF) // NOLINT
#endif

View File

@ -71,7 +71,7 @@ const qreal VCommonSettings::defaultScrollingAcceleration = 1.3;
const qreal VCommonSettings::scrollingAccelerationMin = 1.0;
const qreal VCommonSettings::scrollingAccelerationMax = 10.0;
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
#ifndef QPRINTENGINE_H
Q_DECLARE_METATYPE(QMarginsF) // NOLINT
#endif

View File

@ -44,7 +44,7 @@
#include "../vmisc/compatibility.h"
#include "qglobal.h"
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
#ifndef QPRINTENGINE_H
Q_DECLARE_METATYPE(QMarginsF) // NOLINT
#endif