[patch] make editing maps possible again

Michael Leupold lemma at confuego.org
Thu May 1 00:22:38 CEST 2008


Hi,

On checking some strange behaviour with the widget for editing passwords in 
maps not disappearing I found out about the following two bugs:

1) The textedit for editing passwords is not focussed correctly. Opening the 
context-menu hides it, clicking outside of it doesn't properly hide it in 
most cases.
I found out this only happened if the QTextEdit wasn't focussed before 
clicking elsewhere. Setting focus after creation made this one vanished. I 
also replaced QTextEdit by KTextEdit as suggested by ebn.

2) The contents used to be written back to the table when the textedit was 
deleted. Q3Table doesn't seem to destroy child-widgets properly in this case 
so the contents never get written back.
This was actually a problem with the text edit not being destroyed on closing 
it. setAttribute(Qt::WA_DeleteOnClose) helped.

3) The text edit was closed on right-clicking it to get the popup for 
copying/pasting.
This was due to a small portion that was commented-out on converting to qt4. 
Porting it to Qt4 worked well.

I also created a bugreport for this to keep track of what I'm doing:
https://bugs.kde.org/show_bug.cgi?id=161458

What do you think?

Regards,
Lemma
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-kwallet-modifymap.diff
Type: text/x-diff
Size: 2798 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-utils-devel/attachments/20080501/9fdffbc5/attachment.bin 


More information about the Kde-utils-devel mailing list