solitare/qml/FoundationPiles.qml

16 lines
339 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
}
}
}