From fe2de86b06e20fb16bd218f4e6468608b60678ea 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()

---
 src/module/qt_window/qthelper.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/module/qt_window/qthelper.hh b/src/module/qt_window/qthelper.hh
index 9012c6e5..be93c3f0 100644
--- a/src/module/qt_window/qthelper.hh
+++ b/src/module/qt_window/qthelper.hh
@@ -126,7 +126,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