Use window() instead of obsolete topLevelWidget()

This commit is contained in:
Hennadii Stepanov committed 2018-11-25 11:32:59 +02:00
1 parent a7dc03223e
commit 0b4a5786bb
1 file changed
+1 -1
+1 -1
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)