summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2012-01-04 14:34:39 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-27 22:48:41 +0100
commit6b46741876f956e5424257888cbd9be61916fc3e (patch)
tree5cbf9bc715449d5c952478ff7f60d9f013320ab2 /bin
parente1149349c158364854bcfece3c6d80ebccb26f28 (diff)
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 <oswald.buddenhagen@nokia.com> Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com> Reviewed-by: Prasanth Ullattil <prasanth.ullattil@nokia.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/syncqt11
1 files changed, 8 insertions, 3 deletions
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);
+ }
}
}
}