diff --git a/src/plugins/filemanager/core/dfmplugin-titlebar/dfmplugin_titlebar_global.h b/src/plugins/filemanager/core/dfmplugin-titlebar/dfmplugin_titlebar_global.h index 4925cb9c4a..9256298374 100644 --- a/src/plugins/filemanager/core/dfmplugin-titlebar/dfmplugin_titlebar_global.h +++ b/src/plugins/filemanager/core/dfmplugin-titlebar/dfmplugin_titlebar_global.h @@ -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" }; diff --git a/src/plugins/filemanager/core/dfmplugin-titlebar/views/optionbuttonbox.cpp b/src/plugins/filemanager/core/dfmplugin-titlebar/views/optionbuttonbox.cpp index a807087a2d..1b4507c72e 100644 --- a/src/plugins/filemanager/core/dfmplugin-titlebar/views/optionbuttonbox.cpp +++ b/src/plugins/filemanager/core/dfmplugin-titlebar/views/optionbuttonbox.cpp @@ -181,6 +181,8 @@ void OptionButtonBox::initializeUi() qobject_cast(d->listViewButton), AcName::kAcComputerTitleBarListViewBtn); dpfSlotChannel->push("dfmplugin_utils", "slot_Accessible_SetAccessibleName", qobject_cast(d->iconViewButton), AcName::kAcComputerTitleBarIconViewBtn); + dpfSlotChannel->push("dfmplugin_utils", "slot_Accessible_SetAccessibleName", + qobject_cast(d->treeViewButton), AcName::kAcComputerTitleBarTreeViewBtn); dpfSlotChannel->push("dfmplugin_utils", "slot_Accessible_SetAccessibleName", qobject_cast(d->detailButton), AcName::kAcComputerTitleBarDetailBtn); #endif