src/tools/drawtool.cpp

changeset 163
36ea1a8aee33
parent 153
2f79053c2e9a
child 164
8305e2f968fb
equal deleted inserted replaced
162:3ebe1a0ca818 163:36ea1a8aee33
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)

mercurial