graphic config UI for all

This commit is contained in:
2023-09-05 13:57:06 +03:00
parent 217be1d837
commit f6a964684e
5 changed files with 443 additions and 306 deletions

View File

@@ -135,6 +135,42 @@ void GraphicConf::on_checkFill_toggled(bool on) {
}
void GraphicConf::on_spinLineWidthGraphicAll_valueChanged(double value) {
for (auto & g: graphics) {
if (qRound(value) == value)
g.pen.setWidth(qRound(value));
else
g.pen.setWidthF(value);
}
QSignalBlocker bl(ui->spinLineWidthGraphic);
ui->spinLineWidthGraphic->setValue(value);
}
void GraphicConf::on_spinPointWidthGraphicAll_valueChanged(double value) {
for (auto & g: graphics)
g.pointWidth = value;
QSignalBlocker bl(ui->spinPointWidthGraphic);
ui->spinPointWidthGraphic->setValue(value);
}
void GraphicConf::on_checkLinesAll_toggled(bool on) {
for (auto & g: graphics)
g.lines = on;
QSignalBlocker bl(ui->checkLines);
ui->checkLines->setChecked(on);
}
void GraphicConf::on_checkPointsAll_toggled(bool on) {
for (auto & g: graphics)
g.points = on;
QSignalBlocker bl(ui->checkPoints);
ui->checkPoints->setChecked(on);
}
void GraphicConf::on_buttonExport_clicked() {
emit exportClicked();
}