ChangeLog.qml 981 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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.3 as UM
  8. import Cura 1.0 as Cura
  9. UM.Dialog
  10. {
  11. id: base
  12. minimumWidth: (UM.Theme.getSize("modal_window_minimum").width * 0.75) | 0
  13. minimumHeight: (UM.Theme.getSize("modal_window_minimum").height * 0.75) | 0
  14. width: minimumWidth
  15. height: minimumHeight
  16. title: catalog.i18nc("@label", "Changelog")
  17. TextArea
  18. {
  19. anchors.fill: parent
  20. text: CuraApplication.getTextManager().getChangeLogText()
  21. readOnly: true;
  22. textFormat: TextEdit.RichText
  23. }
  24. rightButtons: [
  25. Button
  26. {
  27. UM.I18nCatalog
  28. {
  29. id: catalog
  30. name: "cura"
  31. }
  32. text: catalog.i18nc("@action:button", "Close")
  33. onClicked: base.hide()
  34. }
  35. ]
  36. }