mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
fix deprecated warning void QGraphicsView::resetMatrix()
Use resetTransform() instead This class was introduced in Qt 4.2. + indentation warning of "resetSceneRect();"
This commit is contained in:
parent
b29753e37e
commit
e4f4c1e154
@ -332,7 +332,7 @@ void DiagramView::zoomContent() {
|
||||
Reinitialise le zoom
|
||||
*/
|
||||
void DiagramView::zoomReset() {
|
||||
resetMatrix();
|
||||
resetTransform();
|
||||
adjustGridToZoom();
|
||||
}
|
||||
|
||||
|
@ -138,8 +138,8 @@ void ElementView::zoomFit() {
|
||||
Reinitialise le zoom
|
||||
*/
|
||||
void ElementView::zoomReset() {
|
||||
resetSceneRect();
|
||||
resetMatrix();
|
||||
resetSceneRect();
|
||||
resetTransform();
|
||||
scale(4.0, 4.0);
|
||||
}
|
||||
|
||||
|
@ -127,7 +127,7 @@ void TitleBlockTemplateView::zoomFit() {
|
||||
*/
|
||||
void TitleBlockTemplateView::zoomReset() {
|
||||
adjustSceneRect();
|
||||
resetMatrix();
|
||||
resetTransform();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user