comparison data/model/ImageModel.h @ 1741:9d82b164f264 by-id

Work on commands, and some other model updates
author Chris Cannam
date Thu, 27 Jun 2019 13:08:10 +0100
parents 78fe29adfd16
children 52705a328b34
comparison
equal deleted inserted replaced
1740:fe3f7f8df3a3 1741:9d82b164f264
229 case 1: e1 = e0.withFrame(value.toInt()); break; 229 case 1: e1 = e0.withFrame(value.toInt()); break;
230 case 2: e1 = e0.withURI(value.toString()); break; 230 case 2: e1 = e0.withURI(value.toString()); break;
231 case 3: e1 = e0.withLabel(value.toString()); break; 231 case 3: e1 = e0.withLabel(value.toString()); break;
232 } 232 }
233 233
234 ChangeEventsCommand *command = 234 auto command = new ChangeEventsCommand<Model>(getId(), tr("Edit Data"));
235 new ChangeEventsCommand(this, tr("Edit Data"));
236 command->remove(e0); 235 command->remove(e0);
237 command->add(e1); 236 command->add(e1);
238 return command->finish(); 237 return command->finish();
239 } 238 }
240 239