Does anyone have a pointer to how to convert from using the old qtundo-commercial to the current undo framework with QtCore?

Thanks.