##// END OF EJS Templates
- wrapped instances are now wrapped by class specific subtypes to facilitate future deriving from python...
- wrapped instances are now wrapped by class specific subtypes to facilitate future deriving from python - object creation has changed by using the python type system (calling the type object with PyObject_Call) git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@54 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r18:44e5ff2700cb
Show More
PythonQtWrapper_QTranslator.h
26 lines | 953 B | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QTRANSLATOR_H
#define PYTHONQTWRAPPER_QTRANSLATOR_H
#include <qtranslator.h>
#include <QObject>
#include <QVariant>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qlist.h>
#include <qobject.h>
#include <qtranslator.h>
class PythonQtWrapper_QTranslator : public QObject
{ Q_OBJECT
public:
public slots:
QTranslator* new_QTranslator(QObject* parent = 0);
void delete_QTranslator(QTranslator* obj) { delete obj; }
bool isEmpty(QTranslator* theWrappedObject) const;
bool load(QTranslator* theWrappedObject, const QString& filename, const QString& directory = QString(), const QString& search_delimiters = QString(), const QString& suffix = QString());
bool load(QTranslator* theWrappedObject, const uchar* data, int len);
QString translate(QTranslator* theWrappedObject, const char* context, const char* sourceText, const char* comment = 0) const;
};
#endif // PYTHONQTWRAPPER_QTRANSLATOR_H