| 429 | } |
| 430 | |
| 431 | void StatisticsStyleControl::on_colorFrameVectorColor_clicked() |
| 432 | { |
| 433 | auto newQColor = |
| 434 | QColorDialog::getColor(functionsGui::toQColor(this->currentItem->vectorStyle.color), |
| 435 | this, |
| 436 | tr("Select vector color"), |
| 437 | QColorDialog::ShowAlphaChannel); |
| 438 | |
| 439 | auto newColor = functionsGui::toColor(newQColor); |
| 440 | if (newQColor.isValid() && newColor != this->currentItem->vectorStyle.color) |
| 441 | { |
| 442 | this->currentItem->vectorStyle.color = newColor; |
| 443 | this->ui.colorFrameVectorColor->setPlainColor(newQColor); |
| 444 | emit StyleChanged(); |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | void StatisticsStyleControl::on_groupBoxGrid_clicked(bool check) |
| 449 | { |
nothing calls this directly
no test coverage detected