https://bugs.kde.org/show_bug.cgi?id=351866

Yingjie Liu <1127553...@qq.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |1127553...@qq.com

--- Comment #2 from Yingjie Liu <1127553...@qq.com> ---
Created attachment 104401
  --> https://bugs.kde.org/attachment.cgi?id=104401&action=edit
Action added for controlling the focus in the text field

Hi,
I add a QAction in the toolbar beside the "Show Fullscreen" action, which is
shown in attachment "icon". I added a flag in FaceGroup class which can be
changed by toggling the new action. The value of the flag will be conveyed to
class AssignNameWidget, and a flag called noFocus will have the same value.
Then in function showEvent(QShowEvent* e), if noFocus is true, the function
will return with no focus in the text field.
If user click the new action, there will be no focus in the text field after he
draw a new face rectangle, as shown in attachment "no_focus".
If user click the new action again, there will be focus in the text field after
he draw a new face rectangle, as shown in attachment "has_focus".
I commented the patch for readability.
If there are more easier method, I will try it and change the code.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to