Changeset 561 for trunk/src/activeqt/shared
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 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/shared/qaxtypes.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. … … 38 39 ****************************************************************************/ 39 40 40 #ifndef UNICODE41 #define UNICODE42 #endif43 44 45 41 #include <ocidl.h> 46 42 #include <olectl.h> … … 124 120 f->get_Underline(&underline); 125 121 f->get_Weight(&weight); 126 QFont font(QString::from Utf16((const ushort *)name), size.Lo/9750, weight / 97, italic);122 QFont font(QString::fromname), size.Lo/9750, weight / 97, italic); 127 123 font.setBold(bold); 128 124 font.setStrikeOut(strike); … … 558 554 if (maxColumns) { 559 555 is2D = true; 560 SAFEARRAYBOUND rgsabound[2] = { 0};556 SAFEARRAYBOUND rgsabound[2] = {}; 561 557 rgsabound[0].cElements = count; 562 558 rgsabound[1].cElements = maxColumns; … … 926 922 switch(arg.vt) { 927 923 case VT_BSTR: 928 var = QString::from Utf16((const ushort *)arg.bstrVal);924 var = QString::fromarg.bstrVal); 929 925 break; 930 926 case VT_BSTR|VT_BYREF: 931 var = QString::from Utf16((const ushort *)*arg.pbstrVal);927 var = QString::from*arg.pbstrVal); 932 928 break; 933 929 case VT_BOOL: … … 1112 1108 QObject *qObj = iface->qObject(); 1113 1109 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); 1115 1111 } else 1116 1112 #endif … … 1246 1242 BSTR bstr; 1247 1243 SafeArrayGetElement(array, &i, &bstr); 1248 strings << QString::from Utf16((const ushort *)bstr);1244 strings << QString::frombstr); 1249 1245 SysFreeString(bstr); 1250 1246 } -
trunk/src/activeqt/shared/qaxtypes.h
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. … … 90 91 extern void clearVARIANT(VARIANT *var); 91 92 93 94 95 92 96 QT_END_NAMESPACE 93 97 #endif // QT_NO_WIN_ACTIVEQT
Note:
See TracChangeset
for help on using the changeset viewer.