Speed up opening big projects with lazy folios

This commit is contained in:
Laurent Trinques
2026-10-13 11:01:21 +02:00
parent a78e95be2c
commit 77e2a9bfc5
45 changed files with 3956 additions and 388 deletions
+4 -2
View File
@@ -150,8 +150,9 @@ void DiagramBgColorToolButton::applyColor(const QColor &color)
if (!editor) {
return;
}
//A folio not built yet takes the colour when it is drawn
for (ProjectView *pv : editor->openedProjects())
for (Diagram *d : pv->project()->diagrams())
for (Diagram *d : pv->project()->folios())
d->update();
}
@@ -175,8 +176,9 @@ void DiagramBgColorToolButton::applySystemColor()
if (!editor) {
return;
}
//A folio not built yet takes the colour when it is drawn
for (ProjectView *pv : editor->openedProjects())
for (Diagram *d : pv->project()->diagrams())
for (Diagram *d : pv->project()->folios())
d->update();
}