Skip to content
Snippets Groups Projects
Commit 4bdd4c26 authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

DiagnosticDelegate: Fix leaking QVBoxLayout


Change-Id: I523c2c13b2b7f2b2eebc00781b6a2e18a74f8c17
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent 25d52100
No related branches found
No related tags found
No related merge requests found
......@@ -234,12 +234,13 @@ QWidget *ClangStaticAnalyzerDiagnosticDelegate::createDetailsWidget(const QFont
QWidget *parent) const
{
QWidget *widget = new QWidget(parent);
QVBoxLayout *layout = new QVBoxLayout;
const Diagnostic diagnostic = index.data(Qt::UserRole).value<Diagnostic>();
if (!diagnostic.isValid())
return widget;
QVBoxLayout *layout = new QVBoxLayout;
// Add summary label
QLabel *summaryLineLabel = createSummaryLabel(diagnostic);
connect(summaryLineLabel, &QLabel::linkActivated,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment