Main.qml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright (C) 2026 Siningsoft
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; version 3.
  7. *
  8. * utarchery is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. * QML/LocalStorage
  16. * https://code.qt.io/cgit/qt/qtdeclarative.git/tree/examples/quick/localstorage/localstorage.qml?h=6.12
  17. * https://code.qt.io/cgit/qt/qtdeclarative.git/tree/examples/quick/localstorage/Database.js?h=6.12
  18. * https://ubports.gitlab.io/docs/api-docs/?p=qtquick%2Fqtquick-localstorage-qmlmodule.html
  19. */
  20. import QtQuick 2.7
  21. import Lomiri.Components 1.3
  22. import QtQuick.Controls 2.2
  23. import QtQuick.Layouts 1.3
  24. import Qt.labs.settings 1.0
  25. import QtQuick.LocalStorage 2.7
  26. import QtQml 2.7
  27. import "database.js" as DBjs
  28. MainView {
  29. id: root
  30. applicationName: 'utarchery.siningsoft.de'
  31. visible: true
  32. width: units.gu(45)
  33. height: units.gu(75)
  34. Page {
  35. anchors.fill: parent
  36. header: PageHeader {
  37. id: header
  38. title: i18n.tr('utArchery')
  39. }
  40. Component.onCompleted : DBjs.init()
  41. }
  42. }