Am Tue, 1 Apr 2025 10:01:05 +0200 (CEST) schrieb "Jürgen Spitzmüller" <juer...@spitzmueller.org>:
> Kornel Benko schrieb am 30.03.2025 09:34 (GMT +02:00): > > I don't get it. Why is this here needed, but other occurrences (in other ui > > files) are left unchanged? See attached. > > Of course it's needed everywhere. Feel invited to fix it wherever you find it. > > Pavel, didn't you plan to write a script that checks for this particular > problem? But we already have a script. $ ctest -R check_Qt_ui_Constants I check_Qt_ui_Constants changed it to allow for 2 repetitions of '::'. The attached patch restores the previous behaviour. Will commit. > Best, > Jürgen > > PS. the problem is caused by QtDesigner 6. I personally now use, and encourage > everybody to use, QtDesigner 5 for all ui work. Kornel
diff --git a/development/autotests/checkQtConstants.pl b/development/autotests/checkQtConstants.pl index 73e0e6670e..c3aac50717 100644 --- a/development/autotests/checkQtConstants.pl +++ b/development/autotests/checkQtConstants.pl @@ -31,11 +31,11 @@ sub checkConstants($) { #print "Checking $ui\n"; if (open(my $FI, '<', $ui)) { my $lineno = 0; while (my $l = <$FI>) { $lineno += 1; - if ($l =~ /\bQ([a-zA-Z]+\:\:){3}/) { + if ($l =~ /\bQ([a-zA-Z]+\:\:){2}/) { print "$ui:$lineno $l"; $no_founds += 1; } } close($FI);
pgpDgZhYgPLu9.pgp
Description: Digitale Signatur von OpenPGP
-- lyx-devel mailing list lyx-devel@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-devel