All: Fix some more Qt 6.7 induced deprecation warnings

Change-Id: I4f3fc9c34ff664ab153d4a9a641ec84a11e555a9
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2023-06-08 08:26:57 +02:00
parent b6c452d59d
commit 362772442a
19 changed files with 41 additions and 41 deletions

View File

@@ -173,7 +173,7 @@ public:
void DraggableLabel::mousePressEvent(QMouseEvent * event)
{
if (active && event->button() == Qt::LeftButton) {
m_moveStartPos = event->globalPos();
m_moveStartPos = event->globalPosition().toPoint();
event->accept();
}
QLabel::mousePressEvent(event);
@@ -190,7 +190,7 @@ void DraggableLabel::mouseMoveEvent(QMouseEvent * event)
{
if (active && (event->buttons() & Qt::LeftButton)) {
if (m_moveStartPos != QPoint(-1, -1)) {
const QPoint newPos = event->globalPos();
const QPoint newPos = event->globalPosition().toPoint();
const QPoint offset = newPos - m_moveStartPos;
m_target->move(m_target->pos() + offset);