diff options
| author | Sharad Sahu <sharad.sahu@crossware.io> | 2022-06-08 17:20:41 +0530 |
|---|---|---|
| committer | Morten Johan Sørvig <morten.sorvig@qt.io> | 2022-12-27 14:30:25 +0000 |
| commit | 13c3fd959ed400396ee770d3e300778cf20a50a9 (patch) | |
| tree | cccd065f103214450015a97148125b9801c3176d /tests/manual/wasm/a11y/basic_widgets/main.cpp | |
| parent | 42d4619967688e4f313f5508de7594f0c0c976ff (diff) | |
wasm: Work on wasm accessibility elements and events
Implement a11y support by adding html elements (Toolbar, Menu,
DialogBox) and events of the appropriate type and/or with the
appropriate ARIA attribute behind the canvas.
Pick-to: 6.5
Change-Id: If9c9fbff9a451b44e57de5d8834f4a78f33f41bc
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'tests/manual/wasm/a11y/basic_widgets/main.cpp')
| -rw-r--r-- | tests/manual/wasm/a11y/basic_widgets/main.cpp | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/tests/manual/wasm/a11y/basic_widgets/main.cpp b/tests/manual/wasm/a11y/basic_widgets/main.cpp index 78f142bc1e3..5417195ecf5 100644 --- a/tests/manual/wasm/a11y/basic_widgets/main.cpp +++ b/tests/manual/wasm/a11y/basic_widgets/main.cpp @@ -1,26 +1,9 @@ -// Copyright (C) 2019 The Qt Company Ltd. +// Copyright (C) 2022 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +#include <QApplication> #include <QtWidgets> - -class BasicA11yWidget: public QWidget -{ -public: - BasicA11yWidget() { - - QVBoxLayout *layout = new QVBoxLayout(); - - layout->addWidget(new QLabel("This is a text label")); - layout->addWidget(new QPushButton("This is a push button")); - layout->addWidget(new QCheckBox("This is a check box")); - - // TODO: Add more widgets - - layout->addStretch(); - - setLayout(layout); - } -}; +#include "basica11ywidget.h" int main(int argc, char **argv) { @@ -31,3 +14,4 @@ int main(int argc, char **argv) return app.exec(); } + |
