aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtCore/qstringref_conversions.h
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2010-06-03 15:34:17 -0300
committerHugo Parente Lima <hugo.lima@openbossa.org>2010-06-10 14:57:41 -0300
commite39bfefde9edda662f51eeaf9a482f209c7f1217 (patch)
treea4add52f8ca3460fcaed99c6d9c7fc810f341a49 /PySide/QtCore/qstringref_conversions.h
parent24a944590663582df72aefd1929ec19ba3c6414f (diff)
Remove wrapper for classes: QString, QStringRef, QLatin1String, QStringMatcher, QChar and QLatin1Char.
Diffstat (limited to 'PySide/QtCore/qstringref_conversions.h')
-rw-r--r--PySide/QtCore/qstringref_conversions.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/PySide/QtCore/qstringref_conversions.h b/PySide/QtCore/qstringref_conversions.h
new file mode 100644
index 000000000..11e1b9c62
--- /dev/null
+++ b/PySide/QtCore/qstringref_conversions.h
@@ -0,0 +1,19 @@
+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)
+ {
+ const QString* str = cppObj.string();
+ return Converter<QString>::toPython(*str);
+ }
+
+ static QStringRef toCpp(PyObject* pyObj)
+ {
+ return QStringRef();
+ }
+};
+}