1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef CODELENS_H |
6 | #define CODELENS_H |
7 | |
8 | #include "codelenstype.h" |
9 | |
10 | #include "common/common.h" |
11 | |
12 | #include <QTreeView> |
13 | |
14 | class CodeLensTree : public QTreeView |
15 | { |
16 | Q_OBJECT |
17 | public: |
18 | explicit CodeLensTree(QWidget *parent = nullptr); |
19 | void setData(const lsp::References &refs); |
20 | |
21 | signals: |
22 | void doubleClicked(const QString &filePath, const lsp::Range &range); |
23 | }; |
24 | #endif // CODELENS_H |
25 | |