Commit 9861612
committed
fix: replace ComboBox with Menu for notification actions
1. Replaced the ComboBox component with a custom NotifyActionMenu for
displaying additional notification actions
2. Created new NotifyActionMenu.qml file implementing a Qt Labs Platform
Menu with dynamic action items
3. Modified NotifyAction.qml to use NotifyActionButton with actionMenu
property instead of ComboBox
4. Changed the "More" button behavior to open a menu instead of a
dropdown combo box
5. Removed complex ComboBox width calculation logic and replaced with
simpler menu implementation
Log: Fixed notification action text truncation by replacing ComboBox
with Menu
Influence:
1. Test notification with multiple actions to ensure all actions are
displayed without truncation
2. Verify that clicking the "More" button opens a menu showing all
additional actions
3. Check that action menu items are properly triggered and invoke the
correct actions
4. Test keyboard navigation between action buttons and menu items
5. Verify visual appearance and styling of the action menu matches
system theme
6. Ensure menu positioning is correct relative to the notification
action button
fix: 修复通知操作文本被截断的问题
1. 将 ComboBox 组件替换为自定义的 NotifyActionMenu 用于显示额外的通知
操作
2. 创建新的 NotifyActionMenu.qml 文件,实现基于 Qt Labs Platform Menu 的
动态操作项
3. 修改 NotifyAction.qml,使用带有 actionMenu 属性的 NotifyActionButton
替代 ComboBox
4. 更改"更多"按钮行为,现在打开菜单而不是下拉组合框
5. 移除了复杂的 ComboBox 宽度计算逻辑,替换为更简单的菜单实现
Log: 通过将 ComboBox 替换为 Menu 修复通知操作文本被截断的问题
Influence:
1. 测试包含多个操作的通知,确保所有操作都能完整显示而不被截断
2. 验证点击"更多"按钮能正确打开显示所有额外操作的菜单
3. 检查菜单项是否能正确触发并调用相应的操作
4. 测试操作按钮和菜单项之间的键盘导航功能
5. 验证操作菜单的视觉外观和样式是否与系统主题匹配
6. 确保菜单位置相对于通知操作按钮的定位正确
PMS: BUG-3129491 parent fe817da commit 9861612
3 files changed
Lines changed: 54 additions & 72 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 152 | + | |
| 153 | + | |
202 | 154 | | |
203 | 155 | | |
204 | 156 | | |
| |||
214 | 166 | | |
215 | 167 | | |
216 | 168 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
235 | 173 | | |
236 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
237 | 178 | | |
238 | 179 | | |
239 | 180 | | |
240 | 181 | | |
241 | 182 | | |
242 | 183 | | |
243 | 184 | | |
| 185 | + | |
244 | 186 | | |
245 | 187 | | |
246 | 188 | | |
| |||
251 | 193 | | |
252 | 194 | | |
253 | 195 | | |
254 | | - | |
255 | | - | |
256 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
257 | 205 | | |
258 | 206 | | |
259 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments