From 9cc45aedb6f6c26be861b855b86e647a5d729dfc Mon Sep 17 00:00:00 2001 From: Elliu <elliu@hashi.re> Date: Sun, 9 Feb 2025 19:55:07 +0100 Subject: [PATCH] QT_WINDOW: update for deprecated QVariant::type() --- lektord/c/qthelper.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lektord/c/qthelper.hh b/lektord/c/qthelper.hh index d81e41f2..26b0dd01 100644 --- a/lektord/c/qthelper.hh +++ b/lektord/c/qthelper.hh @@ -92,7 +92,7 @@ private: // "QVariant::Type(obsolete), the return value should be interpreted // as QMetaType::Type." // So a cast really seems to be needed to avoid warnings (urgh). - return static_cast<int>(v.type()) == static_cast<int>(t); + return static_cast<int>(v.typeId()) == static_cast<int>(t); } void set(mpv_node *dst, const QVariant &src) -- GitLab