Restore missing functionality

This commit is contained in:
James Graham
2026-01-04 19:19:22 +00:00
parent d10fe4a684
commit d0abfe60f9
15 changed files with 330 additions and 219 deletions

View File

@@ -64,6 +64,11 @@ public:
QQuickItem *textItem() const;
void setTextItem(QQuickItem *textItem);
/**
* @brief Whether a completion has started based on recent text entry.
*/
bool isCompleting = false;
/**
* @brief The fixed characters that will always be at the beginning of the text item.
*/
@@ -98,6 +103,13 @@ public:
*/
QTextDocument *document() const;
/**
* @brief Whetehr the underlying QTextDocument is empty.
*
* @sa QTextDocument
*/
bool isEmpty() const;
/**
* @brief The line count of the text item.
*/
@@ -238,7 +250,6 @@ private:
void initializeChars();
bool m_initializingChars = false;
bool isEmpty() const;
std::optional<int> lineLength(int lineNumber) const;
int selectionStart() const;