<table><tr><td style="">araujoluis edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-ux3oezlyfbuy5me/">(Show Details)</a>
</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/D29502">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;">Signed-off-by: Gustavo Carneiro <gcarneiroa@hotmail.com><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"><br />
<br />
This PR adds a feature to name colors in KColorCombo in special cases where, for example, the color of the main theme must be in the list, or some other important information must appear to the user of the application.<br />
<br />
All functionality has been maintained for compatibility with applications in previous versions.<br />
<br />
{F8291377}<br />
<br />
The developer can use something like:<br />
<br />
```<br />
KColorCombo * colorCombo = new KColorCombo;<br />
colorCombo.insertNamedColor (0, {i18n ("info xyz ..."), Qt :: Blue});<br />
```<br />
There, all colors will be kept and the custom color with an explanation will be added in the position informed in the first parameter.<br />
<br />
For compatibility reasons and to keep the features close to the current ones, the following functions have also been added:<br />
<br />
<br />
```<br />
void setColors (const QList <QColor> & colors);<br />
void setNamedColors (const QList <KNamedColor> & colors);<br />
QList <KNamedColor> namedColors () const;<br />
```<br />
Functions that are self explanatory.<br />
<br />
This PR was created with the intention of being used in the future in PR:<br />
[[ https://invent.kde.org/kde/konsole/-/merge_requests/77 | 77 ]]<br />
<br />
This will facilitate some issues related to the colors that are configured in the tabs, see PR 77.<br />
<br />
I am available for further clarifications and adaptations if they deem necessary.</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R236 KWidgetsAddons</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D29502">https://phabricator.kde.org/D29502</a></div></div><br /><div><strong>To: </strong>araujoluis, tcanabrava, patrickelectric, hindenburg, ngraham<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns<br /></div>