AboutDialogVersionsList.qml.jinja 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import QtQuick 2.2
  2. import QtQuick.Controls 2.9
  3. import UM 1.6 as UM
  4. import Cura 1.5 as Cura
  5. ListView
  6. {
  7. id: projectBuildInfoList
  8. visible: false
  9. anchors.top: creditsNotes.bottom
  10. anchors.topMargin: UM.Theme.getSize("default_margin").height
  11. width: parent.width
  12. height: base.height - y - (2 * UM.Theme.getSize("default_margin").height + closeButton.height)
  13. ScrollBar.vertical: UM.ScrollBar
  14. {
  15. id: projectBuildInfoListScrollBar
  16. }
  17. delegate: Row
  18. {
  19. spacing: UM.Theme.getSize("narrow_margin").width
  20. UM.Label
  21. {
  22. text: (model.name)
  23. width: (projectBuildInfoList.width* 0.4) | 0
  24. elide: Text.ElideRight
  25. }
  26. UM.Label
  27. {
  28. text: (model.version)
  29. width: (projectBuildInfoList.width *0.6) | 0
  30. elide: Text.ElideRight
  31. }
  32. }
  33. model: ListModel
  34. {
  35. id: developerInfo
  36. }
  37. Component.onCompleted:
  38. {
  39. var conan_installs = {{ conan_installs }};
  40. var python_installs = {{ python_installs }};
  41. developerInfo.append({ name : "<H1>Conan Installs</H1>", version : '' });
  42. for (var n in conan_installs)
  43. {
  44. developerInfo.append({ name : conan_installs[n][0], version : conan_installs[n][1] });
  45. }
  46. developerInfo.append({ name : '', version : '' });
  47. developerInfo.append({ name : "<H1>Python Installs</H1>", version : '' });
  48. for (var n in python_installs)
  49. {
  50. developerInfo.append({ name : python_installs[n][0], version : python_installs[n][1] });
  51. }
  52. }
  53. }