solitare/qml/FoundationPiles.qml
2024-12-05 03:24:09 +01:00

18 lines
341 B
QML

import QtQuick
import Solitare
Row {
spacing: 15
Repeater {
model: 4 // Each of the 4 suits
CardModel {
required property int index // passed from repeater
card: GameState.foundation[index].length > 0 ? GameState.foundation[index][0] : null
isFaceDown: false
}
}
}