From da799c20d763b5534152dca52fef12fda875acc2 Mon Sep 17 00:00:00 2001 From: Ivan Solovev Date: Thu, 9 Jan 2025 14:31:49 +0100 Subject: [PATCH] QMetaEnum::valueToKeys: fix REMOVED_SINCE version Should be 6.9. The entries in removed_api.cpp are already added to the correct place, just the macro in the public header used wrong version. Amends d41b87e06742b491c4e36aeae32e03f85b078d69. Pick-to: 6.9 Change-Id: I88749dbeb070206c42feb4ffc504f260f8857823 Reviewed-by: Fabian Kosmale Reviewed-by: Thiago Macieira --- src/corelib/kernel/qmetaobject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/kernel/qmetaobject.h b/src/corelib/kernel/qmetaobject.h index 60e0a2127a5..fa0357918b5 100644 --- a/src/corelib/kernel/qmetaobject.h +++ b/src/corelib/kernel/qmetaobject.h @@ -285,7 +285,7 @@ public: int keysToValue(const char *keys, bool *ok = nullptr) const; std::optional keyToValue64(const char *key) const; std::optional keysToValue64(const char *keys) const; -#if QT_CORE_REMOVED_SINCE(6, 8) +#if QT_CORE_REMOVED_SINCE(6, 9) const char *valueToKey(int value) const; QByteArray valueToKeys(int value) const; #endif