mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
fix deprecated warning QMatrix QGraphicsView::matrix() const
Use transform() instead This class was introduced in Qt 4.2.
This commit is contained in:
committed by
Laurent Trinques
parent
71abaf92cb
commit
b29753e37e
@@ -479,7 +479,7 @@ void ElementView::drawBackground(QPainter *p, const QRectF &r) {
|
|||||||
p -> drawRect(r);
|
p -> drawRect(r);
|
||||||
|
|
||||||
// determine le zoom en cours
|
// determine le zoom en cours
|
||||||
qreal zoom_factor = matrix().m11();
|
qreal zoom_factor = transform().m11();
|
||||||
|
|
||||||
// choisit la granularite de la grille en fonction du zoom en cours
|
// choisit la granularite de la grille en fonction du zoom en cours
|
||||||
int drawn_x_grid = 1;//scene_ -> xGrid();
|
int drawn_x_grid = 1;//scene_ -> xGrid();
|
||||||
|
|||||||
Reference in New Issue
Block a user