aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtCore/qstringref_conversions.h
blob: db3eefcae0e14b68581a8376f4a15d094aead9a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
namespace Shiboken {

template<>
struct Converter<QStringRef> : public Converter<QString>
{
    static PyObject* toPython(void* cppObj) { return toPython(*reinterpret_cast<QStringRef*>(cppObj)); }

    static PyObject* toPython(const QStringRef& cppObj)
    {
        return Converter<QString>::toPython(cppObj.toString());
    }

    static QStringRef toCpp(PyObject* pyObj)
    {
        return QStringRef();
    }
};
}