aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofileroptionspage.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-09-02 11:03:53 +0200
committerUlf Hermann <ulf.hermann@theqtcompany.com>2015-09-02 09:39:24 +0000
commitc11b046f34ad26525466e2945cf9fc64a1984b9a (patch)
treee3c14f7882e3517397cda33649d1c4ed87ccc8a3 /src/plugins/qmlprofiler/qmlprofileroptionspage.h
parent96ca7bf1482378a9235fb17719ff58baa56d4224 (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 <alessandro.portale@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofileroptionspage.h')
-rw-r--r--src/plugins/qmlprofiler/qmlprofileroptionspage.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofileroptionspage.h b/src/plugins/qmlprofiler/qmlprofileroptionspage.h
index 02b621d21cc..5698902cd5f 100644
--- a/src/plugins/qmlprofiler/qmlprofileroptionspage.h
+++ b/src/plugins/qmlprofiler/qmlprofileroptionspage.h
@@ -32,6 +32,7 @@
#define QMLPROFILEROPTIONSPAGE_H
#include <coreplugin/dialogs/ioptionspage.h>
+#include <QPointer>
namespace QmlProfiler {
namespace Internal {
@@ -40,14 +41,13 @@ class QmlProfilerOptionsPage : public Core::IOptionsPage
{
public:
QmlProfilerOptionsPage();
- ~QmlProfilerOptionsPage();
QWidget *widget();
void apply();
void finish();
private:
- QWidget *m_widget;
+ QPointer<QWidget> m_widget;
};
} // Internal