Diffusion KWin 76645f3c1b2a

Fix orientation sensor DBus

Authored by davidedmundson on Aug 31 2019, 5:36 PM.

Description

Fix orientation sensor DBus

Summary:
Firstly, it was completely broken, no-one called registerObject.

Secondly deleting the adaptor doesn't really make sense, you'd still
leave the object valid, only have it broken. Docs of
QDBusAbstractAdaptor do say not to ever delete it manually.

Thirdly we don't need Q_CLASSINFO setting the DBus interface on the
exported item when we use an adaptor.

Test Plan:
Manually added some setEnabled/disabled
Could now see the path

Reviewers: KWin

Subscribers: kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D23610

Details

Committed
davidedmundsonSep 1 2019, 3:15 PM
Differential Revision
D23610: Fix orientation sensor DBus
Parents
R108:2f010926d500: Fix -Wsign-compare
Branches
Unknown
Tags
Unknown