Commit 097b3ad6 authored by Pushkar Kukde's avatar Pushkar Kukde Committed by Jean-Baptiste Mardelle

Implemented suggestion #795

parent bb3b4265
Pipeline #36824 passed with stage
in 24 minutes and 16 seconds
......@@ -965,7 +965,7 @@ void TitleWidget::slotAdjustZoom()
if (scalex > scaley) scalex = scaley;
int zoompos = (int)(scalex * 7 + 0.5);*/
graphicsView->fitInView(m_frameBorder, Qt::KeepAspectRatio);
int zoompos = graphicsView->matrix().m11() * 100;
int zoompos = graphicsView->transform().m11() * 100 ;
zoom_slider->setValue(zoompos);
graphicsView->centerOn(m_frameBorder);
}
......@@ -1833,6 +1833,7 @@ void TitleWidget::itemHCenter()
newPos += item->pos().x() - br.left(); // Check item transformation
item->setPos(newPos, item->pos().y());
updateCoordinates(item);
graphicsView->centerOn(m_frameBorder);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment