Bug: Curser disappears when switching into Kdevelop

Falk Brettschneider gigafalk at yahoo.com
Tue Apr 23 11:20:50 BST 2002


Hi fans!

Falk Brettschneider wrote:

> Roland Pabel wrote:
>
>> On Thursday 18 April 2002 13:46, Roland Pabel wrote: Hi again,
>> I've finally found a 100% reproducable way to loose the visual cursor :
>> 1) Kdevelop starts up, all fine
>> 2) In a class file, I type "this->" and the command-completion window 
>> showing the classes' methods pops up. I use the cursor keys to select 
>> a function and press Enter. "this->set_level(". Kdevelop then shows a 
>> smaller yellow window with the variant list of that method.
>> 3) I finish that command by keyboard to "this->set_level(i);". Now 
>> everything is still fine.
>> 4.) when I now use the Tree-Tool-View to change files, the visual 
>> cursor disappear, with all the effects I described before. (remember, 
>> I can still type and stuff, I just don't see where the cursor is...)
>> Text selection still works, and copy/paste too (using CTRL+c/CTRL+v).
>> Last but now least, I can see the cursor again when I move the mouse 
>> out of and back in Kdevelops window...
>> hope it helps,
>> Roland
>>
> You are so great! You deserve the KDevelop user price April 2002! :-)
> Now I can reproduce that mysterious bug 100% here, too.
> First I thought it was due the update to Qt-3.0.3 but the new 
> code-completion code seems to confuse KDevelop's document-view 
> manager. Maybe due some hooked event filters - always a tricky story.
>
> Although I haven't got much time these weeks, stay tuned for this 
> important fix. 

Here comes the fix attached to this email! :-)

Please test and report your experiences to me.
A KDeveloper must give me the OK to commit this fix for the severe crash 
that always follows the focus problem for KDevelop-2.1.1. Harry, Roland, 
Walter?

The reason for the bug is changed behaviour in newer Qt versions 
(QT_VERSION >=  300). Qt doesn't set the QFocusEvent::m_reason not any 
more as they did before. To my mind it's an introduced bug in Qt. 
Anyway, the bug slept during the beta stages of KDevelop-2.1 and hit us 
now with the last code-completion feature addons during the last release 
candidates of KDevelop.

Ciao
F at lk

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: qextmdichildarea.cpp.diff
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20020423/e0df7c29/attachment.ksh>


More information about the KDevelop mailing list