From 5f80e31958a7d950317f967ad56e9dbc996fa9e3 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Thu, 12 May 2011 18:56:53 -0300 Subject: Be compatible with Qt4.5, i.e. no QScopedPointer. --- plugins/customwidget.cpp | 1 + plugins/customwidget.h | 2 +- plugins/customwidgets.cpp | 1 + plugins/customwidgets.h | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins') 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 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 m_data; + PyCustomWidgetsPrivate* m_data; }; #endif -- cgit v1.2.3