1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef VALGRINDBAR_H
6#define VALGRINDBAR_H
7
8#include <QWidget>
9
10class QTableWidget;
11class QTreeWidget;
12class ValgrindBarPrivate;
13class ValgrindBar : public QWidget
14{
15 Q_OBJECT
16public:
17 explicit ValgrindBar(QWidget *parent = nullptr);
18 void refreshDisplay(QTreeWidget *treeWidget);
19
20public slots:
21 void clearDisplay(const QString &type);
22
23private:
24 void initValgrindbar();
25 void setWidgetStyle(QTreeWidget *treeWidget, const QStringList &itemNames);
26 void showResult(const QString &xmlFileName, const QString &type);
27
28 ValgrindBarPrivate *const d;
29};
30
31#endif // VALGRINDBAR_H
32