diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-05-12 18:56:53 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:21 -0300 |
commit | 5f80e31958a7d950317f967ad56e9dbc996fa9e3 (patch) | |
tree | 18c370f3330568a13abf97a0f84c6f6bb845efd7 | |
parent | c8f5fa07fea810e448982f7ebac50533e457aa9c (diff) |
Be compatible with Qt4.5, i.e. no QScopedPointer.
-rw-r--r-- | plugins/customwidget.cpp | 1 | ||||
-rw-r--r-- | plugins/customwidget.h | 2 | ||||
-rw-r--r-- | plugins/customwidgets.cpp | 1 | ||||
-rw-r--r-- | plugins/customwidgets.h | 2 |
4 files changed, 4 insertions, 2 deletions
diff --git a/plugins/customwidget.cpp b/plugins/customwidget.cpp index 9a3e6f2fc..c752de589 100644 --- a/plugins/customwidget.cpp +++ b/plugins/customwidget.cpp @@ -40,6 +40,7 @@ PyCustomWidget::PyCustomWidget(PyObject* objectType) PyCustomWidget::~PyCustomWidget() { + delete m_data; } bool PyCustomWidget::isContainer() const diff --git a/plugins/customwidget.h b/plugins/customwidget.h index 00393a1d5..2f2636345 100644 --- a/plugins/customwidget.h +++ b/plugins/customwidget.h @@ -51,7 +51,7 @@ public: void initialize(QDesignerFormEditorInterface *core); private: - QScopedPointer<PyCustomWidgetPrivate> m_data; + PyCustomWidgetPrivate* m_data; QString m_name; }; diff --git a/plugins/customwidgets.cpp b/plugins/customwidgets.cpp index c92b95c43..0c43c5b46 100644 --- a/plugins/customwidgets.cpp +++ b/plugins/customwidgets.cpp @@ -52,6 +52,7 @@ PyCustomWidgets::PyCustomWidgets(QObject *parent) PyCustomWidgets::~PyCustomWidgets() { + delete m_data; } void PyCustomWidgets::registerWidgetType(PyObject* widget) diff --git a/plugins/customwidgets.h b/plugins/customwidgets.h index 3cb0d2a9b..b1c4d70f7 100644 --- a/plugins/customwidgets.h +++ b/plugins/customwidgets.h @@ -44,7 +44,7 @@ public: void registerWidgetType(PyObject* widget); private: - QScopedPointer<PyCustomWidgetsPrivate> m_data; + PyCustomWidgetsPrivate* m_data; }; #endif |