]> cloud.milkyroute.net Git - dolphin.git/commit
Improvements for slow sorting roles
authorPeter Penz <peter.penz19@gmail.com>
Tue, 10 Apr 2012 14:30:50 +0000 (16:30 +0200)
committerPeter Penz <peter.penz19@gmail.com>
Tue, 10 Apr 2012 14:36:26 +0000 (16:36 +0200)
commitd9dbd3398a258d04ec4517fd13e795b437c869d6
tree6f608d12001818cd416271ac7c4f462e9ddefc7a
parentb8c3d933e66598c78180a73cb394b211ca6b52d0
Improvements for slow sorting roles

If the sorting is done for data which is resolved asynchronously
(e.g. rating), it is important to give a visual feedback about
the state of the sorting. This is done now by a progress
indication in the statusbar.

Also optimizations for "Sort by type" have been done: Although
resolving a type can be expensive in the most often case it is a
very cheap operation. So it the sorting is done by type, try
to resolve the type synchronously for at least 200 ms to prevent
a asynchronous resorting. This is usually sufficient to have
resolved types even for directories with several thousands of
items.

BUG: 292733
FIXED-IN: 4.9.0
src/dolphinviewcontainer.cpp
src/dolphinviewcontainer.h
src/kitemviews/kfileitemmodel.cpp
src/kitemviews/kfileitemmodel.h
src/kitemviews/kfileitemmodelrolesupdater.cpp
src/kitemviews/kfileitemmodelrolesupdater.h
src/kitemviews/knepomukrolesprovider.cpp
src/kitemviews/knepomukrolesprovider_p.h
src/statusbar/dolphinstatusbar.cpp
src/views/dolphinview.cpp
src/views/dolphinview.h