diff options
author | Jan Arve Sæther <jan-arve.saether@qt.io> | 2021-01-14 18:46:17 +0100 |
---|---|---|
committer | Jan Arve Sæther <jan-arve.saether@qt.io> | 2021-01-29 11:05:52 +0100 |
commit | 4b1acb290dc8869d0d2d1250dc1ed415d6b6e202 (patch) | |
tree | b542f3cd93d6ea07b0843c853bd38c2498ba4724 /src/imports | |
parent | f9813dfa243d109dd027a40b5ca505fdee79e877 (diff) |
a11y: Fix ordering on header, content item and footer in Page
Because of the previous behavior, the footer could be read aloud by
the screen reader before the content item. And even worse, the footer
could be read aloud even before the header in some cases. This made
it hard for visually impaired people to use the application.
The Page type was used by the Dialog type, so it also affected that.
Fixes: QTBUG-75042
Pick-to: 5.15 6.0
Change-Id: Ic3e8ec3f7dcf18af9262b1d35c986835c8da6900
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/templates/qtquicktemplates2plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imports/templates/qtquicktemplates2plugin.cpp b/src/imports/templates/qtquicktemplates2plugin.cpp index e2a15213..732cb3f8 100644 --- a/src/imports/templates/qtquicktemplates2plugin.cpp +++ b/src/imports/templates/qtquicktemplates2plugin.cpp @@ -71,7 +71,10 @@ QtQuickTemplates2Plugin::QtQuickTemplates2Plugin(QObject *parent) : QQmlExtensionPlugin(parent), registered(false) { volatile auto registration = &qml_register_types_QtQuick_Templates; + volatile auto initialization = &QQuickTemplates_initializeModule; + Q_UNUSED(registration) + Q_UNUSED(initialization) } QtQuickTemplates2Plugin::~QtQuickTemplates2Plugin() |