Node name change cursor missing (#6721)

Signed-off-by: T.J. McGrath-Daly <tj.mcgrath.daly@huawei.com>
This commit is contained in:
tjmgd
2022-01-12 11:57:54 +00:00
committed by GitHub
parent 74483dc3ba
commit acec79fe2e
2 changed files with 8 additions and 1 deletions
@@ -38,6 +38,12 @@ namespace EMotionFX
m_node = node;
}
void AnimGraphNodeNameLineEdit::focusInEvent([[maybe_unused]] QFocusEvent* event)
{
selectAll();
QLineEdit::focusInEvent(event);
}
//---------------------------------------------------------------------------------------------------------------------------------------------------------
AnimGraphNodeNameHandler::AnimGraphNodeNameHandler()
@@ -29,7 +29,8 @@ namespace EMotionFX
~AnimGraphNodeNameLineEdit() = default;
void SetNode(AnimGraphNode* node);
private:
void focusInEvent(QFocusEvent* event) override;
private:
AnimGraphNode* m_node;
};