summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qwidgetwindow.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2020-09-04 21:09:44 +0200
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2020-12-09 20:30:04 +0100
commitff8d757e222d0b9b8618b83e6c4186e366e917e9 (patch)
treefc1971a9ee963aa3eb09b935de6a0b745600714c /src/widgets/kernel/qwidgetwindow.cpp
parentac09bd40fa3d38e1416503ac0b39797e93d332d9 (diff)
QWidget: mark obsolete function isTopLevel() as deprecated
QWidget::isTopLevel() is deprecated and can be replaced 1:1 with isWindow(). Sadly it's was not marked with Q_DECL_DEPRECATED in 5.15 Change-Id: I4508fbde41927f3b82e47a75011179548325029d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/widgets/kernel/qwidgetwindow.cpp')
-rw-r--r--src/widgets/kernel/qwidgetwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/kernel/qwidgetwindow.cpp b/src/widgets/kernel/qwidgetwindow.cpp
index e4e8f9f9d1..ae1e461d7a 100644
--- a/src/widgets/kernel/qwidgetwindow.cpp
+++ b/src/widgets/kernel/qwidgetwindow.cpp
@@ -800,7 +800,7 @@ void QWidgetWindow::handleMoveEvent(QMoveEvent *event)
auto oldPosition = m_widget->data->crect.topLeft();
auto newPosition = geometry().topLeft();
- if (!m_widget->isTopLevel()) {
+ if (!m_widget->isWindow()) {
if (auto *nativeParent = m_widget->nativeParentWidget())
newPosition = m_widget->parentWidget()->mapFrom(nativeParent, newPosition);
}