John Levon wrote:

> On Thu, Apr 03, 2003 at 06:21:27PM +0000, Angus Leeming wrote:
> 
>> Well then, derive a class from checked_widget that does _not_ change the
>> colour but does ensure that the Ok,Apply buttons retain a "memory" of
>> this invalid entry.
> 
> Well, the qt2/ way is just to add an isValid() to FloatPlacement widget,
> then check that inside the dialog's isValid() method. I guess it's
> equivalent though.

So you loop over all widgets after a signal is received? Then indeed it is 
equivalent but you are replicating ButtonController code for no good 
reason. Moreover:
1. I loop over only those widgets that I have said can actually be invalid.
2. my way is more flexible: a checked_widget can actually interrogate 
multiple GUI widgets to ensure that a GlueLength is valid.

For example. ;-)


-- 
Angus

Reply via email to