Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/activeqt/shared/qaxtypes.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    5353#ifdef QAX_SERVER
    5454#   include <qaxfactory.h>
    55 #   include <qlibrary.h>
     55#   include <.h>
    5656#else
    5757#   include <quuid.h>
     
    548548            bool is2D = false;
    549549            // If the first element in the array is a list the whole list is
    550             // treated as a 2D array. The colum count is taken from the 1st element.
     550            // treated as a 2D array. The colum count is taken from the 1st element.
    551551            if (count) {
    552552                QVariantList col = list.at(0).toList();
     
    667667            if (!resolved) {
    668668                resolved = true;
    669                 pGetRecordInfoFromTypeInfo = (PGetRecordInfoFromTypeInfo)QLibrary::resolve(QLatin1String("oleaut32"),
     669                pGetRecordInfoFromTypeInfo = (PGetRecordInfoFromTypeInfo)QLibrary::resolve(QLatin1String("oleaut32"),
    670670                                              "GetRecordInfoFromTypeInfo");
    671671            }
     
    13771377   
    13781378    QVariant::Type proptype = (QVariant::Type)type;
    1379     if (proptype == QVariant::Invalid && !typeName.isEmpty())
    1380         proptype = QVariant::nameToType(typeName);
     1379    if (proptype == QVariant::Invalid && !typeName.isEmpty()) {
     1380        if (typeName != "QVariant")
     1381            proptype = QVariant::nameToType(typeName);
     1382    }
    13811383    if (proptype != QVariant::LastType && proptype != QVariant::Invalid && var.type() != proptype) {
    13821384        if (var.canConvert(proptype)) {
  • trunk/src/activeqt/shared/qaxtypes.h

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
Note: See TracChangeset for help on using the changeset viewer.