Merge pull request #6022 from spycrab/qt_sw_dialog Qt/SettingsWindow: Fix window not being detected as a dialog