3 # this is a corny script to check that qtarch hasn't fscked up
4 # the initialisation order of the widgets. perl hackers are free
7 # usage: dlg/checkinitorder.pl *data.C
12 # yes, this is a broken regexp, but the sources are machine generated
13 if (/= new / && ! /Layout/) {
14 ( $varname, $parent) = split('=');
15 # print "$varname: $parent";
19 $parent =~ s/^.*\(\s*//;
20 $parent =~ s/\s*,.*$//;
22 if (!defined($found{$parent})) {
23 print "Widget $varname constructed with ",
24 "uninitialised parent $parent !\n";