RecommendedTroubleshootingGuides.qml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright (c) 2019 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.10
  4. import QtQuick.Controls 1.4
  5. import QtQuick.Controls.Styles 1.4
  6. import UM 1.2 as UM
  7. import Cura 1.0 as Cura
  8. Item
  9. {
  10. id: tipsCell
  11. anchors.top: adhesionCheckBox.visible ? adhesionCheckBox.bottom : (enableSupportCheckBox.visible ? supportExtruderCombobox.bottom : infillCellRight.bottom)
  12. anchors.topMargin: Math.round(UM.Theme.getSize("default_margin").height * 2)
  13. anchors.left: parent.left
  14. width: parent.width
  15. height: tipsText.contentHeight * tipsText.lineCount
  16. Label
  17. {
  18. id: tipsText
  19. anchors.left: parent.left
  20. anchors.leftMargin: UM.Theme.getSize("default_margin").width
  21. anchors.right: parent.right
  22. anchors.rightMargin: UM.Theme.getSize("default_margin").width
  23. anchors.top: parent.top
  24. wrapMode: Text.WordWrap
  25. text: catalog.i18nc("@label", "Need help improving your prints?<br>Read the <a href='%1'>Ultimaker Troubleshooting Guides</a>").arg("https://ultimaker.com/en/troubleshooting")
  26. font: UM.Theme.getFont("default")
  27. color: UM.Theme.getColor("text")
  28. linkColor: UM.Theme.getColor("text_link")
  29. onLinkActivated: Qt.openUrlExternally(link)
  30. }
  31. }