Commit f8af6b85 authored by Pushkar Kukde's avatar Pushkar Kukde
Browse files

Implemented suggestion #795

parent 25ba5eaa
......@@ -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 ; //matrix().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);
slotAdjustZoom();
}
}
......
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