diff options
author | Ulf Hermann <[email protected]> | 2015-09-02 11:03:53 +0200 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2015-09-02 09:39:24 +0000 |
commit | c11b046f34ad26525466e2945cf9fc64a1984b9a (patch) | |
tree | e3c14f7882e3517397cda33649d1c4ed87ccc8a3 /src/plugins/qmlprofiler/qmlprofileroptionspage.cpp | |
parent | 96ca7bf1482378a9235fb17719ff58baa56d4224 (diff) |
QmlProfiler: Use QPointer for storing config widget
Most other options pages do it this way and none of them delete the
widget in the destructor. Apparently we can rely on finish() getting
called in time.
Change-Id: Ie0964d291bc8ab3eea537921bf476012d58776a4
Reviewed-by: Alessandro Portale <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofileroptionspage.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofileroptionspage.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofileroptionspage.cpp b/src/plugins/qmlprofiler/qmlprofileroptionspage.cpp index ec433997d93..dda136d68b2 100644 --- a/src/plugins/qmlprofiler/qmlprofileroptionspage.cpp +++ b/src/plugins/qmlprofiler/qmlprofileroptionspage.cpp @@ -36,7 +36,7 @@ namespace QmlProfiler { namespace Internal { -QmlProfilerOptionsPage::QmlProfilerOptionsPage() : m_widget(0) +QmlProfilerOptionsPage::QmlProfilerOptionsPage() { setId(Constants::SETTINGS); setDisplayName(tr("QML Profiler")); @@ -45,11 +45,6 @@ QmlProfilerOptionsPage::QmlProfilerOptionsPage() : m_widget(0) setCategoryIcon(QLatin1String(":/images/analyzer_category.png")); } -QmlProfilerOptionsPage::~QmlProfilerOptionsPage() -{ - delete m_widget; -} - QWidget *QmlProfilerOptionsPage::widget() { // We cannot parent the widget to the options page as it expects a QWidget as parent @@ -66,7 +61,6 @@ void QmlProfilerOptionsPage::apply() void QmlProfilerOptionsPage::finish() { delete m_widget; - m_widget = 0; } } // Internal |