Exemplo n.º 1
0
static PyObject *slot_QTextItem_RenderFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QTextItem::RenderFlags *sipCpp = reinterpret_cast< ::QTextItem::RenderFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextItem_RenderFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::QTextItem::RenderFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextItem_RenderFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 372 "sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QTextItem::RenderFlags::Int() != a0->operator QTextItem::RenderFlags::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 89 "/home/thais/Faculdade/TCC/NEW/PyQt4_gpl_x11-4.12/QtGui/sipQtGuiQTextItemRenderFlags.cpp"
            sipReleaseType(const_cast< ::QTextItem::RenderFlags *>(a0),sipType_QTextItem_RenderFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui, ne_slot, sipType_QTextItem_RenderFlags, sipSelf, sipArg);
}
static PyObject *slot_QPageSetupDialog_PageSetupDialogOptions___invert__(PyObject *sipSelf)
{
    QPageSetupDialog::PageSetupDialogOptions *sipCpp = reinterpret_cast<QPageSetupDialog::PageSetupDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPageSetupDialog_PageSetupDialogOptions));

    if (!sipCpp)
        return 0;


    {
        {
            QPageSetupDialog::PageSetupDialogOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QPageSetupDialog::PageSetupDialogOptions(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QPageSetupDialog_PageSetupDialogOptions,NULL);
        }
    }

    return 0;
}
static int slot_QPageSetupDialog_PageSetupDialogOptions___bool__(PyObject *sipSelf)
{
    QPageSetupDialog::PageSetupDialogOptions *sipCpp = reinterpret_cast<QPageSetupDialog::PageSetupDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPageSetupDialog_PageSetupDialogOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QPageSetupDialog::PageSetupDialogOptions::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 60 "/Users/ktaylora/PLJV/tillage_likelihood_model/gui/PyQt4/QtGui/sipQtGuiQPageSetupDialogPageSetupDialogOptions.cpp"

            return sipRes;
        }
    }

    return 0;
}
static PyObject *slot_QDirIterator_IteratorFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QDirIterator_IteratorFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QDirIterator::IteratorFlags *sipCpp = reinterpret_cast<QDirIterator::IteratorFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDirIterator_IteratorFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QDirIterator::IteratorFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QDirIterator_IteratorFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QDirIterator::IteratorFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QDirIterator_IteratorFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}
static PyObject *slot_QDirIterator_IteratorFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QDirIterator::IteratorFlags *sipCpp = reinterpret_cast<QDirIterator::IteratorFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDirIterator_IteratorFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QDirIterator::IteratorFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QDirIterator_IteratorFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 331 "/home/tsheasha/GUC/Bachelors/android-python27/python-build/PyQt-x11-gpl-4.8/sip/QtCore/qglobal.sip"
            sipRes = (sipCpp->operator int() != a0->operator int());
#line 89 "sipQtCoreQDirIteratorIteratorFlags.cpp"
            sipReleaseType(const_cast<QDirIterator::IteratorFlags *>(a0),sipType_QDirIterator_IteratorFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtCore,ne_slot,sipType_QDirIterator_IteratorFlags,sipSelf,sipArg);
}
static PyObject *slot_QOpenGLDebugMessage_Types___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLDebugMessage_Types)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLDebugMessage::Types *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Types *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Types));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QOpenGLDebugMessage::Types::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}
static PyObject *slot_QDirIterator_IteratorFlags___invert__(PyObject *sipSelf)
{
    QDirIterator::IteratorFlags *sipCpp = reinterpret_cast<QDirIterator::IteratorFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDirIterator_IteratorFlags));

    if (!sipCpp)
        return 0;


    {
        {
            QDirIterator::IteratorFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDirIterator::IteratorFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QDirIterator_IteratorFlags,NULL);
        }
    }
}
static PyObject *slot_QPainter_PixmapFragmentHints___int__(PyObject *sipSelf)
{
    QPainter::PixmapFragmentHints *sipCpp = reinterpret_cast<QPainter::PixmapFragmentHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_PixmapFragmentHints));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}
static int slot_QPainter_PixmapFragmentHints___bool__(PyObject *sipSelf)
{
    QPainter::PixmapFragmentHints *sipCpp = reinterpret_cast<QPainter::PixmapFragmentHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_PixmapFragmentHints));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QPainter::PixmapFragmentHints::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 60 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/QtGui/sipQtGuiQPainterPixmapFragmentHints.cpp"

            return sipRes;
        }
    }

    return 0;
}
static int slot_QTextCodec_ConversionFlags___bool__(PyObject *sipSelf)
{
    QTextCodec::ConversionFlags *sipCpp = reinterpret_cast<QTextCodec::ConversionFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextCodec_ConversionFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QTextCodec::ConversionFlags::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 60 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/QtCore/sipQtCoreQTextCodecConversionFlags.cpp"

            return sipRes;
        }
    }

    return 0;
}
static PyObject *slot_QPainter_PixmapFragmentHints___invert__(PyObject *sipSelf)
{
    QPainter::PixmapFragmentHints *sipCpp = reinterpret_cast<QPainter::PixmapFragmentHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_PixmapFragmentHints));

    if (!sipCpp)
        return 0;


    {
        {
            QPainter::PixmapFragmentHints*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QPainter::PixmapFragmentHints(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QPainter_PixmapFragmentHints,NULL);
        }
    }

    return 0;
}
static PyObject *slot_QTextCodec_ConversionFlags___int__(PyObject *sipSelf)
{
    QTextCodec::ConversionFlags *sipCpp = reinterpret_cast<QTextCodec::ConversionFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextCodec_ConversionFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}
static PyObject *slot_QTextCodec_ConversionFlags___invert__(PyObject *sipSelf)
{
    QTextCodec::ConversionFlags *sipCpp = reinterpret_cast<QTextCodec::ConversionFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextCodec_ConversionFlags));

    if (!sipCpp)
        return 0;


    {
        {
            QTextCodec::ConversionFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QTextCodec::ConversionFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QTextCodec_ConversionFlags,NULL);
        }
    }

    return 0;
}
static PyObject *slot_QTextCodec_ConversionFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextCodec::ConversionFlags *sipCpp = reinterpret_cast<QTextCodec::ConversionFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextCodec_ConversionFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextCodec::ConversionFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextCodec_ConversionFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 352 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QTextCodec::ConversionFlags::Int() == a0->operator QTextCodec::ConversionFlags::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 134 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/QtCore/sipQtCoreQTextCodecConversionFlags.cpp"
            sipReleaseType(const_cast<QTextCodec::ConversionFlags *>(a0),sipType_QTextCodec_ConversionFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtCore,eq_slot,sipType_QTextCodec_ConversionFlags,sipSelf,sipArg);
}
static PyObject *slot_QOpenGLDebugMessage_Types___int__(PyObject *sipSelf)
{
    QOpenGLDebugMessage::Types *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Types *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Types));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}
static PyObject *slot_QPainter_PixmapFragmentHints___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QPainter::PixmapFragmentHints *sipCpp = reinterpret_cast<QPainter::PixmapFragmentHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_PixmapFragmentHints));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPainter::PixmapFragmentHints* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPainter_PixmapFragmentHints, &a0, &a0State))
        {
            bool sipRes = 0;

#line 361 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QPainter::PixmapFragmentHints::Int() != a0->operator QPainter::PixmapFragmentHints::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 94 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/QtGui/sipQtGuiQPainterPixmapFragmentHints.cpp"
            sipReleaseType(const_cast<QPainter::PixmapFragmentHints *>(a0),sipType_QPainter_PixmapFragmentHints,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QPainter_PixmapFragmentHints,sipSelf,sipArg);
}
static int slot_QOpenGLDebugMessage_Types___bool__(PyObject *sipSelf)
{
    QOpenGLDebugMessage::Types *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Types *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Types));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Types::Int() != 0);
#line 51 "C:\\Users\\marcus\\Downloads\\PyQt-gpl-5.4\\PyQt-gpl-5.4\\QtGui/sipQtGuiQOpenGLDebugMessageTypes.cpp"

            return sipRes;
        }
    }

    return 0;
}
static PyObject *slot_QFontDialog_FontDialogOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QFontDialog::FontDialogOptions *sipCpp = reinterpret_cast<QFontDialog::FontDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QFontDialog_FontDialogOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QFontDialog::FontDialogOptions * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QFontDialog_FontDialogOptions, &a0, &a0State))
        {
            bool sipRes = 0;

#line 326 "/home/tsheasha/GUC/Bachelors/android-python27/python-build/PyQt-x11-gpl-4.8/sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator int() == a0->operator int());
#line 125 "sipQtGuiQFontDialogFontDialogOptions.cpp"
            sipReleaseType(const_cast<QFontDialog::FontDialogOptions *>(a0),sipType_QFontDialog_FontDialogOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QFontDialog_FontDialogOptions,sipSelf,sipArg);
}
static PyObject *slot_QOpenGLDebugMessage_Types___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QOpenGLDebugMessage::Types *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Types *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Types));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QOpenGLDebugMessage::Types* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLDebugMessage_Types, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Types::Int() == a0->operator QOpenGLDebugMessage::Types::Int());
#line 117 "C:\\Users\\marcus\\Downloads\\PyQt-gpl-5.4\\PyQt-gpl-5.4\\QtGui/sipQtGuiQOpenGLDebugMessageTypes.cpp"
            sipReleaseType(const_cast<QOpenGLDebugMessage::Types *>(a0),sipType_QOpenGLDebugMessage_Types,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QOpenGLDebugMessage_Types,sipSelf,sipArg);
}
static PyObject *slot_QNetworkSession_UsagePolicies___invert__(PyObject *sipSelf)
{
    QNetworkSession::UsagePolicies *sipCpp = reinterpret_cast<QNetworkSession::UsagePolicies *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkSession_UsagePolicies));

    if (!sipCpp)
        return 0;


    {
        {
            QNetworkSession::UsagePolicies*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QNetworkSession::UsagePolicies(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QNetworkSession_UsagePolicies,NULL);
        }
    }

    return 0;
}
static PyObject *slot_QDirIterator_IteratorFlags___int__(PyObject *sipSelf)
{
    QDirIterator::IteratorFlags *sipCpp = reinterpret_cast<QDirIterator::IteratorFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDirIterator_IteratorFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }
}
static PyObject *slot_QNetworkSession_UsagePolicies___int__(PyObject *sipSelf)
{
    QNetworkSession::UsagePolicies *sipCpp = reinterpret_cast<QNetworkSession::UsagePolicies *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkSession_UsagePolicies));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}
static int slot_QDirIterator_IteratorFlags___bool__(PyObject *sipSelf)
{
    QDirIterator::IteratorFlags *sipCpp = reinterpret_cast<QDirIterator::IteratorFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDirIterator_IteratorFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 336 "/home/tsheasha/GUC/Bachelors/android-python27/python-build/PyQt-x11-gpl-4.8/sip/QtCore/qglobal.sip"
            sipRes = (sipCpp->operator int() != 0);
#line 61 "sipQtCoreQDirIteratorIteratorFlags.cpp"

            return sipRes;
        }
    }
}
static int slot_QNetworkSession_UsagePolicies___bool__(PyObject *sipSelf)
{
    QNetworkSession::UsagePolicies *sipCpp = reinterpret_cast<QNetworkSession::UsagePolicies *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkSession_UsagePolicies));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 389 "sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QNetworkSession::UsagePolicies::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 55 "/home/vikky/Desktop/DVCS/stuff/scrapy/soft/PyQt-x11-gpl-4.11.4/QtNetwork/sipQtNetworkQNetworkSessionUsagePolicies.cpp"

            return sipRes;
        }
    }

    return 0;
}
static PyObject *slot_QPageSetupDialog_PageSetupDialogOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QPageSetupDialog::PageSetupDialogOptions *sipCpp = reinterpret_cast<QPageSetupDialog::PageSetupDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPageSetupDialog_PageSetupDialogOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPageSetupDialog::PageSetupDialogOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPageSetupDialog_PageSetupDialogOptions, &a0, &a0State))
        {
            bool sipRes = 0;

#line 352 "sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QPageSetupDialog::PageSetupDialogOptions::Int() == a0->operator QPageSetupDialog::PageSetupDialogOptions::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 134 "/Users/ktaylora/PLJV/tillage_likelihood_model/gui/PyQt4/QtGui/sipQtGuiQPageSetupDialogPageSetupDialogOptions.cpp"
            sipReleaseType(const_cast<QPageSetupDialog::PageSetupDialogOptions *>(a0),sipType_QPageSetupDialog_PageSetupDialogOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QPageSetupDialog_PageSetupDialogOptions,sipSelf,sipArg);
}
static PyObject *slot_QNetworkSession_UsagePolicies___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QNetworkSession::UsagePolicies *sipCpp = reinterpret_cast<QNetworkSession::UsagePolicies *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QNetworkSession_UsagePolicies));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QNetworkSession::UsagePolicies* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QNetworkSession_UsagePolicies, &a0, &a0State))
        {
            bool sipRes = 0;

#line 380 "sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QNetworkSession::UsagePolicies::Int() != a0->operator QNetworkSession::UsagePolicies::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 89 "/home/vikky/Desktop/DVCS/stuff/scrapy/soft/PyQt-x11-gpl-4.11.4/QtNetwork/sipQtNetworkQNetworkSessionUsagePolicies.cpp"
            sipReleaseType(const_cast<QNetworkSession::UsagePolicies *>(a0),sipType_QNetworkSession_UsagePolicies,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtNetwork,ne_slot,sipType_QNetworkSession_UsagePolicies,sipSelf,sipArg);
}
static PyObject *slot_QPageSetupDialog_PageSetupDialogOptions___int__(PyObject *sipSelf)
{
    QPageSetupDialog::PageSetupDialogOptions *sipCpp = reinterpret_cast<QPageSetupDialog::PageSetupDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPageSetupDialog_PageSetupDialogOptions));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}
static PyObject *slot_QOpenGLDebugMessage_Types___invert__(PyObject *sipSelf)
{
    QOpenGLDebugMessage::Types *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Types *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Types));

    if (!sipCpp)
        return 0;


    {
        {
            QOpenGLDebugMessage::Types*sipRes;

            sipRes = new QOpenGLDebugMessage::Types(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Types,NULL);
        }
    }

    return 0;
}
static PyObject *slot_QPageSetupDialog_PageSetupDialogOptions___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QPageSetupDialog_PageSetupDialogOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QPageSetupDialog::PageSetupDialogOptions *sipCpp = reinterpret_cast<QPageSetupDialog::PageSetupDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPageSetupDialog_PageSetupDialogOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QPageSetupDialog::PageSetupDialogOptions::operator&=(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}
Exemplo n.º 30
0
static PyObject *slot_QTextItem_RenderFlags___int__(PyObject *sipSelf)
{
     ::QTextItem::RenderFlags *sipCpp = reinterpret_cast< ::QTextItem::RenderFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextItem_RenderFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}