diff options
author | hjk <hjk@qt.io> | 2023-06-08 08:26:57 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2023-06-08 11:40:23 +0000 |
commit | 362772442aa9c14c510d3dee5ffb778ef431d73f (patch) | |
tree | f88c5f2dc2a03fbc942f18e12bae9c990ec25315 /src/shared | |
parent | b6c452d59d04a1969495bb0cee79fd1da2c54061 (diff) |
All: Fix some more Qt 6.7 induced deprecation warnings
Change-Id: I4f3fc9c34ff664ab153d4a9a641ec84a11e555a9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/designerintegrationv2/sizehandlerect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/designerintegrationv2/sizehandlerect.cpp b/src/shared/designerintegrationv2/sizehandlerect.cpp index 111b14b2560..4a775eaeae0 100644 --- a/src/shared/designerintegrationv2/sizehandlerect.cpp +++ b/src/shared/designerintegrationv2/sizehandlerect.cpp @@ -78,7 +78,7 @@ void SizeHandleRect::mousePressEvent(QMouseEvent *e) return; m_startSize = m_curSize = m_resizable->size(); - m_startPos = m_curPos = m_resizable->mapFromGlobal(e->globalPos()); + m_startPos = m_curPos = m_resizable->mapFromGlobal(e->globalPosition().toPoint()); if (debugSizeHandle) qDebug() << "SizeHandleRect::mousePressEvent" << m_startSize << m_startPos << m_curPos; @@ -94,7 +94,7 @@ void SizeHandleRect::mouseMoveEvent(QMouseEvent *e) // causes the handle and the mouse cursor to become out of sync // once a min/maxSize limit is hit. When the cursor reenters the valid // areas, it will now snap to it. - m_curPos = m_resizable->mapFromGlobal(e->globalPos()); + m_curPos = m_resizable->mapFromGlobal(e->globalPosition().toPoint()); QSize delta = QSize(m_curPos.x() - m_startPos.x(), m_curPos.y() - m_startPos.y()); switch (m_dir) { case Right: |