source: orange/install-scripts/mac/fink/pyqwt-mac-py.patch @ 6529:b64a671476f8

Revision 6529:b64a671476f8, 2.8 KB checked in by Mitar <Mitar@…>, 4 years ago (diff)

Patched PyQwt for Qt3 for new PyQt version.

  • sip/qwt4qt3/QwtArrayQwtDoublePoint.sip

    diff -Naur PyQwt-4.2.3.orig/sip/qwt4qt3/QwtArrayQwtDoublePoint.sip PyQwt-4.2.3/sip/qwt4qt3/QwtArrayQwtDoublePoint.sip
    old new  
    5151    for (int i = 0; i < PyList_GET_SIZE(a0); ++i) { 
    5252        QwtDoublePoint *item = 
    5353            reinterpret_cast<QwtDoublePoint *>( 
    54                 sipForceConvertTo_QwtDoublePoint( 
    55                     PyList_GET_ITEM(a0, i), &failed)); 
     54                sipForceConvertToType(PyList_GET_ITEM(a0, i), sipType_QwtDoublePoint, NULL, NULL, NULL, &failed)); 
     55 
    5656                     
    5757        if (failed) { 
    5858            return 0; 
  • sip/qwt4qt3/QwtModule.sip

    diff -Naur PyQwt-4.2.3.orig/sip/qwt4qt3/QwtModule.sip PyQwt-4.2.3/sip/qwt4qt3/QwtModule.sip
    old new  
    7373 
    7474// Converter code 
    7575%Include common/QwtMap.sip 
    76 %Include common/QwtMemArray.sip 
    7776%Include common/QwtValueStack.sip 
    7877%Include common/QwtValueList.sip 
    7978 
  • sip/qwt4qt3/common/QwtMap.sip

    diff -Naur PyQwt-4.2.3.orig/sip/qwt4qt3/common/QwtMap.sip PyQwt-4.2.3/sip/qwt4qt3/common/QwtMap.sip
    old new  
    7777    while (PyDict_Next(sipPy, &i, &key, &val)) { 
    7878        double cKey = PyFloat_AS_DOUBLE(key); 
    7979        QString *cVal = reinterpret_cast<QString *>( 
    80             sipForceConvertTo_QString(val, sipIsErr)); 
     80            sipForceConvertToType(val, sipType_QString, NULL, NULL, NULL, sipIsErr)); 
    8181 
    8282        if (*sipIsErr) { 
    8383            delete map; 
  • sip/qwt4qt3/qwt_plot.sip

    diff -Naur PyQwt-4.2.3.orig/sip/qwt4qt3/qwt_plot.sip PyQwt-4.2.3/sip/qwt4qt3/qwt_plot.sip
    old new  
    8989    const QColor& canvasBackground() const; 
    9090    void setCanvasLineWidth(int); 
    9191    int canvasLineWidth() const; 
    92     QwtPlotCurveIterator curveIterator() const; 
    93     QwtPlotMarkerIterator markerIterator() const; 
    9492    QwtDiMap canvasMap(int) const; 
    9593    double invTransform(int, int) const; 
    9694    int transform(int, double) const; 
  • sip/qwt4qt3/qwt_slider.sip

    diff -Naur PyQwt-4.2.3.orig/sip/qwt4qt3/qwt_slider.sip PyQwt-4.2.3/sip/qwt4qt3/qwt_slider.sip
    old new  
    8888%If (HAS_QWT4) 
    8989%ConvertToSubClassCode 
    9090    static struct class_graph { 
    91         char *name; 
     91        const char *name; 
    9292        sipWrapperType **type; 
    9393        int yes, no; 
    9494    } graph[] = { 
Note: See TracBrowser for help on using the repository browser.