<table><tr><td style="">zzag created this revision.<br />zzag added a reviewer: KWin.<br />Herald added a project: KWin.<br />Herald added a subscriber: kwin.<br />zzag requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D25946">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Currently, in order to retrieve the current screen color temperature<br />
applied to all screen as well other attributes of night color manager,<br />
one has to call nightColorInfo() periodically. This goes against well<br />
established patterns in d-bus world. It is recommended to expose a<br />
bunch of d-bus properties rather than have a method that returns all<br />
relevant properties stored in a JSON object.</p>
<p>The ugliest thing about this patch is that a lot of code is duplicated<br />
to emit the PropertiesChanged signal. Unfortunately, QtDBus doesn't<br />
take care of this and we are left with only two options - either do<br />
weird things with QMetaObject or manually emit the signal. I have<br />
picked the second option since it's more comprehensible and less magic<br />
is going on, but I have to admit that the chosen approach is ugly.</p>
<p>I hope that "Qt 6 will fix it."</p>
<p>CCBUG: 400418</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25946">https://phabricator.kde.org/D25946</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>colorcorrection/colorcorrectdbusinterface.cpp<br />
colorcorrection/colorcorrectdbusinterface.h<br />
colorcorrection/manager.cpp<br />
colorcorrection/manager.h<br />
org.kde.kwin.ColorCorrect.xml</div></div></div><br /><div><strong>To: </strong>zzag, KWin<br /><strong>Cc: </strong>kwin, LeGast00n, The-Feren-OS-Dev, sbergeron, jraleigh, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>