59 lines
1.2 KiB
QML
59 lines
1.2 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
|
|
ApplicationWindow {
|
|
width: 750
|
|
height: 650
|
|
visible: true
|
|
title: qsTr("Solitare")
|
|
color: "green"
|
|
|
|
ScoreBar {
|
|
id: scoreBar
|
|
height: 50
|
|
anchors.top: parent.top
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
}
|
|
|
|
// Show the foundation piles, throwaway pile & the draw stack on the first row
|
|
Item {
|
|
id: firstRow
|
|
height: 120
|
|
anchors.top: scoreBar.bottom
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
|
|
Item {
|
|
anchors.fill: parent
|
|
anchors.margins: 10
|
|
|
|
// Left side
|
|
FoundationPiles {
|
|
anchors.left: parent.left
|
|
}
|
|
|
|
// Spacer to push the second row to the right
|
|
Item {
|
|
Layout.fillWidth: true
|
|
}
|
|
|
|
// Right side
|
|
Row {
|
|
spacing: 20
|
|
anchors.right: parent.right
|
|
|
|
ThrowawayPile {}
|
|
DrawPile {}
|
|
}
|
|
}
|
|
}
|
|
|
|
Tableau {
|
|
anchors.top: firstRow.bottom
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
anchors.topMargin: 50
|
|
}
|
|
}
|