Changeset 846 for trunk/src/activeqt


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

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/activeqt/container/container.pro

    r561 r846  
    2020LIBS    += -lole32 -loleaut32
    2121!wince*:LIBS    += -luser32 -lgdi32 -ladvapi32
    22 win32-g++:LIBS += -luuid
     22win32-g++*:LIBS += -luuid
    2323
    2424HEADERS =   ../control/qaxaggregated.h \
  • trunk/src/activeqt/container/qaxbase.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    13541354
    13551355// There seams to be a naming problem in mingw headers
    1356 #ifdef Q_CC_GNU
    1357 #ifndef COAUTHIDENTITY
     1356#if defined(Q_CC_GNU) && !defined(COAUTHIDENTITY) && !defined(__MINGW64_VERSION_MAJOR)
    13581357#define COAUTHIDENTITY AUTH_IDENTITY
    1359 #endif
    13601358#endif
    13611359
     
    16741672        switch(vartype) {
    16751673        case QVariant::Invalid:
     1674        case QVariant::UserType:
    16761675            if (prop.type == "QVariant") {
    16771676                prop.typeId |= 0xff << 24;
    16781677                break;
    16791678            }
    1680             // fall through
    1681         case QVariant::UserType:
    16821679            if (QMetaType::type(prop.type) == -1)
    16831680                qWarning("QAxBase: Unsupported property type: %s", prop.type.data());
     
    25442541            }
    25452542            if (funcdesc->invkind == INVOKE_PROPERTYPUT) {
     2543                // remove the typename guessed for property setters
     2544                // its done only for setter's with more than one parameter.
     2545                if (funcdesc->cParams - funcdesc->cParamsOpt > 1) {
     2546                    type.clear();
     2547                }
    25462548                QByteArray set;
    25472549                if (isupper(prototype.at(0))) {
  • trunk/src/activeqt/container/qaxbase.h

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/activeqt/container/qaxdump.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/activeqt/container/qaxobject.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/activeqt/container/qaxobject.h

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/activeqt/container/qaxscript.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/activeqt/container/qaxscript.h

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/activeqt/container/qaxscriptwrapper.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/activeqt/container/qaxselect.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/activeqt/container/qaxselect.h

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/activeqt/container/qaxselect.ui

    r651 r846  
    33  <comment>*********************************************************************
    44**
    5 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     5** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    66** All rights reserved.
    77** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/activeqt/container/qaxwidget.cpp

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    7878
    7979// missing interface from win32api
    80 #if defined(Q_CC_GNU)
    81 #   if !defined(IOleInPlaceObjectWindowless)
    82 #       undef INTERFACE
    83 #       define INTERFACE IOleInPlaceObjectWindowless
    84         DECLARE_INTERFACE_(IOleInPlaceObjectWindowless,IOleInPlaceObject)
    85         {
    86            STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
    87            STDMETHOD_(ULONG,AddRef)(THIS) PURE;
    88            STDMETHOD_(ULONG,Release)(THIS) PURE;
    89            STDMETHOD(GetWindow)(THIS_ HWND*) PURE;
    90            STDMETHOD(ContextSensitiveHelp)(THIS_ BOOL) PURE;
    91            STDMETHOD(InPlaceDeactivate)(THIS) PURE;
    92            STDMETHOD(UIDeactivate)(THIS) PURE;
    93            STDMETHOD(SetObjectRects)(THIS_ LPCRECT,LPCRECT) PURE;
    94            STDMETHOD(ReactivateAndUndo)(THIS) PURE;
    95            STDMETHOD(OnWindowMessage)(THIS_ UINT, WPARAM, LPARAM, LRESULT*) PURE;
    96            STDMETHOD(GetDropTarget)(THIS_ IDropTarget**) PURE;
    97         };
    98 #   endif
     80#if defined(Q_CC_GNU) && !defined(__MINGW64_VERSION_MAJOR)
     81    DECLARE_INTERFACE_(IOleInPlaceObjectWindowless,IOleInPlaceObject)
     82    {
     83       STDMETHOD(QueryInterface)(THIS_ REFIID,PVOID*) PURE;
     84       STDMETHOD_(ULONG,AddRef)(THIS) PURE;
     85       STDMETHOD_(ULONG,Release)(THIS) PURE;
     86       STDMETHOD(GetWindow)(THIS_ HWND*) PURE;
     87       STDMETHOD(ContextSensitiveHelp)(THIS_ BOOL) PURE;
     88       STDMETHOD(InPlaceDeactivate)(THIS) PURE;
     89       STDMETHOD(UIDeactivate)(THIS) PURE;
     90       STDMETHOD(SetObjectRects)(THIS_ LPCRECT,LPCRECT) PURE;
     91       STDMETHOD(ReactivateAndUndo)(THIS) PURE;
     92       STDMETHOD(OnWindowMessage)(THIS_ UINT, WPARAM, LPARAM, LRESULT*) PURE;
     93       STDMETHOD(GetDropTarget)(THIS_ IDropTarget**) PURE;
     94    };
    9995#endif
    10096
     
    10131009    }
    10141010    // ActiveQt based in-processes-servers will handle the event properly, so
    1015     // we dont need to send this key event to the host.
     1011    // we don't need to send this key event to the host.
    10161012    return S_OK;
    10171013}
  • trunk/src/activeqt/container/qaxwidget.h

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/activeqt/control/control.pro

    r561 r846  
    1616
    1717CONFIG  += qt warn_off staticlib
    18 QTDIR_build:DESTDIR  = $$QT_BUILD_TREE\lib
     18QTDIR_build:DESTDIR  = $$QT_BUILD_TREE\\lib
    1919
    2020DEFINES += QAX_SERVER
    21 win32-g++:DEFINES += QT_NEEDS_QMAIN
     21win32-g++*:DEFINES += QT_NEEDS_QMAIN
    2222win32-borland:DEFINES += QT_NEEDS_QMAIN
    2323
    2424LIBS    += -luser32 -lole32 -loleaut32 -lgdi32
    25 win32-g++:LIBS += -luuid
     25win32-g++*:LIBS += -luuid
    2626
    2727HEADERS =   qaxaggregated.h \
  • trunk/src/activeqt/control/qaxaggregated.h

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/activeqt/control/qaxbindable.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    255255    be destroyed by the ActiveQt framework at any time.
    256256
    257     \sa QAxBindable, QAxFactory, {ActiveQt Framework}
     257    \sa QAxBindable, QAxFactory, {Qt's ActiveX Framework (ActiveQt)}
    258258*/
    259259
  • trunk/src/activeqt/control/qaxbindable.h

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/activeqt/control/qaxfactory.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/activeqt/control/qaxfactory.h

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/activeqt/control/qaxmain.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/activeqt/control/qaxserver.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/activeqt/control/qaxserverbase.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    161161    void removeMenu();
    162162
    163     static LRESULT CALLBACK ActiveXProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
     163    static LRESULT QT_WIN_CALLBACK ActiveXProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
    164164
    165165// Object registration with OLE
     
    765765
    766766// callback for DLL server to hook into non-Qt eventloop
    767 LRESULT CALLBACK axs_FilterProc(int nCode, WPARAM wParam, LPARAM lParam)
     767LRESULT QT_WIN_CALLBACK axs_FilterProc(int nCode, WPARAM wParam, LPARAM lParam)
    768768{
    769769    if (qApp && !invokeCount)
     
    13511351    The semantics of \a wParam and \a lParam depend on the value of \a uMsg.
    13521352*/
    1353 LRESULT CALLBACK QAxServerBase::ActiveXProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
     1353LRESULT QT_WIN_CALLBACK QAxServerBase::ActiveXProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
    13541354{
    13551355    if (uMsg == WM_CREATE) {
     
    15371537    EnterCriticalSection(&createWindowSection);
    15381538    QString cn(QLatin1String("QAxControl"));
    1539     cn += QString::number((int)ActiveXProc);
     1539    cn += QString::number((quintptr)ActiveXProc);
    15401540    if (!atom) {
    15411541        WNDCLASS wcTemp;
     
    16001600        if (flags & MF_POPUP) {
    16011601            itemId = static_cast<ushort>(
    1602                 reinterpret_cast<ulong>(createPopup(action->menu()))
     1602                reinterpret_cast<quintptr>(createPopup(action->menu()))
    16031603            );
    16041604        } else {
    1605             itemId = static_cast<ushort>(reinterpret_cast<ulong>(action));
     1605            itemId = static_cast<ushort>(reinterpret_cast<quintptr>(action));
    16061606            actionMap.remove(itemId);
    16071607            actionMap.insert(itemId, action);
     
    16471647        if (flags & MF_POPUP) {
    16481648            itemId = static_cast<ushort>(
    1649                 reinterpret_cast<ulong>(createPopup(action->menu()))
     1649                reinterpret_cast<quintptr>(createPopup(action->menu()))
    16501650            );
    16511651        } else {
    1652             itemId = static_cast<ushort>(reinterpret_cast<ulong>(action));
     1652            itemId = static_cast<ushort>(reinterpret_cast<quintptr>(action));
    16531653            actionMap.insert(itemId, action);
    16541654        }
     
    27312731        ULONG read;
    27322732        pStm->Read(qtarray.data(), stat.cbSize.LowPart, &read);
     2733    } else if (hres == E_NOTIMPL) {
     2734        ULONG read = 0;
     2735        while (hres != S_FALSE) {
     2736            QByteArray arrayRead;
     2737            arrayRead.resize(4098);
     2738            hres = pStm->Read(arrayRead.data(), arrayRead.size(), &read);
     2739            if (hres != S_OK && hres != S_FALSE) {
     2740                qtarray.resize(0);
     2741                break;
     2742            } else if (read == 0)
     2743                break;
     2744            qtarray.append(arrayRead);
     2745        }
    27332746    }
    27342747    const QMetaObject *mo = qt.object->metaObject();
  • trunk/src/activeqt/control/qaxserverdll.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/activeqt/control/qaxservermain.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
  • trunk/src/activeqt/shared/qaxtypes.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    5353#ifdef QAX_SERVER
    5454#   include <qaxfactory.h>
    55 #   include <qlibrary.h>
     55#   include <private/qsystemlibrary_p.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 column 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)QSystemLibrary::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) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
Note: See TracChangeset for help on using the changeset viewer.