mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-06-10 00:09:12 -04:00
29 lines
657 B
C++
29 lines
657 B
C++
// Copyright (C) 2024-2026 Petr Mironychev
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
// Additional attribution terms under GPLv3 §7(b) apply — see LICENSE
|
|
|
|
#pragma once
|
|
|
|
#include <texteditor/texteditor.h>
|
|
#include <texteditor/textsuggestion.h>
|
|
|
|
namespace QodeAssist {
|
|
|
|
class RefactorSuggestion : public TextEditor::TextSuggestion
|
|
{
|
|
public:
|
|
RefactorSuggestion(const Data &suggestion, QTextDocument *sourceDocument);
|
|
|
|
bool apply() override;
|
|
|
|
bool applyWord(TextEditor::TextEditorWidget *widget) override;
|
|
|
|
bool applyLine(TextEditor::TextEditorWidget *widget) override;
|
|
|
|
private:
|
|
Data m_suggestionData;
|
|
};
|
|
|
|
} // namespace QodeAssist
|
|
|