src/basics.cc

changeset 739
152b33a6d51b
parent 733
cc39df788660
child 767
44f0d5322628
equal deleted inserted replaced
738:16b63398aa1f 739:152b33a6d51b
84 case Y: setY (value); break; 84 case Y: setY (value); break;
85 case Z: setZ (value); break; 85 case Z: setZ (value); break;
86 } 86 }
87 } 87 }
88 88
89 QString Vertex::toString (bool mangled) const 89 String Vertex::toString (bool mangled) const
90 { 90 {
91 if (mangled) 91 if (mangled)
92 return format ("(%1, %2, %3)", x(), y(), z()); 92 return format ("(%1, %2, %3)", x(), y(), z());
93 93
94 return format ("%1 %2 %3", x(), y(), z()); 94 return format ("%1 %2 %3", x(), y(), z());
139 } 139 }
140 } 140 }
141 141
142 // ============================================================================= 142 // =============================================================================
143 // 143 //
144 QString Matrix::toString() const 144 String Matrix::toString() const
145 { 145 {
146 QString val; 146 String val;
147 147
148 for (int i = 0; i < 9; ++i) 148 for (int i = 0; i < 9; ++i)
149 { 149 {
150 if (i > 0) 150 if (i > 0)
151 val += ' '; 151 val += ' ';
152 152
153 val += QString::number (m_vals[i]); 153 val += String::number (m_vals[i]);
154 } 154 }
155 155
156 return val; 156 return val;
157 } 157 }
158 158

mercurial