277 |
277 |
278 return QIcon (); |
278 return QIcon (); |
279 } |
279 } |
280 |
280 |
281 void LDForgeWindow::buildObjList () { |
281 void LDForgeWindow::buildObjList () { |
|
282 if (!g_CurrentFile) |
|
283 return; |
|
284 |
282 QList<QTreeWidgetItem*> qaItems; |
285 QList<QTreeWidgetItem*> qaItems; |
|
286 |
|
287 qObjList->clear (); |
|
288 |
283 for (ushort i = 0; i < g_CurrentFile->objects.size(); ++i) { |
289 for (ushort i = 0; i < g_CurrentFile->objects.size(); ++i) { |
284 LDObject* obj = g_CurrentFile->objects[i]; |
290 LDObject* obj = g_CurrentFile->objects[i]; |
285 |
291 |
286 str zText; |
292 str zText; |
287 switch (obj->getType ()) { |
293 switch (obj->getType ()) { |