127 { |
127 { |
128 canvas->drawWorldPoint(painter, this->previewPoint); |
128 canvas->drawWorldPoint(painter, this->previewPoint); |
129 } |
129 } |
130 } |
130 } |
131 |
131 |
|
132 QString DrawTool::iconName() const |
|
133 { |
|
134 return ":/icons/pencil-outline.png"; |
|
135 } |
|
136 |
132 template<std::size_t N, typename T> |
137 template<std::size_t N, typename T> |
133 std::array<T, N> vectorToArray(const std::vector<T>& x) |
138 std::array<T, N> vectorToArray(const std::vector<T>& x) |
134 { |
139 { |
135 std::array<T, N> result; |
140 std::array<T, N> result; |
136 for (std::size_t i = 0; i < x.size() and i < N; i += 1) |
141 for (std::size_t i = 0; i < x.size() and i < N; i += 1) |