[rekonq] Review Request 115161: fix highlighting in the completion widget

Mathias Kraus k.hias at gmx.de
Tue Mar 4 20:11:41 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/115161/
-----------------------------------------------------------

(Updated March 4, 2014, 8:11 p.m.)


Review request for rekonq and Andrea Diamantini.


Changes
-------

- instead of setting a new name, just remove the name
- added comment


Repository: rekonq


Description
-------

when typing in the urlbar the first item ist not highlighted after the second letter.

due to the change in commit f0b2b230e1cd4d35f2a95c3bad94e31ecdd70de1 the widgets in the completion list are not deleted immediatelly.
when trying to highlight the widget at index 0, a search for the widget with the object name "0" is done, but because the widget might not be deleted, the old widget with the object name "0" will be found.

this patch sets the object name of the widget to "old" + index in the list, befor calling deleteLater().
when new suggestions are added to the list, there will be only one with the name "0", even if the old ones are not yet deleted.


Diffs (updated)
-----

  src/urlbar/completionwidget.cpp 51ebd9e 
  src/urlbar/completionwidget.cpp 51ebd9e 
  src/urlbar/completionwidget.cpp 51ebd9e 

Diff: https://git.reviewboard.kde.org/r/115161/diff/


Testing
-------

compiled and checked if the highlighting works again


Thanks,

Mathias Kraus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/rekonq/attachments/20140304/e2ce692b/attachment.html>


More information about the rekonq mailing list