On Thursday 08 January 2004 13:32, Angus Leeming wrote:

> This shell-script adds the necessary function to each Q*Dialog.C file
> if reject() isn't already defined.
> #! /bin/sh
> for file in src/frontends/qt2/Q*Dialog.C
> do
>         class=`basename $file`
>         class=`echo $class | sed 's/\.C$//'`
>         grep "void  *${class}::reject() *$" ${file} > /dev/null &&
> continue baseclass="${class}Base"
>         cat >> ${file} <<EOF
>
>
> void ${class}::reject()
> {
>         form_->slotWMHide();
>         ${baseclass}::reject();
> }
> EOF
> done
>
> Shall I commit or would you prefer to test it out further yourself?

what about header files?

Isn't it better if we solve it less drastically? Like defining some 
QDialogPlus : public QDialog and deriving from QDialogPlus instead of 
QDialog? Just a though...

Alfredo


Reply via email to