| 1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
| 2 | // |
| 3 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 4 | |
| 5 | #ifndef BASETREEVIEW_H |
| 6 | #define BASETREEVIEW_H |
| 7 | |
| 8 | #include <QTreeView> |
| 9 | |
| 10 | class StackFrameView : public QTreeView |
| 11 | { |
| 12 | Q_OBJECT |
| 13 | public: |
| 14 | explicit StackFrameView(QWidget *parent = nullptr); |
| 15 | ~StackFrameView() override; |
| 16 | |
| 17 | private: |
| 18 | QModelIndex eventIndex(QMouseEvent *ev); |
| 19 | void rowActivated(const QModelIndex &index); |
| 20 | void rowClicked(const QModelIndex &index); |
| 21 | }; |
| 22 | |
| 23 | |
| 24 | #endif // BASETREEVIEW_H |
| 25 | |