| 84 | } |
| 85 | |
| 86 | ColorMap StatisticsStyleControl_ColorMapEditor::getColorMap() const |
| 87 | { |
| 88 | ColorMap colorMap; |
| 89 | const auto table = this->ui.colorMapTable; |
| 90 | |
| 91 | for (int row = 0; row < ui.colorMapTable->rowCount(); row++) |
| 92 | { |
| 93 | auto item0 = table->item(row, 0); |
| 94 | auto item1 = table->item(row, 1); |
| 95 | |
| 96 | if (item0->text() != "Other") |
| 97 | { |
| 98 | auto val = item0->data(Qt::EditRole).toInt(); |
| 99 | auto color = functionsGui::toColor(item1->background().color()); |
| 100 | |
| 101 | colorMap[val] = color; |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | return colorMap; |
| 106 | } |
| 107 | |
| 108 | Color StatisticsStyleControl_ColorMapEditor::getOtherColor() const |
| 109 | { |
no test coverage detected