Fix a build when QT_DISABLE_DEPRECATED_BEFORE is set to 6.1.0
Amends: ff8d757e22
Task-number: QTBUG-93033
Pick-to: 6.1 6.1.0
Change-Id: I67b7bda0f63fdb3c4e1864e38c872b96df90a8ae
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
bb10
parent
ffb5635c1a
commit
43d6778ce5
|
|
@ -761,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); }
|
||||
|
|
|
|||
Loading…
Reference in New Issue