Skip to content

Commit 7d1b85e

Browse files
committed
fix: correct button order in settings dialog
Fixed incorrect button order in the settings dialog by changing insertButton index from 1 to 0 for cancel button. This ensures the cancel button is placed at the correct position in the button layout, preventing potential UI issues and improving user interface consistency. Influence: 1. Verify settings dialog button layout is correct 2. Test cancel button functionality in settings dialog 3. Check button accessibility names are properly set 4. Confirm dialog interaction flows work as expected fix: 修复设置对话框中按钮顺序问题 修复了设置对话框中按钮顺序错误的问题,将取消按钮的insertButton索引从1改 为0。这确保了取消按钮在按钮布局中处于正确位置,防止了潜在的UI问题并提高 了用户界面的一致性。 Influence: 1. 验证设置对话框按钮布局是否正确 2. 测试设置对话框中取消按钮的功能 3. 检查按钮的可访问性名称是否正确设置 4. 确认对话框交互流程正常工作 PMS: BUG-338153
1 parent 47d144e commit 7d1b85e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/widgets/dsettingswidgetfactory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class ChangeDDialog : public DDialog
7070
setMessage(str);
7171
cancel->setAccessibleName("ChangeDDialogCancelButton");
7272
replace->setAccessibleName("ChangeDDialogReplaceButton");
73-
insertButton(1, cancel);
73+
insertButton(0, cancel);
7474
insertButton(1, replace);
7575
connect(replace, &DSuggestButton::clicked, [ = ] { //替换
7676
auto value = shortcutMap.value(key);

0 commit comments

Comments
 (0)