diff options
author | Nico Vertriest <nico.vertriest@qt.io> | 2020-05-28 15:03:37 +0200 |
---|---|---|
committer | Topi Reinio <topi.reinio@qt.io> | 2020-07-02 05:49:32 +0200 |
commit | 05b60631a2cb5c5536490509ed5d41c08a967dc5 (patch) | |
tree | bb8602091d59cf2c4d04284522f22fcafb09ff6c /src/dbus/qdbusargument.cpp | |
parent | c513b1214e38829e9bc23bb2ef948f5c388071a7 (diff) |
Doc: Make dbus snippets compilable
Task-number: QTBUG-84470
Change-Id: Idfe86ae0f38e43678cc5e746e30e5eeaf8eb72dc
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Reviewed-by: Nico Vertriest <nico.vertriest@qt.io>
Diffstat (limited to 'src/dbus/qdbusargument.cpp')
-rw-r--r-- | src/dbus/qdbusargument.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dbus/qdbusargument.cpp b/src/dbus/qdbusargument.cpp index 9e1230c330..2c6be1994c 100644 --- a/src/dbus/qdbusargument.cpp +++ b/src/dbus/qdbusargument.cpp @@ -188,7 +188,9 @@ bool QDBusArgumentPrivate::checkReadAndDetach(QDBusArgumentPrivate *&d) integer and a string can be constructed using the \l {qdbustypesystem.html}{Qt D-Bus type system}: - \snippet code/src_qdbus_qdbusargument.cpp 0 + \snippet code/src_qdbus_qdbusargument.cpp 0-0 + \codeline + \snippet code/src_qdbus_qdbusargument.cpp 0-1 The type has to be registered with qDBusRegisterMetaType() before it can be used with QDBusArgument. Therefore, somewhere in your |