telepathy-qt: tools: Replace qVariantFromValue

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Jan 25 18:06:00 UTC 2020


Module: telepathy-qt
Branch: master
Commit: f0a4cf79ef6a46698ff69a45455056af2290630c
URL:    http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=f0a4cf79ef6a46698ff69a45455056af2290630c

Author: Jonah Brüchert <jbb.prv at gmx.de>
Date:   Sat Jan 18 21:23:16 2020 +0100

tools: Replace qVariantFromValue

---

 tools/qt-svc-gen.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/qt-svc-gen.py b/tools/qt-svc-gen.py
index 565dd01e..ecccc76d 100644
--- a/tools/qt-svc-gen.py
+++ b/tools/qt-svc-gen.py
@@ -501,7 +501,7 @@ Q_SIGNALS: // SIGNALS
             self.b("""
 void %(ifacename)s::%(settername)s(const %(type)s &newValue)
 {
-    adaptee()->setProperty("%(adaptee_name)s", qVariantFromValue(newValue));
+    adaptee()->setProperty("%(adaptee_name)s", QVariant::fromValue(newValue));
 }
 """ % {'ifacename': ifacename,
        'settername': settername,



More information about the telepathy-commits mailing list