MCPcopy Create free account
hub / github.com/IENT/YUView / on_frameGridColor_clicked

Method on_frameGridColor_clicked

YUViewLib/src/ui/Statisticsstylecontrol.cpp:454–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452}
453
454void 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
471void StatisticsStyleControl::on_comboBoxGridLineStyle_currentIndexChanged(int index)
472{

Callers

nothing calls this directly

Calls 2

setPlainColorMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected