fix(@desktop): enable the hover effects by default

Close #6254

- since Qt 5.xy, hover is not enabled by default for QQC2, so enable it
unconditionally as we are a desktop app anyway
- this fixes several hover effects being broken, mostly for builtin
components like MenuItem and some buttons (eg. the leftmost NavBar)
where we haven't enabled those with `hoverEnabled: true` explicitely
This commit is contained in:
Lukáš Tinkl 2022-07-04 14:02:34 +02:00
parent c296fa21bc
commit d0a26a326e
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@ proc mainProc() =
installSelfSignedCertificate(imageCert)
let app = newQGuiApplication()
os.putEnv("QT_QUICK_CONTROLS_HOVER_ENABLED", "1")
let appController = newAppController(statusFoundation)
let singleInstance = newSingleInstance($toMD5(DATADIR), openUri)
let networkAccessFactory = newQNetworkAccessManagerFactory(TMPDIR & "netcache")