284 SIGNAL(aboutToRemoveObject(QModelIndex)), |
284 SIGNAL(aboutToRemoveObject(QModelIndex)), |
285 this, |
285 this, |
286 SLOT(handleImminentObjectRemoval(QModelIndex)), |
286 SLOT(handleImminentObjectRemoval(QModelIndex)), |
287 Qt::DirectConnection |
287 Qt::DirectConnection |
288 ); |
288 ); |
289 |
|
290 #ifdef DEBUG |
|
291 if (not isFrozen()) |
|
292 print("Inserted object #%1 (%2) at %3\n", object->id(), object->typeName(), index.row()); |
|
293 #endif |
|
294 } |
289 } |
295 |
290 |
296 void LDDocument::objectChanged(const LDObjectState& before, const LDObjectState& after) |
291 void LDDocument::objectChanged(const LDObjectState& before, const LDObjectState& after) |
297 { |
292 { |
298 LDObject* object = qobject_cast<LDObject*>(sender()); |
293 LDObject* object = qobject_cast<LDObject*>(sender()); |