]> cloud.milkyroute.net Git - dolphin.git/commit
The complexity of the class InformationPanel has grown a lot from KDE 4.0 to KDE...
authorPeter Penz <peter.penz19@gmail.com>
Sun, 5 Jul 2009 22:54:37 +0000 (22:54 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sun, 5 Jul 2009 22:54:37 +0000 (22:54 +0000)
commitdc29afa688cf809f4506075107036f62fd139d31
treefc667679e7261df935f378c8cf220cbf7038d560
parentb4aacaf4d2a0f119176f491543261b62914d6be0
The complexity of the class InformationPanel has grown a lot from KDE 4.0 to KDE 4.3. One main reason is that a lot of things are done now asynchronously with timers to prevent a blocking UI and unnecessary expensive operations.

To keep the Information Panel maintainable and prepared for future features a cleanup has been done. The whole user interface handling has been moved into the class InformationPanelContent that offers a straight forward interface: showItem(const KFileItem& item) and showItems(const KFileItemList& items).

The class InformationPanel is responsible for calling those methods in a way that hovering items, changing directories, doing selections, rename and delete operations, ... don't result in calling showItem() 10 times per second.

This cleanup won't be backported to KDE 4.3.x

svn path=/trunk/KDE/kdebase/apps/; revision=991902
src/CMakeLists.txt
src/panels/information/informationpanel.cpp
src/panels/information/informationpanel.h
src/panels/information/informationpanelcontent.cpp [new file with mode: 0644]
src/panels/information/informationpanelcontent.h [new file with mode: 0644]