Add qvector.cpp
Annotate for file src/lib/qvector.cpp
2010-02-04 tobias 1 #include "cl_smoke_qt.h"
09:22:53 ' 2
' 3 #include <QVector>
' 4 #include <QPoint>
' 5
' 6 extern "C" {
' 7
' 8 /** Construct a 0 sized QVector.
' 9 * Since the QVectorData is QVectorData::shared_null the template type does not matter.
' 10 * @return A null QVector
' 11 */
' 12 CL_SMOKE_QT_EXPORT void*
' 13 cl_smoke_make_qvector()
' 14 {
' 15 return new QVector<QPoint>();
' 16 }
' 17
' 18 /** Deletes a null QVector. i.e.: The QVectorData pointer is 0.
' 19 * @param qvector a null QVector
' 20 */
' 21 CL_SMOKE_QT_EXPORT void
' 22 cl_smoke_delete_qvector(void* qvector)
' 23 {
' 24 delete static_cast<QVector<QPoint>*>(qvector);
' 25 }
' 26
' 27 } // extern "C"