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

Method on_colorFrameVectorColor_clicked

YUViewLib/src/ui/Statisticsstylecontrol.cpp:431–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431void 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
448void StatisticsStyleControl::on_groupBoxGrid_clicked(bool check)
449{

Callers

nothing calls this directly

Calls 2

setPlainColorMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected