[Kde-bindings] KDE/kdebindings

Thomas Moenicke tm at ippfp.org
Thu Feb 8 14:04:15 UTC 2007


SVN commit 631581 by moenicke:

* Removed the last arguments in QByteArray::boundingRect(int x, int y, int w, int h, int flags, const QString &text, int tabstops=0, int *tabarray=0), QByteArray::size(int flags, const QString& str, int tabstops=0, int *tabarray=0) signatures to avoid generation of ambiguous method calls in smoke
* Added kcomponentdata.h to the kde header list in smokekde

CCMAIL: kde-bindings at kde.org



 M  +18 -0     kalyptus/kalyptusCxxToSmoke.pm  
 M  +1 -0      smoke/kde/kde_header_list  


--- trunk/KDE/kdebindings/kalyptus/kalyptusCxxToSmoke.pm #631580:631581
@@ -778,6 +778,24 @@
 				$kledAmbiguousConstructor = $m;
 			}
 		}
+
+		# cut the last arguments in size(), boundingRect(), both methods was ambiguous
+		if ($classNode->{astNodeName} eq 'QFontMetrics' and $name eq 'boundingRect' && $#{$m->{ParamList}} == 7) {
+			if ($m->{ParamList}[7]->{ArgType} =~ /int/ && defined $m->{ParamList}[7]->{DefaultValue}) {
+			    pop(@{$m->{ParamList}});
+			    $#{$m->{ParamList}}--;
+			    $m->{Params} =~ s/int \*tabarray\=0//;
+			}
+		}
+
+		if ($classNode->{astNodeName} eq 'QFontMetrics' and $name eq 'size' && $#{$m->{ParamList}} == 3) {
+			if ($m->{ParamList}[3]->{ArgType} =~ /int/ && defined $m->{ParamList}[3]->{DefaultValue}) {
+			    pop(@{$m->{ParamList}});
+			    $#{$m->{ParamList}}--;
+			    $m->{Params} =~ s/int \*tabarray\=0//;
+			}
+		}
+
 		
 	    my $argId = 0;
 	    my $firstDefaultParam;
--- trunk/KDE/kdebindings/smoke/kde/kde_header_list #631580:631581
@@ -59,6 +59,7 @@
 kauthorized.h
 kautomount.h
 kautostart.h
+kcomponentdata.h
 kbookmarkbar.h
 kbookmarkdombuilder.h
 kbookmarkexporter.h



More information about the Kde-bindings mailing list