<table><tr><td style="">ovichiro added a comment.
</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/D26895">View Revision</a></tr></table><br /><div><div><p>Not sure it's my place to do so, but I'd like to make a small comment. <br />
Instead of passing <tt style="background: #ebebeb; font-size: 13px;">mode</tt> around and all the <tt style="background: #ebebeb; font-size: 13px;">if</tt> statements, wouldn't it be better to have a single decision point in <tt style="background: #ebebeb; font-size: 13px;">main.cpp</tt>, like a factory class? <br />
Use polymorphism and create something like <tt style="background: #ebebeb; font-size: 13px;">InfoCenter : CommonParent</tt>, <tt style="background: #ebebeb; font-size: 13px;">SystemSettings : CommonParent</tt>, each knowing how to initialize their <tt style="background: #ebebeb; font-size: 13px;">KAboutData</tt>, GUI elements, icons etc.? <br />
And in <tt style="background: #ebebeb; font-size: 13px;">main.cpp</tt> do something like <tt style="background: #ebebeb; font-size: 13px;">CommonParent * commonParent = new InfoCenter() // or new SystemSettings()</tt> and use that instead of <tt style="background: #ebebeb; font-size: 13px;">mode</tt>. <br />
Further down the road, if you need to add something to system settings, you could do it in the SystemSettings class maybe and not have to add another <tt style="background: #ebebeb; font-size: 13px;">if</tt> to remove it from the InfoCenter part. Just a thought, not sure if it fits.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R124 System Settings</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D26895">https://phabricator.kde.org/D26895</a></div></div><br /><div><strong>To: </strong>mart, Plasma, davidedmundson<br /><strong>Cc: </strong>ovichiro, meven, davidedmundson, broulik, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>