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:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/activeqt/shared/qaxtypes.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.
     
    3839****************************************************************************/
    3940
    40 #ifndef UNICODE
    41 #define UNICODE
    42 #endif
    43 
    44 
    4541#include <ocidl.h>
    4642#include <olectl.h>
     
    124120    f->get_Underline(&underline);
    125121    f->get_Weight(&weight);
    126     QFont font(QString::fromUtf16((const ushort *)name), size.Lo/9750, weight / 97, italic);
     122    QFont font(QString::fromname), size.Lo/9750, weight / 97, italic);
    127123    font.setBold(bold);
    128124    font.setStrikeOut(strike);
     
    558554                if (maxColumns) {
    559555                    is2D = true;
    560                     SAFEARRAYBOUND rgsabound[2] = {0};
     556                    SAFEARRAYBOUND rgsabound[2] = {};
    561557                    rgsabound[0].cElements = count;
    562558                    rgsabound[1].cElements = maxColumns;
     
    926922    switch(arg.vt) {
    927923    case VT_BSTR:
    928         var = QString::fromUtf16((const ushort *)arg.bstrVal);
     924        var = QString::fromarg.bstrVal);
    929925        break;
    930926    case VT_BSTR|VT_BYREF:
    931         var = QString::fromUtf16((const ushort *)*arg.pbstrVal);
     927        var = QString::from*arg.pbstrVal);
    932928        break;
    933929    case VT_BOOL:
     
    11121108                    QObject *qObj = iface->qObject();
    11131109                    iface->Release();
    1114                     var = QVariant(qRegisterMetaType<QObject*>(qObj ? QByteArray(qObj->metaObject()->className()) + "*" : typeName), &qObj);
     1110                    var = QVariant(qRegisterMetaType<QObject*>(qObj ? QByteArray(qObj->metaObject()->className()) + : typeName), &qObj);
    11151111                } else
    11161112#endif
     
    12461242                BSTR bstr;
    12471243                SafeArrayGetElement(array, &i, &bstr);
    1248                 strings << QString::fromUtf16((const ushort *)bstr);
     1244                strings << QString::frombstr);
    12491245                SysFreeString(bstr);
    12501246            }
  • trunk/src/activeqt/shared/qaxtypes.h

    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.
     
    9091extern void clearVARIANT(VARIANT *var);
    9192
     93
     94
     95
    9296QT_END_NAMESPACE
    9397#endif // QT_NO_WIN_ACTIVEQT
Note: See TracChangeset for help on using the changeset viewer.