[digikam] [Bug 372342] Face tag area is very short

Yingjie Liu bugzilla_noreply at kde.org
Tue Feb 28 02:03:20 GMT 2017


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

Yingjie Liu <1127553236 at qq.com> changed:

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

--- Comment #1 from Yingjie Liu <1127553236 at qq.com> ---
Hi,
I spent about 1 day time compiling the code and installing it(failed to compile
on Ubuntu 15 because of exiv2 version problem, then succeeded on Ubuntu 16).
After compiled the code, I started to read it and trying to fix the bug.
This is the qt working flow about face tag input box: 
Face tag input box is object of class AssignNameWidget, when user clicked "show
face tags" Action, object of AssignNameWidget will be created by class
FaceGroup.
AssignNameWidget inherits QFrame, the input box is QLineEdit inside the QFrame.
QLineEdit can't be made multi line, so I changed the size of QFrame. The
attachment "before" shows the input box before I change the width of QFrame.
QFrame inherits QWidget, so it can use the method setFixedWidth to change its
width.
I add the code:
q->setFixedWidth(500);
in utilities\facemanagement\assignnamewidget.cpp void updateLayout()
The input box has been enlarged in width as shown in attachment "after".
There may be other solutions, I'd like to talk with you. Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Digikam-devel mailing list