FreeKill/Fk/RoomElement/ViewGeneralPile.qml

36 lines
686 B
QML
Raw Normal View History

2023-08-11 16:50:17 +00:00
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick
import QtQuick.Layouts
ColumnLayout {
2023-08-11 16:50:17 +00:00
id: root
anchors.fill: parent
property var extra_data: ({})
signal finish()
BigGlowText {
Layout.fillWidth: true
Layout.preferredHeight: childrenRect.height + 4
2023-08-11 16:50:17 +00:00
text: Backend.translate(extra_data.name)
}
2023-08-11 16:50:17 +00: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-11 16:50:17 +00:00
model: extra_data.ids || extra_data.cardNames
2023-08-11 16:50:17 +00:00
delegate: GeneralCardItem {
id: cardItem
autoBack: false
name: modelData
2023-08-11 16:50:17 +00:00
}
}
}