qt6windows7/tests/manual/wasm/a11y/basic_widgets/basica11ywidget.h

42 lines
1007 B
C
Raw Normal View History

2023-10-30 06:33:08 +08:00
// 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();
};