[Eric] Generate dialog code

Detlev Offenbach detlev at die-offenbachs.de
Fri Apr 10 18:49:54 BST 2009


On Freitag, 10. April 2009, Gertjan Manenschijn wrote:
> After changing an ui file i want to regenerate my dialog code. So i
> right-click on the ui file and choose generate dialog code.
> Then i can only choose new classname, but i want to update an already
> existing class. If i choose new class and give it the same name as the
> old class, then
> the old class is overwritten and i lose my code. Is it possible to
> update the old class without losing my code?
>
> Regards,
> Gertjan
> _______________________________________________
> Eric mailing list
> Eric at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/eric

That works as you described unless you change the dialogs name (e.g. from 
OldDialog to NewDialog). If you do such a change, you have to modifiy the 
dialog code manually. Changing just the occurences of OldDialog should be 
enough (although I haven't tried that). Thereafter if you want to connect to 
new slot, you may use the dialog again.

Regards,
Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the Eric mailing list