main.qml 803 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import QtQuick 2.15
  2. import QtQuick.Window 2.15
  3. import Qt.labs.settings 1.0
  4. Window {
  5. id: window
  6. width: 800
  7. height: 600
  8. minimumWidth: 480
  9. minimumHeight: 320
  10. visible: true
  11. title: appName + " v" + version
  12. readonly property string appName: qsTr("Paimon Launcher")
  13. readonly property real block: 48
  14. readonly property real space: block / 4
  15. Settings {
  16. property alias x: window.x
  17. property alias y: window.y
  18. property alias width: window.width
  19. property alias height: window.height
  20. }
  21. Rectangle {
  22. id: background
  23. anchors.fill: parent
  24. color: "gray"
  25. }
  26. Installer {
  27. id: installer
  28. anchors.fill: parent
  29. }
  30. onClosing: {
  31. close.accepted = installer.handleAppExit()
  32. }
  33. }