summaryrefslogtreecommitdiff
path: root/src/plugins/cppcheck/cppcheckdiagnosticview.h
blob: bff7a69dc9fb58e90fb12cb527ca22a27cc444e5 (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
// Copyright (C) 2019 Sergey Morozov
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <debugger/analyzer/detailederrorview.h>

namespace Cppcheck::Internal {

class DiagnosticView : public Debugger::DetailedErrorView
{
public:
    explicit DiagnosticView(QWidget *parent = nullptr);
    ~DiagnosticView() override;

    void goNext() override;
    void goBack() override;

private:
    void openEditorForCurrentIndex();
    void mouseDoubleClickEvent(QMouseEvent *event) override;
};

} // Cppcheck::Internal