Fixed memory leaks.
Used PyObject on attr functions.
Code style update.
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>,
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
7001f3df8f
commit
005aeaf829
5 changed files with 149 additions and 138 deletions
|
|
@ -50,17 +50,17 @@ namespace PySide
|
|||
|
||||
class MethodData
|
||||
{
|
||||
public:
|
||||
MethodData(){}
|
||||
MethodData(const char *signature, const char *type);
|
||||
void clear();
|
||||
QByteArray signature() const;
|
||||
QByteArray type() const;
|
||||
bool operator==(const MethodData &other) const;
|
||||
public:
|
||||
MethodData(){}
|
||||
MethodData(const char *signature, const char *type);
|
||||
void clear();
|
||||
QByteArray signature() const;
|
||||
QByteArray type() const;
|
||||
bool operator==(const MethodData &other) const;
|
||||
|
||||
private:
|
||||
QByteArray m_signature;
|
||||
QByteArray m_type;
|
||||
private:
|
||||
QByteArray m_signature;
|
||||
QByteArray m_type;
|
||||
};
|
||||
|
||||
class PYSIDE_API DynamicQMetaObject : public QMetaObject
|
||||
|
|
@ -76,7 +76,7 @@ public:
|
|||
void removeSlot(uint index);
|
||||
|
||||
//Retrieve Python metadata to create QMetaObject (class name, signals, slot)
|
||||
static DynamicQMetaObject *createBasedOn(PyObject *obj, PyTypeObject *type, const QMetaObject* base);
|
||||
static DynamicQMetaObject* createBasedOn(PyObject* obj, PyTypeObject* type, const QMetaObject* base);
|
||||
|
||||
private:
|
||||
QLinkedList<MethodData> m_signals;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue