From 6b46741876f956e5424257888cbd9be61916fc3e Mon Sep 17 00:00:00 2001 From: Denis Dzyubenko Date: Wed, 4 Jan 2012 14:34:39 +0100 Subject: Added $publicclassregexp variable to sync.profile $publicclassregexp specifies the prefix for Qt classes in a qt5 module. For example in QtJsonDb all classes have "JsonDb" prefix and forward include headers were not generated properly - e.g. "jsondb-client.h" was generated in the include folder, but "JsonDbClient" (which matches class name) was not. Change-Id: I6b57a799d926254e2ab3fd00fa6e38f95b8eb96c Reviewed-by: Oswald Buddenhagen Reviewed-by: Marius Storm-Olsen Reviewed-by: Prasanth Ullattil --- bin/syncqt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/syncqt b/bin/syncqt index adaac3e5dd..1c9222c074 100755 --- a/bin/syncqt +++ b/bin/syncqt @@ -304,11 +304,16 @@ sub classNames { push @symbols, "QMutable" . $1 . "Iterator"; } + our $publicclassregexp; foreach my $symbol (@symbols) { $symbol = (join("::", @namespaces) . "::" . $symbol) if (scalar @namespaces); - push @ret, $symbol - if ($symbol =~ /^Q[^:]*$/ # no-namespace, starting with Q - || $symbol =~ /^Phonon::/); # or in the Phonon namespace + + if ($symbol =~ /^Q[^:]*$/ # no-namespace, starting with Q + || $symbol =~ /^Phonon::/) { # or in the Phonon namespace + push @ret, $symbol; + } elsif (defined($publicclassregexp)) { + push @ret, $symbol if ($symbol =~ $publicclassregexp); + } } } } -- cgit v1.2.3