2024-11-30 18:23:45 +00:00
|
|
|
import QtQuick
|
2024-11-30 19:56:20 +00:00
|
|
|
import QtQuick.Controls
|
|
|
|
import QtQuick.Layouts
|
2024-12-05 00:22:18 +00:00
|
|
|
import Solitare
|
2024-11-30 18:23:45 +00:00
|
|
|
|
2024-11-30 19:56:20 +00:00
|
|
|
ApplicationWindow {
|
2024-12-02 18:00:15 +00:00
|
|
|
width: 750
|
|
|
|
height: 650
|
2024-11-30 18:23:45 +00:00
|
|
|
visible: true
|
2024-12-02 18:00:15 +00:00
|
|
|
title: qsTr("Solitare")
|
2024-12-04 19:34:29 +00:00
|
|
|
color: "#019934"
|
2024-11-30 19:56:20 +00:00
|
|
|
|
|
|
|
ScoreBar {
|
|
|
|
id: scoreBar
|
2024-12-05 02:24:09 +00:00
|
|
|
|
2024-11-30 19:56:20 +00:00
|
|
|
height: 50
|
2024-12-02 14:35:37 +00:00
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
2024-11-30 19:56:20 +00:00
|
|
|
}
|
2024-12-01 00:01:37 +00:00
|
|
|
|
2024-12-02 14:35:37 +00:00
|
|
|
// Show the foundation piles, throwaway pile & the draw stack on the first row
|
2024-12-04 19:34:29 +00:00
|
|
|
Rectangle {
|
2024-12-02 18:00:15 +00:00
|
|
|
id: firstRow
|
2024-12-05 02:24:09 +00:00
|
|
|
|
2024-12-04 19:34:29 +00:00
|
|
|
height: 135
|
2024-12-02 14:35:37 +00:00
|
|
|
anchors.top: scoreBar.bottom
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
2024-12-04 19:34:29 +00:00
|
|
|
color: "green"
|
2024-12-02 14:35:37 +00:00
|
|
|
|
2024-12-03 14:48:52 +00:00
|
|
|
Item {
|
2024-12-02 14:35:37 +00:00
|
|
|
anchors.fill: parent
|
|
|
|
anchors.margins: 10
|
|
|
|
|
2024-12-04 18:26:16 +00:00
|
|
|
// Left side
|
|
|
|
FoundationPiles {
|
2024-12-02 14:35:37 +00:00
|
|
|
anchors.left: parent.left
|
|
|
|
}
|
|
|
|
|
2024-12-04 18:26:16 +00:00
|
|
|
// Right side
|
2024-12-02 14:35:37 +00:00
|
|
|
Row {
|
|
|
|
spacing: 20
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
2024-12-04 18:20:06 +00:00
|
|
|
ThrowawayPile {}
|
2024-12-05 02:24:09 +00:00
|
|
|
|
2024-12-04 18:22:20 +00:00
|
|
|
DrawPile {}
|
2024-12-02 14:35:37 +00:00
|
|
|
}
|
|
|
|
}
|
2024-12-01 00:01:37 +00:00
|
|
|
}
|
2024-12-02 18:00:15 +00:00
|
|
|
|
2024-12-04 18:15:50 +00:00
|
|
|
Tableau {
|
2024-12-02 18:00:15 +00:00
|
|
|
anchors.top: firstRow.bottom
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
anchors.topMargin: 50
|
|
|
|
}
|
2024-11-30 18:23:45 +00:00
|
|
|
}
|