Ensure declarative view gets deleted when script is unloaded

Using a scoped pointer to ensure that the view is deleted in
the DeclarativeScript's dtor.

REVIEW: 104846
This commit is contained in:
Martin Gräßlin 2012-05-04 08:22:53 +02:00
parent e274c297b9
commit 54ecbc6b6a

View file

@ -148,7 +148,7 @@ public Q_SLOTS:
Q_SCRIPTABLE void run();
private:
QDeclarativeView *m_view;
QScopedPointer<QDeclarativeView> m_view;
};
/**