src/addObjectDialog.cpp

changeset 540
0334789cb4d7
parent 539
72ad83a67165
child 542
46a33bdc0b36
equal deleted inserted replaced
539:72ad83a67165 540:0334789cb4d7
37 #include "moc_addObjectDialog.cpp" 37 #include "moc_addObjectDialog.cpp"
38 38
39 // ============================================================================= 39 // =============================================================================
40 // ----------------------------------------------------------------------------- 40 // -----------------------------------------------------------------------------
41 class SubfileListItem : public QTreeWidgetItem 41 class SubfileListItem : public QTreeWidgetItem
42 { PROPERTY (public, Primitive*, PrimitiveInfo, NO_OPS, NO_CB) 42 { PROPERTY (public, Primitive*, PrimitiveInfo, NO_OPS, STOCK_WRITE)
43 43
44 public: 44 public:
45 SubfileListItem (QTreeWidgetItem* parent, Primitive* info) : 45 SubfileListItem (QTreeWidgetItem* parent, Primitive* info) :
46 QTreeWidgetItem (parent), 46 QTreeWidgetItem (parent),
47 m_PrimitiveInfo (info) {} 47 m_PrimitiveInfo (info) {}
219 // le_matrix->setValidator (new QDoubleValidator); 219 // le_matrix->setValidator (new QDoubleValidator);
220 matrix defaultMatrix = g_identity; 220 matrix defaultMatrix = g_identity;
221 221
222 if (mo) 222 if (mo)
223 { for (const Axis ax : g_Axes) 223 { for (const Axis ax : g_Axes)
224 dsb_coords[ax]->setValue (mo->position() [ax]); 224 dsb_coords[ax]->setValue (mo->getPosition() [ax]);
225 225
226 defaultMatrix = mo->getTransform(); 226 defaultMatrix = mo->getTransform();
227 } 227 }
228 228
229 le_matrix->setText (defaultMatrix.stringRep()); 229 le_matrix->setText (defaultMatrix.stringRep());

mercurial