mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Cosmetic changes
This commit is contained in:
@@ -164,14 +164,12 @@ void MapperGLCanvas::applyZoomToView()
|
||||
{
|
||||
// Re-bound zoom (for consistency).
|
||||
qreal zoomFactor = getZoomFactor();
|
||||
// Get first of the list of all the views
|
||||
QGraphicsView* view = this->scene()->views().first();
|
||||
// Resets the view transformation matrix
|
||||
view->resetMatrix();
|
||||
resetMatrix();
|
||||
// Scale the current view
|
||||
view->scale(zoomFactor, zoomFactor);
|
||||
scale(zoomFactor, zoomFactor);
|
||||
// And update
|
||||
view->update();
|
||||
update();
|
||||
|
||||
emit zoomFactorChanged(zoomFactor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user