--- a/src/dbus/qdbusxmlgenerator.cpp Tue Jan 26 12:42:25 2010 +0200
+++ b/src/dbus/qdbusxmlgenerator.cpp Tue Feb 02 00:43:10 2010 +0200
@@ -203,7 +203,7 @@
const char *typeName = QVariant::typeToName( QVariant::Type(types.at(j)) );
xml += QString::fromLatin1(" <annotation name=\"com.trolltech.QtDBus.QtTypeName.%1%2\" value=\"%3\"/>\n")
.arg(isOutput ? QLatin1String("Out") : QLatin1String("In"))
- .arg(isOutput ? j - inputCount : j - 1)
+ .arg(isOutput && !isSignal ? j - inputCount : j - 1)
.arg(typeNameToXml(typeName));
}
}