Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/activeqt/container/qaxdump.cpp

    r2 r561  
    22**
    33** 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])
    56**
    67** This file is part of the ActiveQt framework of the Qt Toolkit.
     
    6768        ulong helpContext;
    6869        HRESULT hres = typeInfo->GetDocumentation(memId, 0, &docStringBstr, &helpContext, &helpFileBstr);
    69         QString docString = QString::fromUtf16((const ushort *)docStringBstr);
    70         QString helpFile = QString::fromUtf16((const ushort *)helpFileBstr);
     70        QString docString = QString::fromdocStringBstr);
     71        QString helpFile = QString::fromhelpFileBstr);
    7172        SysFreeString(docStringBstr);
    7273        SysFreeString(helpFileBstr);
     
    9596
    9697        if (p < parameterNames.count())
    97             prototype += " " + parameterNames.at(p);
     98            prototype += + parameterNames.at(p);
    9899         
    99100        if (numDefArgs >= parameterTypes.count() - p)
     
    102103            prototype += ", ";
    103104    }
    104     prototype += ")";
     105    prototype += ;
    105106
    106107    return prototype;
     
    197198            prototype = namedPrototype(slot.parameterTypes(), slot.parameterNames());
    198199            QString detail = QString::fromLatin1("<h3><a name=") + QString::fromLatin1(name.constData()) + QLatin1String("></a>") +
    199                              QString::fromLatin1(returntype.constData()) + QLatin1String(" ") +
    200                              QString::fromLatin1(name.constData()) + QLatin1String(" ") +
     200                             Q) +
     201                             Q) +
    201202                             QString::fromLatin1(prototype.constData()) + QLatin1String("<tt> [slot]</tt></h3>\n");
    202203            prototype = namedPrototype(slot.parameterTypes(), QList<QByteArray>());
     
    221222                }
    222223                if (returntype != "void")
    223                     detail += QString::fromLatin1(returntype.constData()) + QLatin1String(" result = ");
    224                 detail += QLatin1String("object->") + QString::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 + );
    226227                if (hasParams)
    227228                    detail += QLatin1String(", params");
    228                 detail += QLatin1String(")");
     229                detail += QLatin1);
    229230                if (returntype != "void" && returntype != "QAxObject *" && returntype != "QVariant")
    230                     detail += QLatin1String(".") + QString::fromLatin1(toType(returntype));
     231                    detail += QLatin1(toType(returntype));
    231232                detail += QLatin1String(";</pre>\n");
    232233            } else {
     
    263264            stream << "<li>void <a href=\"#" << name << "\"><b>" << name << "</b></a>" << prototype << ";</li>" << endl;
    264265
    265             QString detail = QLatin1String("<h3><a name=") + QString::fromLatin1(name.constData()) + QLatin1String("></a>void ") +
    266                              QString::fromLatin1(name.constData()) + QLatin1String(" ") +
    267                              QString::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");
    268269            if (typeLib) {
    269270                interCount = 0;
     
    312313            stream << "<li>" << type << " <a href=\"#" << name << "\"><b>" << name << "</b></a>;</li>" << endl;
    313314            QString detail = QLatin1String("<h3><a name=") + QString::fromLatin1(name.constData()) + QLatin1String("></a>") +
    314                              QString::fromLatin1(type.constData()) +
    315                              QLatin1String(" ") + QString::fromLatin1(name.constData()) + QLatin1String("</h3>\n");
     315                             Q(type.constData()) +
     316                             QLatin1(name.constData()) + QLatin1String("</h3>\n");
    316317            detail += docuFromName(typeInfo, QString::fromLatin1(name));
    317318            QVariant::Type vartype = QVariant::nameToType(type);
     
    327328                    detail += QLatin1String("\tint val = ");
    328329                else
    329                     detail += QLatin1String("\t") + QString::fromLatin1(type.constData()) + QLatin1String(" val = ");
    330                 detail += QLatin1String("object->property(\"") + QString::fromLatin1(name.constData()) +
    331                           QLatin1String("\").") + QString::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");
    332333                detail += QLatin1String("</pre>\n");
    333334            } else if (type == "IDispatch*" || type == "IUnknown*") {
    334335                detail += QLatin1String("<p>Get the subobject using querySubObject:<pre>\n");
    335                 detail += QLatin1String("\tQAxObject *") + QString::fromLatin1(name.constData()) +
    336                           QLatin1String(" = object->querySubObject(\"") + QString::fromLatin1(name.constData()) + QLatin1String("\");\n");
     336                detail += QLatin1String("\tQAxObject *") + Q(name.constData()) +
     337                          QLatin1String(" = object->querySubObject(\"") + Q(name.constData()) + QLatin1String("\");\n");
    337338                detail += QLatin1String("</pre>\n");
    338339            } else {
Note: See TracChangeset for help on using the changeset viewer.