Sharad Sahu 13c3fd959e 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>
2022-12-27 14:30:25 +00:00

42 lines
1007 B
C++

// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include <QtWidgets>
#include "tabswidget.h"
class BasicA11yWidget: public QWidget
{
Q_OBJECT
private:
QMenu* m_helpMenu = nullptr;
QMenu* m_TodayMenu = nullptr;
QMenuBar* m_menuBar = nullptr;
QToolBar* m_toolBar = nullptr;
QLabel* m_lblDateTime = nullptr;
QVBoxLayout* m_layout = nullptr ;
QTabWidget* m_tabWidget = nullptr;
EditViewTab *m_editView = nullptr;
QAction* m_DateAct = nullptr;
QAction* m_TimeAct = nullptr;
QAction* m_aboutAct = nullptr;
QAction* m_copyAct = nullptr;
QAction* m_pasteAct = nullptr;
QAction* m_cutAct = nullptr;
public slots:
void connectToolBar();
public:
BasicA11yWidget() ;
void createActions();
void createMenus();
void createToolBar();
void todaysDate();
void currentTime();
void about();
QToolBar* getToolbar(){return m_toolBar;}
void handleButton();
};