Added PM_LineEditIconMargin pixel metric handling to support custom
icon margins in line edit widgets. The implementation checks for a
"_d_dtk_lineeditIconMargin" property on the widget and returns the
custom margin value if valid. This allows applications to specify
precise icon spacing in line edit fields for better UI customization and
visual consistency.
Influence:
1. Test line edit widgets with custom icon margin property set
2. Verify default behavior when no custom margin is specified
3. Test with various valid margin values (positive integers)
4. Verify behavior with invalid margin values (negative numbers, invalid
types)
5. Check UI layout consistency with custom icon margins applied
feat: 添加支持自定义行编辑图标边距
添加了 PM_LineEditIconMargin 像素度量处理,以支持在行编辑部件中自定义图
标边距。该实现检查部件上的 "_d_dtk_lineeditIconMargin" 属性,如果有效则
返回自定义边距值。这允许应用程序为行编辑字段指定精确的图标间距,以实现更
好的 UI 定制和视觉一致性。
Influence:
1. 测试设置了自定义图标边距属性的行编辑部件
2. 验证未指定自定义边距时的默认行为
3. 使用各种有效边距值(正整数)进行测试
4. 验证无效边距值(负数、无效类型)时的行为
5. 检查应用自定义图标边距后的 UI 布局一致性
PMS: BUG-334965
1. Enhanced dialog width calculation to respect maximum width constraint
2. Added dynamic height calculation based on layout's total height for
the given width
3. Removed unused event filter for title and message labels that handled
font changes
4. The event filter was unnecessary as Qt's layout system already
handles text wrapping properly
Influence:
1. Test dialog resizing with various content lengths
2. Verify dialog respects maximum width settings
3. Check that text wrapping works correctly in title and message labels
4. Test dialog appearance with different font sizes
5. Ensure dialog maintains minimum size requirements
fix: 改进对话框尺寸计算并移除未使用的事件过滤器
1. 增强对话框宽度计算以遵循最大宽度约束
2. 添加基于布局总高度的动态高度计算
3. 移除用于标题和消息标签字体变化的未使用事件过滤器
4. 该事件过滤器不再必要,因为Qt的布局系统已能正确处理文本换行
Influence:
1. 测试不同内容长度时的对话框调整大小
2. 验证对话框遵循最大宽度设置
3. 检查标题和消息标签中的文本换行是否正确工作
4. 测试不同字体大小下的对话框外观
5. 确保对话框保持最小尺寸要求
PMS: BUG-331061
Changed setFixedHeight to setMinimumHeight for feature item widgets to
handle varying text content more flexibly. Previously used fixed height
could cause layout issues when description text required more vertical
space than the hardcoded values allowed.
This change ensures that feature items can expand vertically when needed
to accommodate longer descriptions while maintaining the minimum height
requirements for standard content.
Influence:
1. Test feature display dialog with short descriptions (should maintain
original height)
2. Test with longer descriptions that require more vertical space
(should expand properly)
3. Verify layout consistency across different description lengths
4. Check that the minimum height constraints are still respected
fix: 调整特性项目控件高度计算
将特性项目控件的高度设置从固定高度改为最小高度,以更灵活地处理不同长度
的文本内容。之前使用的固定高度在描述文本需要更多垂直空间时可能导致布局
问题。
此更改确保特性项目在需要显示较长描述时可以垂直扩展,同时为标准内容保持最
小高度要求。
Influence:
1. 测试特性显示对话框在短描述时的显示(应保持原有高度)
2. 测试需要更多垂直空间的长描述(应能正确扩展)
3. 验证不同描述长度下的布局一致性
4. 检查最小高度约束是否仍然有效
PMS: BUG-311285
Fix dialog size not updating when system font changes
Add font change event handling to recalculate dialog size
Ensure proper layout when font size or family changes
Influence:
1. Test dialog appearance when system font settings change
2. Verify dialog size adapts correctly to different font sizes
3. Check layout integrity after font changes
4. Test with various font families and sizes
fix: 处理对话框中的字体变更事件
修复系统字体变更时对话框大小不更新的问题
添加字体变更事件处理以重新计算对话框大小
确保字体大小或字体家族变更时的正确布局
Influence:
1. 测试系统字体设置变更时对话框的显示效果
2. 验证对话框大小是否正确适应不同的字体大小
3. 检查字体变更后的布局完整性
4. 测试不同字体家族和大小的显示效果
PMS: BUG-331061
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. Removed manual palette setting for item background transparency
2. Added item spacing configuration with zero spacing
3. Set background type with rounded background and no normal state
4. These changes simplify the styling approach and use DStyle's built-
in capabilities
Log: Improved navigation widget visual appearance with better spacing
and background styling
Influence:
1. Verify navigation items display correctly with proper spacing
2. Check background rendering in different states (hover, selected)
3. Test navigation selection behavior remains consistent
4. Verify visual consistency with other UI components
5. Test navigation widget in different themes
feat: 改进导航部件样式
1. 移除了手动设置项目背景透明度的调色板配置
2. 添加了零间距的项目间距配置
3. 设置了圆角背景且无正常状态的背景类型
4. 这些更改简化了样式方法,使用 DStyle 的内置功能
Log: 改进了导航部件的视觉外观,具有更好的间距和背景样式
Influence:
1. 验证导航项目是否正确显示,间距合适
2. 检查不同状态(悬停、选中)下的背景渲染
3. 测试导航选择行为是否保持一致
4. 验证与其他UI组件的视觉一致性
5. 测试不同主题下的导航部件显示
PMS: BUG-310829
Fixed an issue where DCi icon state was not properly cleared
when setting other icon types (QIcon, QStyle::StandardPixmap,
DStyle::StandardPixmap). This could cause incorrect icon rendering when
switching between different icon types.
The changes ensure that when setting a non-DCi icon, the DCi icon state
is properly reset to avoid conflicts between different icon systems.
When setting a DCi icon, the QAbstractButton icon is cleared to prevent
interference.
Log: Fixed icon display issues when switching between different icon
types
Influence:
1. Test switching between QIcon, standard pixmap icons, and DCi icons
2. Verify icons display correctly after type changes
3. Test button appearance in different states (normal, hover, pressed)
4. Check icon rendering consistency across different button types
fix: 设置其他图标类型时正确清除 DCi 图标状态
修复了在设置其他图标类型(QIcon、QStyle::StandardPixmap、
DStyle::StandardPixmap)时未正确清除 DCi 图标状态的问题。这可能导致在不
同图标类型之间切换时出现错误的图标渲染。
这些更改确保在设置非 DCi 图标时,DCi 图标状态被正确重置,以避免不同图
标系统之间的冲突。当设置 DCi 图标时,QAbstractButton 图标被清除以防止
干扰。
Log: 修复在不同图标类型之间切换时的图标显示问题
Influence:
1. 测试在 QIcon、标准像素图标和 DCi 图标之间的切换
2. 验证类型更改后图标正确显示
3. 测试按钮在不同状态(正常、悬停、按下)下的外观
4. 检查不同按钮类型之间的图标渲染一致性
PMS: BUG-337027