| 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 | |
| 10 | class QTableWidget; |
| 11 | class QTreeWidget; |
| 12 | class ValgrindBarPrivate; |
| 13 | class ValgrindBar : public QWidget |
| 14 | { |
| 15 | Q_OBJECT |
| 16 | public: |
| 17 | explicit ValgrindBar(QWidget *parent = nullptr); |
| 18 | void refreshDisplay(QTreeWidget *treeWidget); |
| 19 | |
| 20 | public slots: |
| 21 | void clearDisplay(const QString &type); |
| 22 | |
| 23 | private: |
| 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 |