1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef PROBLEMOUTPUTPANE_H
6#define PROBLEMOUTPUTPANE_H
7
8#include "services/builder/task.h"
9
10#include <QWidget>
11#include <QMenu>
12
13class ProblemOutputPane : public QWidget
14{
15 Q_OBJECT
16public:
17 ProblemOutputPane(QWidget *parent = nullptr);
18 virtual ~ProblemOutputPane() override;
19
20 void clearContents();
21 void addTask(const Task &task, int linkedOutputLines, int skipLines);
22
23protected:
24 void contextMenuEvent(QContextMenuEvent * event) override;
25
26private:
27 QList<QAction*> actionFactory();
28 QMenu *menu = nullptr;
29};
30
31#endif // PROBLEMOUTPUTPANE_H
32