Angus Leeming a écrit :
Abdelrazak Younes <[EMAIL PROTECTED]> writes:
Angus> So, if you can retain the functionality and flexibility
Angus> of the current solution but with nicer code that you can
Angus> understand, go for it!

Abdel> Actually, that's what I did in the Toc and Citation
Abdel> dialog. My solution is very simple: don't use the
Abdel> Button controller at all and implement the button
Abdel> policy directly in the dialog code. The code length
Abdel> is about the same...

Of course, the B.C. also gives you the ability to flag up "invalid" widgets for
free

Yes but this is independent from button policies ;-)

(and disable the Ok,Apply buttons).

This is what I am talking about, when you design a dialog you know what to do with these buttons and this is straight forward with automatic connection.

Having said that, the Qt frontends
don't use this functionality much. (See checked_widget.[Ch]; at least that's
what I think the file is called ;-))

addCheckedLineEdit is used indeed in some widgets but I don't really know what it is doing.

Abdel

Reply via email to