mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-07-18 21:14:34 -04:00
Upgrade plugin to Qt Creator 15
* 🐛 fix: Change plugin configs * 🐛 fix: Update Button aspect api * 🐛 fix: Temproary fix for LLMSuggestions * 🐛 fix: Update github actions * 🔖 chore: Upgrade version in README
This commit is contained in:
@ -31,15 +31,12 @@ class LLMSuggestion final : public QObject, public TextEditor::TextSuggestion
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
LLMSuggestion(const Completion &completion, QTextDocument *origin);
|
||||
LLMSuggestion(const TextEditor::TextSuggestion::Data &data, QTextDocument *origin);
|
||||
|
||||
bool apply() final;
|
||||
bool applyWord(TextEditor::TextEditorWidget *widget) final;
|
||||
bool applyNextLine(TextEditor::TextEditorWidget *widget);
|
||||
void reset() final;
|
||||
int position() final;
|
||||
|
||||
const Completion &completion() const { return m_completion; }
|
||||
bool apply() override;
|
||||
bool applyWord(TextEditor::TextEditorWidget *widget) override;
|
||||
bool applyLine(TextEditor::TextEditorWidget *widget) override;
|
||||
void reset();
|
||||
|
||||
void showTooltip(TextEditor::TextEditorWidget *widget, int count);
|
||||
void onCounterFinished(int count);
|
||||
@ -50,6 +47,8 @@ private:
|
||||
int m_linesCount;
|
||||
|
||||
CounterTooltip *m_counterTooltip = nullptr;
|
||||
int m_startPosition;
|
||||
TextEditor::TextSuggestion::Data m_suggestion;
|
||||
};
|
||||
|
||||
} // namespace QodeAssist
|
||||
|
Reference in New Issue
Block a user