graphic config UI for all
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user