PerObjectItem.qml 671 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright (c) 2015 Ultimaker B.V.
  2. // Uranium is released under the terms of the AGPLv3 or higher.
  3. import QtQuick 2.1
  4. import QtQuick.Layouts 1.1
  5. import QtQuick.Controls 1.1
  6. import QtQuick.Controls.Styles 1.1
  7. import UM 1.2 as UM
  8. UM.TooltipArea
  9. {
  10. x: model.depth * UM.Theme.getSize("default_margin").width;
  11. text: model.description;
  12. width: childrenRect.width;
  13. height: childrenRect.height;
  14. Button
  15. {
  16. id: check
  17. text: definition.label
  18. onClicked:
  19. {
  20. addedSettingsModel.setVisible(model.key, true);
  21. settingPickDialog.visible = false
  22. UM.ActiveTool.forceUpdate()
  23. }
  24. }
  25. }