299 history()->add(new AddHistoryEntry {pos, obj}); |
299 history()->add(new AddHistoryEntry {pos, obj}); |
300 connect(obj, SIGNAL(codeChanged(QString,QString)), this, SLOT(objectChanged(QString,QString))); |
300 connect(obj, SIGNAL(codeChanged(QString,QString)), this, SLOT(objectChanged(QString,QString))); |
301 |
301 |
302 #ifdef DEBUG |
302 #ifdef DEBUG |
303 if (not isFrozen()) |
303 if (not isFrozen()) |
304 dprint ("Inserted object #%1 (%2) at %3\n", obj->id(), obj->typeName(), pos); |
304 print("Inserted object #%1 (%2) at %3\n", obj->id(), obj->typeName(), pos); |
305 #endif |
305 #endif |
306 } |
306 } |
307 |
307 |
308 void LDDocument::objectChanged(QString before, QString after) |
308 void LDDocument::objectChanged(QString before, QString after) |
309 { |
309 { |