src/dbus/qdbusxmlgenerator.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   201             // do we need to describe this argument?
   201             // do we need to describe this argument?
   202             if (QDBusMetaType::signatureToType(signature) == QVariant::Invalid) {
   202             if (QDBusMetaType::signatureToType(signature) == QVariant::Invalid) {
   203                 const char *typeName = QVariant::typeToName( QVariant::Type(types.at(j)) );
   203                 const char *typeName = QVariant::typeToName( QVariant::Type(types.at(j)) );
   204                 xml += QString::fromLatin1("      <annotation name=\"com.trolltech.QtDBus.QtTypeName.%1%2\" value=\"%3\"/>\n")
   204                 xml += QString::fromLatin1("      <annotation name=\"com.trolltech.QtDBus.QtTypeName.%1%2\" value=\"%3\"/>\n")
   205                        .arg(isOutput ? QLatin1String("Out") : QLatin1String("In"))
   205                        .arg(isOutput ? QLatin1String("Out") : QLatin1String("In"))
   206                        .arg(isOutput ? j - inputCount : j - 1)
   206                        .arg(isOutput && !isSignal ? j - inputCount : j - 1)
   207                        .arg(typeNameToXml(typeName));
   207                        .arg(typeNameToXml(typeName));
   208             }
   208             }
   209         }
   209         }
   210 
   210 
   211         int wantedMask;
   211         int wantedMask;