mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 03:32:34 +08:00
e8aacf1888
1. 新增隐藏礼物选项
2. 无效技能ui显示🔒
3. 过期房间字符串显示删除线
5. 按钮键长按查看技能详情
6. 筛选房间功能
7. “禁用lua扩展”禁用
8. 调整服务器“从收藏移除”的ui,改为三点展开
9. 调整红温缩进
10. 房间内限制玩家名称长度(自己除外)
11. 玩家详情显示判定区
12. 房间内一览
13. 武将一览语音键增加按钮复制代码与文本(长按复制代码),悬停显示
14. 手牌排序多选:(默认)类型、点数、花色
15. 技能次数提示,指定为正数或0显示
16. 修复ArrangeCardsBox的报错
17. 手牌拖拽排序
18. 武将技能按顺序添加
56 lines
1.2 KiB
QML
56 lines
1.2 KiB
QML
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
|
|
ListView {
|
|
id: root
|
|
|
|
clip: true
|
|
|
|
highlight: Rectangle { color: "#EEEEEE"; radius: 5 }
|
|
highlightMoveDuration: 500
|
|
|
|
ScrollBar.vertical: ScrollBar {
|
|
parent: root.parent
|
|
anchors.top: root.top
|
|
anchors.right: root.right
|
|
anchors.bottom: root.bottom
|
|
}
|
|
|
|
model: ListModel { id: logModel }
|
|
delegate: TextEdit {
|
|
id: textEdit
|
|
|
|
text: logText
|
|
width: root.width
|
|
clip: true
|
|
readOnly: true
|
|
selectByKeyboard: true
|
|
selectByMouse: false
|
|
wrapMode: TextEdit.WrapAnywhere
|
|
textFormat: TextEdit.RichText
|
|
font.pixelSize: 16
|
|
|
|
TapHandler {
|
|
// acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.NoButton
|
|
// gesturePolicy: TapHandler.WithinBounds
|
|
onTapped: root.currentIndex = index;
|
|
}
|
|
}
|
|
|
|
Button {
|
|
text: luatr("Return to Bottom")
|
|
visible: root.currentIndex !== logModel.count - 1
|
|
onClicked: root.currentIndex = logModel.count - 1;
|
|
}
|
|
|
|
function append(data) {
|
|
const autoScroll = root.currentIndex === logModel.count - 1;
|
|
logModel.append(data);
|
|
if (autoScroll) {
|
|
root.currentIndex = logModel.count - 1;
|
|
}
|
|
}
|
|
}
|