| 452 | } |
| 453 | |
| 454 | void StatisticsStyleControl::on_frameGridColor_clicked() |
| 455 | { |
| 456 | auto newQColor = |
| 457 | QColorDialog::getColor(functionsGui::toQColor(this->currentItem->gridStyle.color), |
| 458 | this, |
| 459 | tr("Select grid color"), |
| 460 | QColorDialog::ShowAlphaChannel); |
| 461 | |
| 462 | auto newColor = functionsGui::toColor(newQColor); |
| 463 | if (newQColor.isValid() && newColor != this->currentItem->gridStyle.color) |
| 464 | { |
| 465 | this->currentItem->gridStyle.color = newColor; |
| 466 | this->ui.frameGridColor->setPlainColor(newQColor); |
| 467 | emit StyleChanged(); |
| 468 | } |
| 469 | } |
| 470 | |
| 471 | void StatisticsStyleControl::on_comboBoxGridLineStyle_currentIndexChanged(int index) |
| 472 | { |
nothing calls this directly
no test coverage detected