src/addObjectDialog.cpp

changeset 525
4f6e46a3bfc3
parent 524
52d5884b753c
child 526
b29b6fc45ba9
equal deleted inserted replaced
524:52d5884b753c 525:4f6e46a3bfc3
205 default: 205 default:
206 break; 206 break;
207 } 207 }
208 208
209 if (defaults->hasMatrix()) 209 if (defaults->hasMatrix())
210 { LDMatrixObject* mo = obj ? dynamic_cast<LDMatrixObject*> (obj) : null; 210 { LDMatrixObject* mo = dynamic_cast<LDMatrixObject*> (obj);
211 211
212 QLabel* lb_matrix = new QLabel ("Matrix:"); 212 QLabel* lb_matrix = new QLabel ("Matrix:");
213 le_matrix = new QLineEdit; 213 le_matrix = new QLineEdit;
214 // le_matrix->setValidator (new QDoubleValidator); 214 // le_matrix->setValidator (new QDoubleValidator);
215 matrix defaultMatrix = g_identity; 215 matrix defaultMatrix = g_identity;
216 216
217 if (mo) 217 if (mo)
218 { for (const Axis ax : g_Axes) 218 { for (const Axis ax : g_Axes)
219 dsb_coords[ax]->setValue (mo->position() [ax]); 219 dsb_coords[ax]->setValue (mo->position() [ax]);
220 220
221 defaultMatrix = mo->transform(); 221 defaultMatrix = mo->transform();
222 } 222 }
223 223

mercurial