35 QWidget* TransformTool::toolWidget() |
35 QWidget* TransformTool::toolWidget() |
36 { |
36 { |
37 return this->widget; |
37 return this->widget; |
38 } |
38 } |
39 |
39 |
|
40 QString TransformTool::iconName() const |
|
41 { |
|
42 return ":/icons/grid-outline.png"; |
|
43 } |
|
44 |
40 void TransformTool::applyButtonClicked() |
45 void TransformTool::applyButtonClicked() |
41 { |
46 { |
42 std::unique_ptr<ModelEditor> editor = this->document->editModel(); |
47 std::unique_ptr<ModelEditor> editor = this->document->editModel(); |
43 const glm::mat4 matrix = this->matrixEditor->value(); |
48 const glm::mat4 matrix = this->matrixEditor->value(); |
44 for (ldraw::id_t id : this->selection) |
49 for (ldraw::id_t id : this->selection) |