Fix layering violation in isForeignWindow()
QPlatformWindow::isForeignWindow() should return whether the native window is of the foreign window type, or false if the platform (plugin) does not support this concept. It should not call QWindow::type(), since that function may itself be implemented in terms of isForeignWindow(). Change-Id: Ib67a5a44c5c1db0acb4d3bc155e187f8164146d1 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
parent
4a0ed282cf
commit
6881699d76
@ -108,7 +108,7 @@ public:
|
||||
virtual bool isActive() const;
|
||||
virtual bool isAncestorOf(const QPlatformWindow *child) const;
|
||||
virtual bool isEmbedded() const;
|
||||
virtual bool isForeignWindow() const { return window()->type() == Qt::ForeignWindow; };
|
||||
virtual bool isForeignWindow() const { return false; };
|
||||
virtual QPoint mapToGlobal(const QPoint &pos) const;
|
||||
virtual QPoint mapFromGlobal(const QPoint &pos) const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user