Changeset 561 for trunk/src/activeqt/container/qaxdump.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/activeqt/container/qaxdump.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the ActiveQt framework of the Qt Toolkit. … … 67 68 ulong helpContext; 68 69 HRESULT hres = typeInfo->GetDocumentation(memId, 0, &docStringBstr, &helpContext, &helpFileBstr); 69 QString docString = QString::from Utf16((const ushort *)docStringBstr);70 QString helpFile = QString::from Utf16((const ushort *)helpFileBstr);70 QString docString = QString::fromdocStringBstr); 71 QString helpFile = QString::fromhelpFileBstr); 71 72 SysFreeString(docStringBstr); 72 73 SysFreeString(helpFileBstr); … … 95 96 96 97 if (p < parameterNames.count()) 97 prototype += " "+ parameterNames.at(p);98 prototype += + parameterNames.at(p); 98 99 99 100 if (numDefArgs >= parameterTypes.count() - p) … … 102 103 prototype += ", "; 103 104 } 104 prototype += ")";105 prototype += ; 105 106 106 107 return prototype; … … 197 198 prototype = namedPrototype(slot.parameterTypes(), slot.parameterNames()); 198 199 QString detail = QString::fromLatin1("<h3><a name=") + QString::fromLatin1(name.constData()) + QLatin1String("></a>") + 199 Q String::fromLatin1(returntype.constData()) + QLatin1String(" ") +200 Q String::fromLatin1(name.constData()) + QLatin1String(" ") +200 Q) + 201 Q) + 201 202 QString::fromLatin1(prototype.constData()) + QLatin1String("<tt> [slot]</tt></h3>\n"); 202 203 prototype = namedPrototype(slot.parameterTypes(), QList<QByteArray>()); … … 221 222 } 222 223 if (returntype != "void") 223 detail += Q String::fromLatin1(returntype.constData()) + QLatin1String(" result = ");224 detail += QLatin1String("object->") + Q String::fromLatin1(functionToCall.constData()) +225 QLatin1String("(\"" + name + prototype + "\"");224 detail += Q(returntype.constData()) + QLatin1String(" result = "); 225 detail += QLatin1String("object->") + Q(functionToCall.constData()) + 226 QLatin1String("(\"" + name + prototype + ); 226 227 if (hasParams) 227 228 detail += QLatin1String(", params"); 228 detail += QLatin1 String(")");229 detail += QLatin1); 229 230 if (returntype != "void" && returntype != "QAxObject *" && returntype != "QVariant") 230 detail += QLatin1 String(".") + QString::fromLatin1(toType(returntype));231 detail += QLatin1(toType(returntype)); 231 232 detail += QLatin1String(";</pre>\n"); 232 233 } else { … … 263 264 stream << "<li>void <a href=\"#" << name << "\"><b>" << name << "</b></a>" << prototype << ";</li>" << endl; 264 265 265 QString detail = QLatin1String("<h3><a name=") + Q String::fromLatin1(name.constData()) + QLatin1String("></a>void ") +266 Q String::fromLatin1(name.constData()) + QLatin1String(" ") +267 Q String::fromLatin1(prototype.constData()) + QLatin1String("<tt> [signal]</tt></h3>\n");266 QString detail = QLatin1String("<h3><a name=") + Q(name.constData()) + QLatin1String("></a>void ") + 267 Q) + 268 Q(prototype.constData()) + QLatin1String("<tt> [signal]</tt></h3>\n"); 268 269 if (typeLib) { 269 270 interCount = 0; … … 312 313 stream << "<li>" << type << " <a href=\"#" << name << "\"><b>" << name << "</b></a>;</li>" << endl; 313 314 QString detail = QLatin1String("<h3><a name=") + QString::fromLatin1(name.constData()) + QLatin1String("></a>") + 314 Q String::fromLatin1(type.constData()) +315 QLatin1 String(" ") + QString::fromLatin1(name.constData()) + QLatin1String("</h3>\n");315 Q(type.constData()) + 316 QLatin1(name.constData()) + QLatin1String("</h3>\n"); 316 317 detail += docuFromName(typeInfo, QString::fromLatin1(name)); 317 318 QVariant::Type vartype = QVariant::nameToType(type); … … 327 328 detail += QLatin1String("\tint val = "); 328 329 else 329 detail += QLatin1 String("\t") + QString::fromLatin1(type.constData()) + QLatin1String(" val = ");330 detail += QLatin1String("object->property(\"") + Q String::fromLatin1(name.constData()) +331 QLatin1String("\").") + Q String::fromLatin1(toType(type).constData()) + QLatin1String(";\n");330 detail += QLatin1(type.constData()) + QLatin1String(" val = "); 331 detail += QLatin1String("object->property(\"") + Q(name.constData()) + 332 QLatin1String("\").") + Q(toType(type).constData()) + QLatin1String(";\n"); 332 333 detail += QLatin1String("</pre>\n"); 333 334 } else if (type == "IDispatch*" || type == "IUnknown*") { 334 335 detail += QLatin1String("<p>Get the subobject using querySubObject:<pre>\n"); 335 detail += QLatin1String("\tQAxObject *") + Q String::fromLatin1(name.constData()) +336 QLatin1String(" = object->querySubObject(\"") + Q String::fromLatin1(name.constData()) + QLatin1String("\");\n");336 detail += QLatin1String("\tQAxObject *") + Q(name.constData()) + 337 QLatin1String(" = object->querySubObject(\"") + Q(name.constData()) + QLatin1String("\");\n"); 337 338 detail += QLatin1String("</pre>\n"); 338 339 } else {
Note:
See TracChangeset
for help on using the changeset viewer.