[digikam] [Bug 351866] Make focus to input field after adding a face rectangle as an option and not by default

Yingjie Liu bugzilla_noreply at kde.org
Mon Mar 6 10:53:55 GMT 2017


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

Yingjie Liu <1127553236 at qq.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |1127553236 at qq.com

--- Comment #2 from Yingjie Liu <1127553236 at 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 the assignee for the bug.


More information about the Digikam-devel mailing list