Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/controls/linebar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ LineBar::LineBar(DLineEdit *parent)

// label 和清除按钮直接 parent 到内嵌 lineEdit,覆盖在输入框内部
m_matchCountLabel = new QLabel(lineEdit());
m_matchCountLabel->setAccessibleName("MatchCountLabel");
int fontsize = DFontSizeManager::instance()->fontPixelSize(DFontSizeManager::T9);
QFont labelFont = m_matchCountLabel->font();
labelFont.setPixelSize(fontsize);
Expand Down
1 change: 1 addition & 0 deletions src/editor/dtextedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ void TextEdit::initRightClickedMenu()

// Init view mode sub menu(§8.1:三子项互斥可选;默认「编辑模式」选中、「实时预览」置灰)
m_viewModeMenu = new DMenu(tr("View Mode"), this);
m_viewModeMenu->setAccessibleName("ViewModeContextMenu");
QActionGroup *pViewModeGroup = new QActionGroup(this);
m_actEditView->setCheckable(true);
m_actReadView->setCheckable(true);
Expand Down
1 change: 1 addition & 0 deletions src/editor/markdown/markdownview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ MarkdownView::MarkdownView(QWidget *parent)
: QWebEngineView(parent)
, m_bridge(new MarkdownBridge(this))
{
setAccessibleName("MarkdownView");
connect(m_bridge, &MarkdownBridge::ready, this, &MarkdownView::onBridgeReady);
connect(m_bridge, &MarkdownBridge::contentChanged, this, &MarkdownView::contentChanged);
connect(m_bridge, &MarkdownBridge::scrollRatioChanged, this, &MarkdownView::scrollRatioChanged);
Expand Down
2 changes: 2 additions & 0 deletions src/widgets/bottombar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ BottomBar::BottomBar(QWidget *parent)

initFormatMenu();

m_pHighlightMenu->setAccessibleName("HighlightMenu");

// —— Markdown 视图模式 combobox(§8.2,与编码格式菜单同型)——
m_pViewModeMenu = new DDropdownMenu();
m_pViewModeMenu->setAccessibleName("ViewModeMenu");
Expand Down
Loading