93 case OBJ_SubfileReference: |
93 case OBJ_SubfileReference: |
94 { |
94 { |
95 coordCount = 3; |
95 coordCount = 3; |
96 tw_subfileList = new QTreeWidget(); |
96 tw_subfileList = new QTreeWidget(); |
97 tw_subfileList->setHeaderLabel (tr ("Primitives")); |
97 tw_subfileList->setHeaderLabel (tr ("Primitives")); |
98 populatePrimitivesTree (tw_subfileList, |
98 |
99 (obj ? static_cast<LDSubfileReference*> (obj)->fileInfo()->name() : "")); |
99 QString defaultname; |
|
100 |
|
101 if (obj) |
|
102 defaultname = static_cast<LDSubfileReference*> (obj)->fileInfo()->name(); |
|
103 |
|
104 g_win->primitives()->populateTreeWidget(tw_subfileList, defaultname); |
100 connect (tw_subfileList, SIGNAL (itemSelectionChanged()), this, SLOT (slot_subfileTypeChanged())); |
105 connect (tw_subfileList, SIGNAL (itemSelectionChanged()), this, SLOT (slot_subfileTypeChanged())); |
101 lb_subfileName = new QLabel ("File:"); |
106 lb_subfileName = new QLabel ("File:"); |
102 le_subfileName = new QLineEdit; |
107 le_subfileName = new QLineEdit; |
103 le_subfileName->setFocus(); |
108 le_subfileName->setFocus(); |
104 |
109 |