2023-08-12 00:50:17 +08:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
2023-12-06 21:07:35 +08:00
|
|
|
ColumnLayout {
|
2023-08-12 00:50:17 +08:00
|
|
|
id: root
|
|
|
|
anchors.fill: parent
|
|
|
|
property var extra_data: ({})
|
|
|
|
signal finish()
|
|
|
|
|
2023-12-06 21:07:35 +08:00
|
|
|
BigGlowText {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.preferredHeight: childrenRect.height + 4
|
2023-08-12 00:50:17 +08:00
|
|
|
|
2024-01-25 03:23:29 +08:00
|
|
|
text: luatr(extra_data.name)
|
2023-12-06 21:07:35 +08:00
|
|
|
}
|
2023-08-12 00:50:17 +08:00
|
|
|
|
2023-12-06 21:07:35 +08:00
|
|
|
GridView {
|
|
|
|
cellWidth: 93 + 4
|
|
|
|
cellHeight: 130 + 4
|
|
|
|
Layout.preferredWidth: root.width - root.width % 97
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.alignment: Qt.AlignHCenter
|
|
|
|
clip: true
|
2023-08-12 00:50:17 +08:00
|
|
|
|
2023-12-06 21:07:35 +08:00
|
|
|
model: extra_data.ids || extra_data.cardNames
|
2023-08-12 00:50:17 +08:00
|
|
|
|
2023-12-06 21:07:35 +08:00
|
|
|
delegate: GeneralCardItem {
|
|
|
|
id: cardItem
|
|
|
|
autoBack: false
|
|
|
|
name: modelData
|
2023-08-12 00:50:17 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|