mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
QColor::colorNames() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
caee5d2ff5
commit
8a7f6ecc1a
1 changed files with 1 additions and 0 deletions
|
@ -571,6 +571,7 @@ QStringList QColor::colorNames()
|
|||
{
|
||||
#ifndef QT_NO_COLORNAMES
|
||||
QStringList result;
|
||||
result.reserve(RGBTblSize);
|
||||
for (qint16 i = 0; i < RGBTblSize; i++) {
|
||||
result << QString::fromLatin1(RGBTbl[i].name);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue