99 { |
99 { |
100 iterator.next(); |
100 iterator.next(); |
101 LDColor color = iterator.key(); |
101 LDColor color = iterator.key(); |
102 int frequency = iterator.value(); |
102 int frequency = iterator.value(); |
103 QIcon icon = makeColorIcon(color, 16); |
103 QIcon icon = makeColorIcon(color, 16); |
104 box->addItem(icon, format("[%1] %2 (%3 object%4)", color.index(), color.name(), frequency, plural(frequency))); |
104 box->addItem(icon, format("[%1] %2 (%3 object(s))", color.index(), color.name(), frequency)); |
105 box->setItemData(row, color.index()); |
105 box->setItemData(row, color.index()); |
106 ++row; |
106 ++row; |
107 } |
107 } |
108 } |
108 } |
109 |
109 |