blob: 6ff0cca81d4ace54226c57b5b01f66bf100a064f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include <debugger/analyzer/detailederrorview.h>
#include <utils/filepath.h>
#include <QListView>
namespace Valgrind {
namespace Internal {
class ValgrindBaseSettings;
class MemcheckErrorView : public Debugger::DetailedErrorView
{
public:
MemcheckErrorView(QWidget *parent = nullptr);
~MemcheckErrorView() override;
void setDefaultSuppressionFile(const Utils::FilePath &suppFile);
Utils::FilePath defaultSuppressionFile() const;
ValgrindBaseSettings *settings() const { return m_settings; }
void settingsChanged(ValgrindBaseSettings *settings);
private:
void suppressError();
QList<QAction *> customActions() const override;
QAction *m_suppressAction;
Utils::FilePath m_defaultSuppFile;
ValgrindBaseSettings *m_settings = nullptr;
};
} // namespace Internal
} // namespace Valgrind
|