Skip to content

Commit 0eb65aa

Browse files
committed
Merge #14801: qt: Use window() instead of obsolete topLevelWidget()
0b4a578 Use window() instead of obsolete topLevelWidget() (Hennadii Stepanov) Pull request description: `QWidget::topLevelWidget()` is obsolete since at least Qt 4.8. Refs: - https://doc-snapshots.qt.io/4.8/qwidget-obsolete.html#topLevelWidget - https://doc.qt.io/qt-5.9/qwidget-obsolete.html#topLevelWidget Tree-SHA512: 45a79a3f11acd24bbf335603e60cb46545f4c9ce9b16280117676797a611c4422525abd39ad6784a7bc459926e3f5120b49a170403ff60ba4788d679862e3ff0
2 parents 2753285 + 0b4a578 commit 0eb65aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/guiutil.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ bool checkPoint(const QPoint &p, const QWidget *w)
339339
{
340340
QWidget *atW = QApplication::widgetAt(w->mapToGlobal(p));
341341
if (!atW) return false;
342-
return atW->topLevelWidget() == w;
342+
return atW->window() == w;
343343
}
344344

345345
bool isObscured(QWidget *w)

0 commit comments

Comments
 (0)