On Thursday, November 17, 2011 16:20:10 Yue Liu wrote: > Hello, > > I'm trying to implement connector auto-routing in Flow, it requires > connector routings being re-calculated everytime a shape's geometry > changed. So I'm wondering what should be the right way to do this. My > idea is add virtual method shapeGeometryChanged() in > KoShapeBasedDocumentBase and use it in those KoShapeXXXCommands, then > implement it in FlowDocument. But i'm not sure about this idea so i > want to get your opion about it.
Something like that already exists. See KoPAPageContainerModel::childChanged. That is used in KoPageApp to invalidate the cache of the page. Maybe that acn help with what you want to do. Thorsten. _______________________________________________ calligra-devel mailing list calligra-devel@kde.org https://mail.kde.org/mailman/listinfo/calligra-devel