Doc: fix compilability of the example
QDBusConnection::registerObject takes an object. Task-number: QTBUG-30483 Change-Id: Ibebec48e8c9d3df0d3fa1177c3887ea5c75e8623 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
This commit is contained in:
parent
f104991180
commit
55c225428f
@ -146,7 +146,7 @@ int main(int argc, char **argv)
|
||||
new MainApplicationAdaptor(app);
|
||||
|
||||
// connect to D-Bus and register as an object:
|
||||
QDBusConnection::sessionBus().registerObject("/MainApplication", app);
|
||||
QDBusConnection::sessionBus().registerObject("/MainApplication", &app);
|
||||
|
||||
// add main window, etc.
|
||||
[...]
|
||||
|
Loading…
Reference in New Issue
Block a user