mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 08:40:53 +01:00
Revert "Try Clazy fix-its"
Segfault on old Qt versions!
This reverts commit dba7caed30.
This commit is contained in:
@@ -309,7 +309,7 @@ void ProjectPrintWindow::printDiagram(Diagram *diagram, bool fit_page, QPainter
|
||||
|
||||
//Scrolls through the page for print
|
||||
bool first_ = true;
|
||||
for (auto page : std::as_const(page_to_print))
|
||||
for (auto page : page_to_print)
|
||||
{
|
||||
first_ ? first_ = false : m_printer->newPage();
|
||||
diagram->render(painter, QRect(QPoint(0,0), page.size()), page.translated(diagram_rect.topLeft()), Qt::KeepAspectRatio);
|
||||
@@ -320,8 +320,7 @@ void ProjectPrintWindow::printDiagram(Diagram *diagram, bool fit_page, QPainter
|
||||
for (auto view : diagram->views()) {
|
||||
view->setInteractive(true);
|
||||
}
|
||||
for (auto qgi : std::as_const(focusable_items))
|
||||
{
|
||||
for (auto qgi : focusable_items) {
|
||||
qgi->setFlag(QGraphicsItem::ItemIsFocusable, true);
|
||||
}
|
||||
saveReloadDiagramParameters(diagram, option, false);
|
||||
|
||||
Reference in New Issue
Block a user