apol added a comment.
It could make sense to have a helper function to do this. REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D22818 To: davidedmundson, #plasma, apol Cc: plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart