mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-05-30 19:09:14 -04:00
34 lines
662 B
C++
34 lines
662 B
C++
// Copyright (C) 2025-2026 Petr Mironychev
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QPointer>
|
|
#include <functional>
|
|
|
|
namespace TextEditor {
|
|
class TextEditorWidget;
|
|
}
|
|
|
|
namespace QodeAssist {
|
|
|
|
class CompletionHintWidget;
|
|
|
|
class CompletionHintHandler
|
|
{
|
|
public:
|
|
CompletionHintHandler();
|
|
~CompletionHintHandler();
|
|
|
|
void showHint(TextEditor::TextEditorWidget *widget, QPoint position, int fontSize);
|
|
void hideHint();
|
|
bool isHintVisible() const;
|
|
void updateHintPosition(TextEditor::TextEditorWidget *widget, QPoint position);
|
|
|
|
private:
|
|
QPointer<CompletionHintWidget> m_hintWidget;
|
|
};
|
|
|
|
} // namespace QodeAssist
|
|
|