From cdf3059d3d158efcaa5a47139afdc701d486207a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Mon, 4 Jul 2022 17:09:00 +0200 Subject: [PATCH] fix(sandbox): enable the hover effects by default (#751) Similar to what we did in status desktop under d0a26a326e95a14a6a8a5634c0d30cd6dc648b54 - 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 --- sandbox/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sandbox/main.cpp b/sandbox/main.cpp index 15eff32c..c59b39dd 100644 --- a/sandbox/main.cpp +++ b/sandbox/main.cpp @@ -12,6 +12,8 @@ int main(int argc, char *argv[]) SandboxApp app(argc, argv); + qputenv("QT_QUICK_CONTROLS_HOVER_ENABLED", QByteArrayLiteral("1")); + app.setOrganizationName("Status"); app.setOrganizationDomain("status.im"); app.setApplicationName("Sandbox");