Bug 323444

Summary: Kate symbol list flickers when document is updated
Product: [Applications] kate Reporter: John Schroeder <schroederjohn88+kdebugs>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: schroederjohn88+kdebugs
Priority: NOR    
Version: Git   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
URL: http://www.youtube.com/watch?v=bhnpojZYWcA
Latest Commit: Version Fixed In: 4.11.1
Attachments: Proposed patch

Description John Schroeder 2013-08-13 05:41:00 UTC
When the document is updated, kate's symbol list viewer plugin flickers and doesn't indicate the current location unless the cursor position is changed.

Reproducible: Always

Steps to Reproduce:
1. Enable symbol list viewer
2. Open/create file with some content that will populate symbol list viewer
3. Make changes to the document and note symbol list flickering
4. This is especially distracting in tree view
Actual Results:  
Symbol list flickers in a very distracting manner and doesn't correctly indicated the current cursor position unless it is changed.

Expected Results:  
Symbol list should not flicker and always indicate the current cursor position.
Comment 1 John Schroeder 2013-08-13 05:43:57 UTC
Created attachment 81687 [details]
Proposed patch
Comment 2 John Schroeder 2013-08-13 05:45:47 UTC
I have attached a patch that fixes the issue by calling updateCurrTreeItem() at the end of slotRefreshSymbol() and there is a link to youtube demonstrating the flickering in the details.
Comment 3 Dominik Haumann 2013-08-13 08:06:41 UTC
Git commit dd46408f052b0324619b12366d836edcacc8299c by Dominik Haumann.
Committed on 13/08/2013 at 08:06.
Pushed by dhaumann into branch 'master'.

fix flickering in symbol viewer

Thanks to John for the patch!

FIXED-IN: 4.11.1

M  +1    -0    addons/kate/symbolviewer/plugin_katesymbolviewer.cpp

http://commits.kde.org/kate/dd46408f052b0324619b12366d836edcacc8299c
Comment 4 Dominik Haumann 2013-08-13 08:08:55 UTC
Git commit a8f38166c8ab5d7974a497b05f858cc0c17620ba by Dominik Haumann.
Committed on 13/08/2013 at 08:06.
Pushed by dhaumann into branch 'KDE/4.11'.

fix flickering in symbol viewer

Thanks to John for the patch!

FIXED-IN: 4.11.1

M  +1    -0    addons/kate/symbolviewer/plugin_katesymbolviewer.cpp

http://commits.kde.org/kate/a8f38166c8ab5d7974a497b05f858cc0c17620ba