ChangeLog.qml 978 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Copyright (c) 2015 Ultimaker B.V.
  2. // Cura is released under the terms of the AGPLv3 or higher.
  3. import QtQuick 2.1
  4. import QtQuick.Controls 1.1
  5. import QtQuick.Layouts 1.1
  6. import QtQuick.Window 2.1
  7. import UM 1.1 as UM
  8. UM.Dialog
  9. {
  10. id: base
  11. minimumWidth: 400 * Screen.devicePixelRatio
  12. minimumHeight: 300 * Screen.devicePixelRatio
  13. width: minimumWidth
  14. height: minimumHeight
  15. title: catalog.i18nc("@label", "Changelog")
  16. ScrollView
  17. {
  18. width: parent.width
  19. height: parent.height - 25
  20. Label
  21. {
  22. text: manager.getChangeLogString()
  23. width:base.width - 35
  24. wrapMode: Text.Wrap;
  25. }
  26. }
  27. Button
  28. {
  29. UM.I18nCatalog
  30. {
  31. id: catalog
  32. name: "cura"
  33. }
  34. anchors.bottom:parent.bottom
  35. text: catalog.i18nc("@action:button", "Close")
  36. onClicked: base.hide()
  37. anchors.horizontalCenter: parent.horizontalCenter
  38. }
  39. }