##// END OF EJS Templates
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well...
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@52 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r16:c68e0aff542c
Show More
PythonQtWrapper_QStringListModel.h
38 lines | 1.7 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QSTRINGLISTMODEL_H
#define PYTHONQTWRAPPER_QSTRINGLISTMODEL_H
#include <qstringlistmodel.h>
#include <QObject>
#include <QVariant>
#include <qabstractitemmodel.h>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qdatastream.h>
#include <qlist.h>
#include <qmimedata.h>
#include <qobject.h>
#include <qsize.h>
#include <qstringlist.h>
#include <qstringlistmodel.h>
class PythonQtWrapper_QStringListModel : public QObject
{ Q_OBJECT
public:
public slots:
QStringListModel* new_QStringListModel(QObject* parent = 0);
QStringListModel* new_QStringListModel(const QStringList& strings, QObject* parent = 0);
void delete_QStringListModel(QStringListModel* obj) { delete obj; }
QVariant data(QStringListModel* theWrappedObject, const QModelIndex& index, int role) const;
Qt::ItemFlags flags(QStringListModel* theWrappedObject, const QModelIndex& index) const;
bool insertRows(QStringListModel* theWrappedObject, int row, int count, const QModelIndex& parent = QModelIndex());
bool removeRows(QStringListModel* theWrappedObject, int row, int count, const QModelIndex& parent = QModelIndex());
int rowCount(QStringListModel* theWrappedObject, const QModelIndex& parent = QModelIndex()) const;
bool setData(QStringListModel* theWrappedObject, const QModelIndex& index, const QVariant& value, int role = Qt::EditRole);
void setStringList(QStringListModel* theWrappedObject, const QStringList& strings);
void sort(QStringListModel* theWrappedObject, int column, Qt::SortOrder order = Qt::AscendingOrder);
QStringList stringList(QStringListModel* theWrappedObject) const;
Qt::DropActions supportedDropActions(QStringListModel* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QSTRINGLISTMODEL_H