fix(qml): 历史 ListView + sidebar TaskList 加 ScrollBar.vertical
QML ListView 默认 interactive 但不显示 ScrollBar — 用户用滚轮 / 拖拽 能滚动但看不到滚动条,体验不直观。 补: - HistoryTab.historyList: ScrollBar.vertical (AsNeeded) - MainWindow.taskList (sidebar): ScrollBar.vertical (AsNeeded) ImageGenTab promptArea / StyleDesignerTab 字段区都是 ScrollView 自带 ScrollBar, 不受影响。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Showing
2 changed files
with
8 additions
and
0 deletions
| ... | @@ -162,6 +162,10 @@ Item { | ... | @@ -162,6 +162,10 @@ Item { |
| 162 | clip: true | 162 | clip: true |
| 163 | model: history.model | 163 | model: history.model |
| 164 | 164 | ||
| 165 | ScrollBar.vertical: ScrollBar { | ||
| 166 | policy: ScrollBar.AsNeeded | ||
| 167 | } | ||
| 168 | |||
| 165 | delegate: Rectangle { | 169 | delegate: Rectangle { |
| 166 | required property int index | 170 | required property int index |
| 167 | required property string display | 171 | required property string display | ... | ... |
| ... | @@ -172,6 +172,10 @@ Rectangle { | ... | @@ -172,6 +172,10 @@ Rectangle { |
| 172 | 172 | ||
| 173 | model: taskQueue.model | 173 | model: taskQueue.model |
| 174 | 174 | ||
| 175 | ScrollBar.vertical: ScrollBar { | ||
| 176 | policy: ScrollBar.AsNeeded | ||
| 177 | } | ||
| 178 | |||
| 175 | // 右键菜单上下文:当前点击的任务 id + 状态 | 179 | // 右键菜单上下文:当前点击的任务 id + 状态 |
| 176 | property string ctxTaskId: "" | 180 | property string ctxTaskId: "" |
| 177 | property string ctxStatus: "" | 181 | property string ctxStatus: "" | ... | ... |
-
Please register or sign in to post a comment