path: root/src/corelib/kernel/qvariant.h
diff options
authorTasuku Suzuki <>2019-07-16 10:31:18 +0900
committerTasuku Suzuki <>2019-08-16 01:05:02 +0900
commit37bae591b7829cd8ac6a9c8556bbe6b96b365bc3 (patch)
treec9a8f19898bc4004b62248b7895a1374c06dae08 /src/corelib/kernel/qvariant.h
parentd0e7be8b1c77dea752193dfb6df8bf8b467c6560 (diff)
Introduce a new feature called easingcurve
features.animation and features.scroller depend on the feature. In total, this saves around 180KB from QtCore and 75KB from QtWidgets. Change-Id: I65aac3ec4d50d62424ee33f44b99f3cfb91121d6 Reviewed-by: Thomas Hartmann <> Reviewed-by: Jan Arve Sæther <> Reviewed-by: Edward Welbourne <>
Diffstat (limited to 'src/corelib/kernel/qvariant.h')
1 files changed, 8 insertions, 0 deletions
diff --git a/src/corelib/kernel/qvariant.h b/src/corelib/kernel/qvariant.h
index 39b7e4c0ce..e7d3d9c835 100644
--- a/src/corelib/kernel/qvariant.h
+++ b/src/corelib/kernel/qvariant.h
@@ -66,7 +66,9 @@ class QBitArray;
class QDataStream;
class QDate;
class QDateTime;
+#if QT_CONFIG(easingcurve)
class QEasingCurve;
class QLine;
class QLineF;
class QLocale;
@@ -162,7 +164,9 @@ class Q_CORE_EXPORT QVariant
RegExp = QMetaType::QRegExp,
RegularExpression = QMetaType::QRegularExpression,
Hash = QMetaType::QVariantHash,
+#if QT_CONFIG(easingcurve)
EasingCurve = QMetaType::QEasingCurve,
Uuid = QMetaType::QUuid,
#if QT_CONFIG(itemmodel)
ModelIndex = QMetaType::QModelIndex,
@@ -254,7 +258,9 @@ class Q_CORE_EXPORT QVariant
#endif // QT_CONFIG(regularexpression)
QVariant(const QUrl &url);
+#if QT_CONFIG(easingcurve)
QVariant(const QEasingCurve &easing);
QVariant(const QUuid &uuid);
QVariant(const QJsonValue &jsonValue);
QVariant(const QJsonObject &jsonObject);
@@ -328,7 +334,9 @@ class Q_CORE_EXPORT QVariant
#endif // QT_CONFIG(regularexpression)
QUrl toUrl() const;
+#if QT_CONFIG(easingcurve)
QEasingCurve toEasingCurve() const;
QUuid toUuid() const;
QJsonValue toJsonValue() const;
QJsonObject toJsonObject() const;