Don't use d_func in QWindow::mapToGlobal
We initialize the variable d at the top using Q_D(const QWindow); Change-Id: I2de3b33c043024c5599b7cd1ebecae2db0b39d87 Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
This commit is contained in:
parent
5d5e0a4e97
commit
26a89e7bf7
@ -2295,7 +2295,7 @@ QPoint QWindow::mapToGlobal(const QPoint &pos) const
|
||||
&& (type() == Qt::ForeignWindow || d->platformWindow->isEmbedded(0))) {
|
||||
return d->platformWindow->mapToGlobal(pos);
|
||||
}
|
||||
return pos + d_func()->globalPosition();
|
||||
return pos + d->globalPosition();
|
||||
}
|
||||
|
||||
|
||||
@ -2315,7 +2315,7 @@ QPoint QWindow::mapFromGlobal(const QPoint &pos) const
|
||||
&& (type() == Qt::ForeignWindow || d->platformWindow->isEmbedded(0))) {
|
||||
return d->platformWindow->mapFromGlobal(pos);
|
||||
}
|
||||
return pos - d_func()->globalPosition();
|
||||
return pos - d->globalPosition();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user