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:
Thiago Macieira 2013-04-03 08:04:34 -07:00 committed by The Qt Project
parent f104991180
commit 55c225428f

View File

@ -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.
[...]