Port away from deprecated QWidget::isTopLevel()

Fixes Qt6 warnings about it
This commit is contained in:
Sergio Martins
2021-07-10 07:18:27 -07:00
parent 7e1331bd76
commit 4b06706d61
3 changed files with 4 additions and 2 deletions

View File

@@ -90,6 +90,8 @@ public:
void setFlag(Qt::WindowType, bool on = true);
void setSize(QSize);
bool isTopLevel() const { return isWindow(); }
protected:
void raiseAndActivate();
bool event(QEvent *e) override;