Use window() instead of obsolete topLevelWidget()

pull/14801/head
Hennadii Stepanov 6 years ago
parent a7dc03223e
commit 0b4a5786bb
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

@ -339,7 +339,7 @@ bool checkPoint(const QPoint &p, const QWidget *w)
{
QWidget *atW = QApplication::widgetAt(w->mapToGlobal(p));
if (!atW) return false;
return atW->topLevelWidget() == w;
return atW->window() == w;
}
bool isObscured(QWidget *w)

Loading…
Cancel
Save