aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/classview
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2020-01-23 12:11:59 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2020-01-27 09:12:52 +0000
commit2c295905a9e45b0560cc08b2c49c2971aa0fe4d1 (patch)
tree8d222f7d43cbb4db4f0e858c3ec7c1e84071ce20 /src/plugins/classview
parent5fc456dd2283b2d1e6c4e6d34856052658f34cc4 (diff)
Fix various leaks relating to use of Core::NavigationView
Change-Id: I8ba508b279376047bcf7ae17dbdadba70ec13582 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/classview')
-rw-r--r--src/plugins/classview/classviewnavigationwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/classview/classviewnavigationwidget.cpp b/src/plugins/classview/classviewnavigationwidget.cpp
index 49b21162384..a82402f76bf 100644
--- a/src/plugins/classview/classviewnavigationwidget.cpp
+++ b/src/plugins/classview/classviewnavigationwidget.cpp
@@ -170,7 +170,7 @@ QList<QToolButton *> NavigationWidget::createToolButtons()
// full projects mode
if (!fullProjectsModeButton) {
// create a button
- fullProjectsModeButton = new QToolButton();
+ fullProjectsModeButton = new QToolButton(this);
fullProjectsModeButton->setIcon(
::Utils::CodeModelIcon::iconForType(::Utils::CodeModelIcon::Class));
fullProjectsModeButton->setCheckable(true);