qtquick: Fix View::setVisible(false) always showing the window
Adds some tests for Window too.
This commit is contained in:
@@ -172,8 +172,10 @@ void ViewWrapper_qtquick::setVisible(bool is)
|
||||
{
|
||||
if (isRootView()) {
|
||||
if (QWindow *w = m_item->window()) {
|
||||
if (!w->isVisible()) {
|
||||
if (is && !w->isVisible()) {
|
||||
w->show();
|
||||
} else if (!is && w->isVisible()) {
|
||||
w->hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user