D28773: feat(kded): add getAutoRotate method and rename lockAutoRotate

Luca Weiss noreply at phabricator.kde.org
Sun Apr 12 15:18:06 BST 2020


z3ntu created this revision.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
z3ntu requested review of this revision.

REVISION SUMMARY
  lockAutoRotate(true) would enable the automatic rotation and
  lockAutoRotate(false) would disable auto rotation which is the opposite
  of what the function name would imply, so rename it to setAutoRotate.
  
  We also need a getter for the value to display the status in the UI.
  This getter checks if all applicable outputs have auto rotate enabled
  and returns that value.

TEST PLAN
  tested on Plasma Mobile

REPOSITORY
  R104 KScreen

BRANCH
  autorotate

REVISION DETAIL
  https://phabricator.kde.org/D28773

AFFECTED FILES
  kded/config.cpp
  kded/config.h
  kded/daemon.cpp
  kded/daemon.h
  kded/org.kde.KScreen.xml

To: z3ntu
Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200412/c451ec6e/attachment.html>


More information about the Plasma-devel mailing list