提交 8dff4671 编写于 作者: I Igor Malinovskiy

Fix #4919

上级 9d3063ee
......@@ -10,6 +10,14 @@ FastTextView {
model: ListModel {}
function dumpText() {
var allStrings = "";
for (var ind=0; ind < root.model.count; ind++) {
allStrings += root.model.get(ind)["msg"] + "\n"
}
return allStrings
}
color: sysPalette.base
border.color: sysPalette.shadow
border.width: 1
......
......@@ -12,6 +12,14 @@ Rectangle {
listView.positionViewAtEnd()
}
function dumpText() {
var allStrings = "";
for (var id in root.model) {
allStrings += root.model[id] + "\n"
}
return allStrings
}
ScrollView {
anchors.fill: parent
anchors.margins: 10
......@@ -22,8 +30,11 @@ Rectangle {
id: listView
width: root.width - 20
delegate: BetterLabel {
delegate: TextEdit {
color: sysPalette.text
width: listView.width
readOnly: true
selectByMouse: true
text: {
if (root.showLineNumbers) {
return (index+1) + ". " + modelData
......@@ -56,13 +67,8 @@ Rectangle {
icon.source: "qrc:/images/copy.svg"
icon.color: "transparent"
onTriggered: {
var allStrings = "";
for (var id in affectedKeysListView.model) {
allStrings += affectedKeysListView.model[id] + "\n"
}
qmlUtils.copyToClipboard(allStrings)
allStrings = ""
onTriggered: {
qmlUtils.copyToClipboard(root.dumpText())
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册