summaryrefslogtreecommitdiffstats
path: root/src/dbus/doc/snippets
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbus/doc/snippets')
-rw-r--r--src/dbus/doc/snippets/code/src_qdbus_qdbusargument.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus/doc/snippets/code/src_qdbus_qdbusargument.cpp b/src/dbus/doc/snippets/code/src_qdbus_qdbusargument.cpp
index 7eb1e8b34e..cf698c79bf 100644
--- a/src/dbus/doc/snippets/code/src_qdbus_qdbusargument.cpp
+++ b/src/dbus/doc/snippets/code/src_qdbus_qdbusargument.cpp
@@ -242,7 +242,7 @@ QDBusArgument &operator<<(QDBusArgument &argument, const MyArray &myArray)
// Append a dictionary that associates ints to MyValue types
QDBusArgument &operator<<(QDBusArgument &argument, const MyDictionary &myDict)
{
- argument.beginMap(QVariant::Int, qMetaTypeId<MyValue>());
+ argument.beginMap(QMetaType::fromType<int>(), QMetaType::fromType<MyValue>());
MyDictionary::const_iterator i;
for (i = myDict.cbegin(); i != myDict.cend(); ++i) {
argument.beginMapEntry();