Use window() instead of obsolete topLevelWidget()

This commit is contained in:
Hennadii Stepanov 2018-11-25 11:32:59 +02:00
parent a7dc03223e
commit 0b4a5786bb
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -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)