summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorElvis Angelaccio <elvis.angelaccio@kde.org>2019-11-24 21:11:25 +0100
committerElvis Angelaccio <elvis.angelaccio@kde.org>2019-11-30 15:24:14 +0100
commitc0fb2a81737c07f213c3a8c36732149e0c58ed0d (patch)
treee1234a65854a53fc31cc5199f3ac7c8eb6871c1d /src
parent4e9e9c2c17afa472fb8ae04fc36d9605863f8b83 (diff)
QDBusInterface: mention QtDBus caching in documentation
QtDBus caches well known interface objects when there is a non-emtpy interface name passed to the QDBusInterface constructor. This commit amends the constructor documentation to explain this behavior. Change-Id: Ic51836be6d833411500ea05fcc895cd4f6e96407 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/dbus/qdbusinterface.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dbus/qdbusinterface.cpp b/src/dbus/qdbusinterface.cpp
index 4dd02e8c76..b53c639b6d 100644
--- a/src/dbus/qdbusinterface.cpp
+++ b/src/dbus/qdbusinterface.cpp
@@ -204,7 +204,9 @@ QDBusInterfacePrivate::~QDBusInterfacePrivate()
interface \a interface on object at path \a path on service \a
service, using the given \a connection. If \a interface is an
empty string, the object created will refer to the merging of all
- interfaces found in that object.
+ interfaces found by introspecting that object. Otherwise if
+ \a interface is not empty, the QDBusInterface object will be cached
+ to speedup further creations of the same interface.
\a parent is passed to the base class constructor.