aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/customwidget.cpp1
-rw-r--r--plugins/customwidget.h2
-rw-r--r--plugins/customwidgets.cpp1
-rw-r--r--plugins/customwidgets.h2
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