MainView.qml 747 B

12345678910111213141516171819202122232425262728293031323334
  1. import QtQuick 2.0
  2. import QtQuick.Controls 1.4
  3. import org.semlanik.cutegit 1.0
  4. FocusScope {
  5. id: root
  6. property var commitsForDiff: null
  7. property bool controlActive: false
  8. focus: true
  9. Loader {
  10. id: mainLoader
  11. anchors.fill: parent
  12. }
  13. states: [
  14. State {
  15. name: "initial"
  16. when: _handler.repositories.count <=0
  17. PropertyChanges {
  18. target: mainLoader
  19. source: "InitialWizard.qml"
  20. }
  21. },
  22. State {
  23. name: "main"
  24. when: _handler.repositories.count > 0
  25. PropertyChanges {
  26. target: mainLoader
  27. source: "RepositoryView.qml"
  28. }
  29. }
  30. ]
  31. }