Skip to content

Commit

Permalink
fix: [titlebar] AT issue
Browse files Browse the repository at this point in the history
set accessible name of treeview btn in titlebar

Log: fix test issue
  • Loading branch information
Lighto-Ku committed Jun 17, 2024
1 parent 00abfeb commit 73b9922
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ inline constexpr char kAcComputerTitleBarSearchBtn[] { "search_button" };
inline constexpr char kAcComputerTitleBarDetailBtn[] { "detail_button" };
inline constexpr char kAcComputerTitleBarListViewBtn[] { "listView_button" };
inline constexpr char kAcComputerTitleBarIconViewBtn[] { "iconView_button" };
inline constexpr char kAcComputerTitleBarTreeViewBtn[] { "treeView_button" };
inline constexpr char kAcComputerTitleBarOptionBtnBox[] { "ContollerToolBar" };
inline constexpr char kAcComputerTitleBarAddBtn[] { "add_button" };
inline constexpr char kAcComputerTitleBarCollectionServerView[] { "collectionServer_view" };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ void OptionButtonBox::initializeUi()
qobject_cast<QWidget *>(d->listViewButton), AcName::kAcComputerTitleBarListViewBtn);
dpfSlotChannel->push("dfmplugin_utils", "slot_Accessible_SetAccessibleName",
qobject_cast<QWidget *>(d->iconViewButton), AcName::kAcComputerTitleBarIconViewBtn);
if (d->treeViewButton) {
dpfSlotChannel->push("dfmplugin_utils", "slot_Accessible_SetAccessibleName",
qobject_cast<QWidget *>(d->treeViewButton), AcName::kAcComputerTitleBarTreeViewBtn);
}
dpfSlotChannel->push("dfmplugin_utils", "slot_Accessible_SetAccessibleName",
qobject_cast<QWidget *>(d->detailButton), AcName::kAcComputerTitleBarDetailBtn);
#endif
Expand Down

0 comments on commit 73b9922

Please sign in to comment.