summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonah BrĂ¼chert <jbb.prv@gmx.de>2020-01-18 21:23:16 +0100
committerJonah BrĂ¼chert <jbb.prv@gmx.de>2020-01-19 00:27:26 +0100
commitf0a4cf79ef6a46698ff69a45455056af2290630c (patch)
treec9bdd4243e954217ced022932b400099e73e5e8d
parent379e06a91484f72bf37ff1fc5faa6d7a40bc0d28 (diff)
tools: Replace qVariantFromValue
-rw-r--r--tools/qt-svc-gen.py2
1 files changed, 1 insertions, 1 deletions
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,