| 258 | }; |
| 259 | |
| 260 | void StatisticsStyleControl::on_frameGradientEndColor_clicked() |
| 261 | { |
| 262 | auto newQColor = QColorDialog::getColor( |
| 263 | functionsGui::toQColor(this->currentItem->colorMapper.gradientColorEnd), |
| 264 | this, |
| 265 | tr("Select color range maximum"), |
| 266 | QColorDialog::ShowAlphaChannel); |
| 267 | |
| 268 | auto newColor = functionsGui::toColor(newQColor); |
| 269 | if (newQColor.isValid() && this->currentItem->colorMapper.gradientColorEnd != newColor) |
| 270 | { |
| 271 | this->currentItem->colorMapper.gradientColorEnd = newColor; |
| 272 | this->ui.frameGradientEndColor->setPlainColor(newQColor); |
| 273 | this->ui.frameDataColor->setColorMapper(this->currentItem->colorMapper); |
| 274 | emit StyleChanged(); |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | void StatisticsStyleControl::on_pushButtonGradientEditEndColor_clicked() |
| 279 | { |
no test coverage detected