Sadly, inline namespaces are resulting in ambiguities. With two declarations QtJniTypes::android::io::File and QtJniTypes::org::qtproject::qt::android::QtWindow referring to QtJniTypes::android already is ambiguous if `org`, `qtproject`, and `qt` namespaces are all inline. This breaks the idea behind Q_DECLARE_JNI_CLASS as a variadic macro that generates types that we can transparently use as QtJniTypes. So remove the inline keyword from the namespace declarations. The macro might still be the way to go, but user code will to either fully qualify the types, or use `using namespace QtJniTypes::java::lang` to use e.g. the `String` type without ambiguities. Types declared with the two-argument overload continue to live directly in the QtJniTypes namespace anyway. As a drive-by, break the excessively long lines. Change-Id: Ie9303e6c9117fb96b3cff31c7df4df92237b5520 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit d1b89671de70ac9ffca52337058e976d86a367c1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This directory contains autotests and benchmarks based on Qt Test. In order to run the autotests reliably, you need to configure a desktop to match the test environment that these tests are written for. Linux X11: * The user must be logged in to an active desktop; you can't run the autotests without a valid DISPLAY that allows X11 connections. * The tests are run against a KDE3 or KDE4 desktop. * Window manager uses "click to focus", and not "focus follows mouse". Many tests move the mouse cursor around and expect this to not affect focus and activation. * Disable "click to activate", i.e., when a window is opened, the window manager should automatically activate it (give it input focus) and not wait for the user to click the window.