Bug 242809 - Impossible to type in the next line edit (New contact dialogue)
Summary: Impossible to type in the next line edit (New contact dialogue)
Status: VERIFIED FIXED
Alias: None
Product: KAddressbook Mobile
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Artur Souza (MoRpHeUz)
URL:
Keywords:
: 242811 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-06-25 19:02 UTC by Sabine Faure
Modified: 2010-07-22 00:26 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
qgraphicsproxywidget + qlineedit focus bug (651 bytes, text/x-c++src)
2010-06-30 23:42 UTC, Anselmo L. S. Melo (anselmolsm)
Details
ProxyWidget with two line edits (887 bytes, text/x-c++src)
2010-07-02 14:14 UTC, Artur Souza (MoRpHeUz)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sabine Faure 2010-06-25 19:02:02 UTC
Version:           unspecified (using Devel) 
OS:                Linux

After typing in a name in the new contact dialogue if the user tries to enter an email address the characters are typed in the Name line edit whatever the user tries (Enter, down arrow on the keyboard or clicking with the pen in the email line edit)

Reproducible: Always

Steps to Reproduce:
- Launch KAB-mobile
- Click on 'New Contact' button
- Enter your name in the 'Name' line edit
- Click in the 'E-Mail' line edit with the N900 plastic pen
- Enter you email address

Actual Results:  
The email address is added to the name in the 'Name' line edit

Expected Results:  
whereas it should be entered in the 'E-Mail' line edit since the cursor is there.
Comment 1 Tobias Koenig 2010-06-28 12:08:44 UTC
Hej,

selecting the email lineedit in kab-mobile on the desktop works fine, so it must be an issue of Qt on N900 -> reassigned to Artur.

Ciao,
Tobias
Comment 2 Artur Souza (MoRpHeUz) 2010-06-28 14:19:12 UTC
I'm investigating this. It seems a focus issue with QWidgets on QML (QGV). It's not dealing properly with these two kinds of focus (QWidgets and QGraphicWidgets).
Comment 3 Anselmo L. S. Melo (anselmolsm) 2010-06-30 23:42:51 UTC
Created attachment 48497 [details]
qgraphicsproxywidget + qlineedit focus bug

It seems caused by a QGraphicsProxyWidget bug.

In the attached code there is a small test containing 2 QLineEdits placed in proxy widgets. Running it on N900, the bug appears after some focus switches between the line edits. Reproduced with both Qt 4.6 and 4.7.
Comment 4 Anselmo L. S. Melo (anselmolsm) 2010-07-01 00:23:51 UTC
I forgot to mention in comment #3, the version of Qt 4.7 experimental packages used were ~git20100628
Comment 5 Artur Souza (MoRpHeUz) 2010-07-01 11:05:45 UTC
This bug is easily reproducible on scratchbox x86 with the above example (from comment #3). The trick is to click the area around those widgets (it's an invisible qgraphicswidget).

Created JIRA task for this Qt bug:
http://bugreports.qt.nokia.com/browse/QTBUG-11861

Besides being an "upstream" bug, we'll leave this one open so we can keep testing this for the Qt guys (we are also helping them to fix the issue).
Comment 6 Artur Souza (MoRpHeUz) 2010-07-01 11:35:48 UTC
*** Bug 242811 has been marked as a duplicate of this bug. ***
Comment 7 Anselmo L. S. Melo (anselmolsm) 2010-07-01 22:19:24 UTC
QTBUG-11861 (see comment #5) is now fixed and the correspondent patch is already available in x11-maemo clone on gitorious.

Tests with the example from comment #3 confirm the issue is fixed.

Now regarding kaddressbook-mobile tests. With the mentioned fix, it is possible to type in other line edits than the first one =). However, there are situations when the bug reappears, mostly related with the word completion feature available on Maemo 5. Once it enters in action, the focus bug shows up.

When word completion is off (check Maemo Settings -> Text Input) the bug seems not reproducible.

For those interested, there is a tar.gz with Qt 4.7 + bug fix available at [1]. Probably the next libqt4-experimental will include this fix.


[1] http://anselmolsm.org/public/qt/47/libqt47-declarative-armel.tar.gz - remember to adjust LD_LIBRARY_PATH accordingly.
Comment 8 Artur Souza (MoRpHeUz) 2010-07-02 14:14:08 UTC
Created attachment 48542 [details]
ProxyWidget with two line edits

This attachment shows the new focus bug regarding two widgets inside the same proxy widget. The proxy widget is not calling the inputContext->reset() method when it looses focus.
Comment 9 Artur Souza (MoRpHeUz) 2010-07-03 00:01:34 UTC
Bug fixed on Qt. Already available in public repository:

http://qt.gitorious.org/qt/x11-maemo/commit/255bca57212e99219094312024b604ca5bca25cc

Input should be working now on all KDEPIM mobile applications.
Comment 10 Sabine Faure 2010-07-22 00:26:10 UTC
It is corrected now.

It is possible to type information in the different line edits now using the plastic pen.

Tested on N900, Rev 20100721.1152530