diff options
author | Paul Wicking <paul.wicking@qt.io> | 2018-06-28 15:04:35 +0200 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2018-06-29 05:16:04 +0000 |
commit | 7f7ceb567fe2f58b47b66415f30918f3b482f2b0 (patch) | |
tree | e42aa4642a77c8ea6ae3110e8ce3216cdf76a19e /src | |
parent | e5b3db841d9912cfc1a8252f5e6f687006a5ea2b (diff) |
Doc: Add references to QDBusAbstractAdaptor implementation example
Adding references where applicable, as removed by
023a818738d64da01ebecc5d4a26356055ba0021 when removing stale example.
Add example run snippet to the example landing page.
Remove stale example qdoc file that is superceded by current example.
Task-number: QTBUG-69191
Change-Id: I62dc66edc86da5efb4c79fd124edb2fa619aeb6b
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/dbus/doc/src/dbus-adaptors.qdoc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dbus/doc/src/dbus-adaptors.qdoc b/src/dbus/doc/src/dbus-adaptors.qdoc index fe9d57f1d1..9ebf0cedf2 100644 --- a/src/dbus/doc/src/dbus-adaptors.qdoc +++ b/src/dbus/doc/src/dbus-adaptors.qdoc @@ -68,6 +68,8 @@ \li \l{Declaring Slots in D-Bus Adaptors} \li \l{Declaring Signals in D-Bus Adaptors} \li \l{The Qt D-Bus Type System} + \li In the \l{D-Bus Complex Ping Pong Example}, \c complexpong.h and + \c complexpong.cpp show an implementation of QDBusAbstractAdaptor. \endlist \sa QDBusAbstractAdaptor @@ -109,7 +111,8 @@ synchronize with the caller should provide its own method of synchronization. Asynchronous slots are marked by the keyword \l Q_NOREPLY in the method - signature, before the \c void return type and the slot name. + signature, before the \c void return type and the slot name. The \c quit() + slot in the \l {D-Bus Complex Ping Pong Example} is an example of this. \section1 Input-Only Slots @@ -219,7 +222,8 @@ However, signals must still be emitted. The easiest way to emit an adaptor signal is to connect another signal to it, so that Qt's signals and slots mechanism automatically emits the adaptor signal, too. This can be done in - the adaptor's constructor. + the adaptor's constructor, as you can see in the \l {D-Bus Complex Ping + Pong Example}. The QDBusAbstractAdaptor::setAutoRelaySignals() convenience function can also be used to make and break connections between signals in the real object and |