summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/kernel/qwidget.h')
-rw-r--r--src/widgets/kernel/qwidget.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/widgets/kernel/qwidget.h b/src/widgets/kernel/qwidget.h
index 11d143d0e4..acc2a7bdd5 100644
--- a/src/widgets/kernel/qwidget.h
+++ b/src/widgets/kernel/qwidget.h
@@ -65,7 +65,6 @@ QT_BEGIN_NAMESPACE
class QLayout;
-class QWSRegionManager;
class QStyle;
class QAction;
class QVariant;
@@ -230,7 +229,7 @@ public:
void setStyle(QStyle *);
// Widget types and states
-#if QT_DEPRECATED_SINCE(6, 2)
+#if QT_DEPRECATED_SINCE(6, 1)
QT_DEPRECATED_VERSION_X_6_1("Use isWindow()")
bool isTopLevel() const;
#endif
@@ -762,8 +761,10 @@ inline Qt::WindowType QWidget::windowType() const
inline Qt::WindowFlags QWidget::windowFlags() const
{ return data->window_flags; }
+#if QT_DEPRECATED_SINCE(6, 1)
inline bool QWidget::isTopLevel() const
{ return (windowType() & Qt::Window); }
+#endif
inline bool QWidget::isWindow() const
{ return (windowType() & Qt::Window); }