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