aboutsummaryrefslogtreecommitdiffstats
path: root/libpyside/dynamicqmetaobject.h
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-05-17 18:40:38 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-05-17 19:55:06 -0300
commit089cce5dbbcaeb32b14fc561ce0d723dbb80d6e1 (patch)
treeb1e28dbb53d2f792127e27b7ecbef02fee53c3c3 /libpyside/dynamicqmetaobject.h
parentf976c831fd89c09e116465538f0a3888bba543e2 (diff)
Used shared pointer on MethodData to allow copy.
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libpyside/dynamicqmetaobject.h')
-rw-r--r--libpyside/dynamicqmetaobject.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libpyside/dynamicqmetaobject.h b/libpyside/dynamicqmetaobject.h
index 36981ec42..69027f218 100644
--- a/libpyside/dynamicqmetaobject.h
+++ b/libpyside/dynamicqmetaobject.h
@@ -40,6 +40,7 @@
#include <QMetaObject>
#include <QLinkedList>
#include <QByteArray>
+#include <QSharedPointer>
#define PYSIDE_SLOT_LIST_ATTR "_slots"
@@ -54,14 +55,15 @@ public:
MethodData(){}
MethodData(const char* signature, const char* type);
void clear();
+ bool isValid() const;
QByteArray signature() const;
QByteArray type() const;
bool operator==(const MethodData& other) const;
bool operator==(const char* other) const;
private:
- QByteArray m_signature;
- QByteArray m_type;
+ QSharedPointer<QByteArray> m_signature;
+ QSharedPointer<QByteArray> m_type;
};
class PYSIDE_API DynamicQMetaObject : public QMetaObject