Revision 761494

Go back to digest for 20th January 2008

Optimization in KDE Base

David Nolden committed changes in /trunk/KDE/kdelibs:

Optimizations for very large completion-lists(see KDevelop):
- Allow optionally passing data to kate hierarchically, so that grouping can take place without querying each item for 3 values.

Parent-nodes define data common for all sub-nodes(see interface documentation).
- Change the vertical scroll-mode back to ScrollPerItem. ScrollPerItem is buggy while scrolling down the list, but ScrollPerPixel needed Qt to compute the size of each completion-item, which is extremely slow for very long lists.
- Remove 2 old files.

Now the completion-list in kdevelop shows instantly instead of waiting for seconds, even when it's very long.

File Changes

Deleted 2 files
  • /trunk/KDE/kdelibs/kate/completion/expandingtree
  •   /kateexpandingtree.cpp
  •   /kateexpandingtree.h
Modified 6 files
  • /trunk/KDE/kdelibs
  •   /interfaces/ktexteditor/codecompletionmodel.h
  •   /kate/completion/kateargumenthintmodel.cpp
  •   /kate/completion/katecompletionmodel.cpp
  •   /kate/completion/katecompletionmodel.h
  •   /kate/completion/katecompletiontree.cpp
  •   /kate/completion/expandingtree/expandingtree.cpp
8 files changed in total