git-svn-id: svn://db.shs.com.ru/libs@236 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2017-06-15 11:29:48 +00:00
parent 395c65142a
commit 10f8898d2e
2 changed files with 12 additions and 4 deletions

View File

@@ -1349,8 +1349,11 @@ void Graphic::on_checkGuides_toggled(bool checked) {
}
void Graphic::updateLegend() {
if (!ui->widgetLegend->isVisible()) return;
void Graphic::updateLegend(bool es) {
if (!ui->widgetLegend->isVisible()) {
emit graphicSettingsChanged();
return;
}
leg_update = false;
int ps = 100;
for (int i = 0; i < graphics.size(); i++) {
@@ -1392,6 +1395,7 @@ void Graphic::updateLegend() {
}
ui->widgetLegend->setVisible(lv);
leg_update = true;
emit graphicSettingsChanged();
}
@@ -1402,6 +1406,7 @@ void Graphic::updateLegendChecks() {
graphics[i].pb->setChecked(graphics[i].visible);
graphics[i].pb->blockSignals(pbs);
}
emit graphicSettingsChanged();
}
@@ -1412,6 +1417,7 @@ void Graphic::graphicVisibleChange(bool checked) {
graphics[i].visible = checked;
if (isFit) on_buttonAutofit_clicked();
else update();
emit graphicSettingsChanged();
// update();
}
@@ -1425,6 +1431,7 @@ void Graphic::graphicAllVisibleChange(bool checked) {
visible_update = false;
if (isFit) on_buttonAutofit_clicked();
else update();
emit graphicSettingsChanged();
}