solitare/FoundationPiles.qml

15 lines
324 B
QML

import QtQuick
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
}
}
}