From 39cdf431f034121353e51768b4d1fec8b0dd35dc Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 28 Apr 2023 17:11:36 +0200 Subject: QObject: add setProperty() overload taking rvalue QVariant Instead of duplicating the long-ish implementation, simply pass the variant as pointers to const and mutable, and implement a runtime version of std::forward. [ChangeLog][QtCore][QObject] Added setProperty() overload taking an rvalue QVariant. Fixes: QTBUG-113281 Task-number: QTBUG-112762 Change-Id: Ifdc8f626ad5db138073474c3bd95ec7308c4396b Reviewed-by: Fabian Kosmale Reviewed-by: Giuseppe D'Angelo Reviewed-by: Qt CI Bot --- src/corelib/compat/removed_api.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/corelib/compat/removed_api.cpp') diff --git a/src/corelib/compat/removed_api.cpp b/src/corelib/compat/removed_api.cpp index 13a162135a..dde262e779 100644 --- a/src/corelib/compat/removed_api.cpp +++ b/src/corelib/compat/removed_api.cpp @@ -509,6 +509,8 @@ QByteArray QMessageAuthenticationCode::hash(const QByteArray &msg, const QByteAr qToByteArrayViewIgnoringNull(key), method); } +#include "qobject.h" // inlined API + #include "qrunnable.h" QRunnable *QRunnable::create(std::function functionToRun) -- cgit v1.2.3