Use window() instead of obsolete topLevelWidget()
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user