2024-11-06 00:39:08 +01:00
|
|
|
import QtQuick 2.15
|
2022-03-16 00:27:36 +02:00
|
|
|
|
2024-02-14 15:50:14 +02:00
|
|
|
import StatusQ.Core.Utils 0.1
|
|
|
|
|
2022-03-16 00:27:36 +02:00
|
|
|
ListModel {
|
2022-08-31 19:09:07 +02:00
|
|
|
id: root
|
|
|
|
|
2022-03-16 00:27:36 +02:00
|
|
|
Component.onCompleted: {
|
2024-11-06 00:39:08 +01:00
|
|
|
const words = StringUtils.readTextFile(":/imports/shared/stores/english.txt").split(/\r?\n|\r/)
|
2024-02-14 15:50:14 +02:00
|
|
|
for (var i = 0; i < words.length; i++) {
|
|
|
|
let word = words[i]
|
|
|
|
if (word !== "") {
|
2024-11-06 00:39:08 +01:00
|
|
|
append({"seedWord": word})
|
2022-03-16 00:27:36 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|