romangg requested changes to this revision.
romangg added a comment.
This revision now requires changes to proceed.


  Please call the functions `AutoRotate`. I failed to name it consistently in 
the code until now but let's go with AutoRotate from now on (and I will try to 
rename it where I accidentally said AutoRotation in some form). Reasons are 
that it's shorter and when I googled it I found only one technical document. 
Was for Android and called the feature that way 
<https://support.google.com/accessibility/android/answer/6006961?hl=en>.

INLINE COMMENTS

> config.cpp:104
> +    }
> +}
> +

Do it like this:

  void Config::setAutoRotation(bool value)
  {
      for (KScreen::OutputPtr &output : m_data->outputs()) {
          if (output->type() != KScreen::Output::Type::Panel) {
              continue;
          }
          if(m_control->getAutoRotate(output) != value) {
              m_control->setAutoRotate(output, value);
          }
      }
      m_control->writeFile();
  }

REPOSITORY
  R104 KScreen

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

To: bshah, romangg
Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, 
fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, 
ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart

Reply via email to