ChangeLog.qml 933 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright (c) 2015 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.1
  4. import QtQuick.Controls 1.3
  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: (UM.Theme.getSize("modal_window_minimum").width * 0.75) | 0
  12. minimumHeight: (UM.Theme.getSize("modal_window_minimum").height * 0.75) | 0
  13. width: minimumWidth
  14. height: minimumHeight
  15. title: catalog.i18nc("@label", "Changelog")
  16. TextArea
  17. {
  18. anchors.fill: parent
  19. text: manager.getChangeLogString()
  20. readOnly: true;
  21. textFormat: TextEdit.RichText
  22. }
  23. rightButtons: [
  24. Button
  25. {
  26. UM.I18nCatalog
  27. {
  28. id: catalog
  29. name: "cura"
  30. }
  31. text: catalog.i18nc("@action:button", "Close")
  32. onClicked: base.hide()
  33. }
  34. ]
  35. }