Be compatible with Qt4.5, i.e. no QScopedPointer.
This commit is contained in:
parent
4d90463624
commit
0c4fbcf5ad
4 changed files with 4 additions and 2 deletions
|
|
@ -40,6 +40,7 @@ PyCustomWidget::PyCustomWidget(PyObject* objectType)
|
||||||
|
|
||||||
PyCustomWidget::~PyCustomWidget()
|
PyCustomWidget::~PyCustomWidget()
|
||||||
{
|
{
|
||||||
|
delete m_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PyCustomWidget::isContainer() const
|
bool PyCustomWidget::isContainer() const
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ public:
|
||||||
void initialize(QDesignerFormEditorInterface *core);
|
void initialize(QDesignerFormEditorInterface *core);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QScopedPointer<PyCustomWidgetPrivate> m_data;
|
PyCustomWidgetPrivate* m_data;
|
||||||
QString m_name;
|
QString m_name;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,7 @@ PyCustomWidgets::PyCustomWidgets(QObject *parent)
|
||||||
|
|
||||||
PyCustomWidgets::~PyCustomWidgets()
|
PyCustomWidgets::~PyCustomWidgets()
|
||||||
{
|
{
|
||||||
|
delete m_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PyCustomWidgets::registerWidgetType(PyObject* widget)
|
void PyCustomWidgets::registerWidgetType(PyObject* widget)
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ public:
|
||||||
void registerWidgetType(PyObject* widget);
|
void registerWidgetType(PyObject* widget);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QScopedPointer<PyCustomWidgetsPrivate> m_data;
|
PyCustomWidgetsPrivate* m_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue