Follow API change for QPlatformWindow::setWindowState