Cleanup chatkeyhelp and tests

This commit is contained in:
James Graham
2026-02-14 12:18:07 +00:00
parent c5457a893f
commit 0341da5868
9 changed files with 57 additions and 28 deletions

View File

@@ -30,14 +30,13 @@ public:
ChatTextItemHelper *textItem() const
{
return m_textItem;
return m_keyHelper->textItem;
}
void setTextItem(ChatTextItemHelper *textItem)
{
if (textItem == m_textItem) {
if (textItem == m_keyHelper->textItem) {
return;
}
m_textItem = textItem;
m_keyHelper->textItem = textItem;
Q_EMIT textItemChanged();
}
@@ -51,6 +50,5 @@ Q_SIGNALS:
void textItemChanged();
private:
QPointer<ChatTextItemHelper> m_textItem;
QPointer<ChatKeyHelper> m_keyHelper;
};