dolphin/src
Frank Reininghaus 8210d5e472 Update the roles for filtered items if necessary
Since Dolphin 4.11, we store not only KFileItems, but also the
corresponding ItemData struct for filtered items. This is required for
keeping track of the parent-child relationships, and has the nice side
effect that the ItemData need not be re-determined when the items are
shown again.

However, this can become a problem if the visible roles or the sort role
change while some items are filtered.

This is fixed by is fixed by clearing the QHash "values" for the
filtered items if the visible roles change. The hash will be
re-populated with all requested data as soon as the items are shown
again and the data(int) method of the model is called.

Moreover, before the items are inserted into the model after filtering,
we have to make sure that the sort role "Permissions"/"User"/etc. is
present in the hash "values". This is achieved by factoring out the code
that currently does this job for new items in createItemDataList() into
a new function, and calling this in insertItems(), because the same
treatment is required for the previously filtered files.

BUG: 328791
FIXED-IN: 4.12.1
REVIEW: 114266
2013-12-14 11:51:07 +01:00
..
filterbar Improve filterbar lock button. 2013-06-26 11:27:01 +02:00
kitemviews Update the roles for filtered items if necessary 2013-12-14 11:51:07 +01:00
panels Update the Places Panel entries when switching the language 2013-11-15 09:20:10 +01:00
search Fix Bug 296970 - split view wrong behavior with search tab 2013-09-05 16:22:59 +02:00
settings Merge remote-tracking branch 'origin/KDE/4.11' 2013-09-04 21:53:08 +02:00
statusbar Remove "Copy text" statusbar contextmenu entry 2013-09-12 18:45:41 +02:00
tests Update the roles for filtered items if necessary 2013-12-14 11:51:07 +01:00
views Merge remote-tracking branch 'origin/KDE/4.11' into KDE/4.12 2013-12-06 00:56:34 +01:00
CMakeLists.txt dolphinnewfilemenu.cpp is part of dolphinprivate 2013-11-19 19:51:16 +01:00
config-nepomuk.h.cmake Adapt Dolphin Nepomuk support to namespace changes. 2007-06-11 21:46:04 +00:00
config-X11.h.cmake Merged very early alpha-version of Dolphin 2.0 2011-07-30 20:13:41 +02:00
dolphin.desktop Remove erroneous double-quotes around %c in Exec line 2013-05-03 13:22:33 +02:00
dolphinapplication.cpp Fix wrong behaviour, when Dolphin is started with --split argument. 2012-08-25 00:00:30 +02:00
dolphinapplication.h Let each DolphinMainWindow run in a custom process 2011-04-12 20:08:08 +02:00
dolphincontextmenu.cpp Make the "Create New..." menu in the "item context menu" work again 2013-11-21 00:41:33 +01:00
dolphincontextmenu.h Replaced all KNewFileMenu usages in DolphinPart by DolphinNewFileMenu. 2013-08-28 18:46:45 +02:00
dolphindockwidget.cpp Do not allow that panels are dragged out of the main window 2013-07-29 23:22:02 +02:00
dolphindockwidget.h SVN_SILENT: Coding style updates 2011-01-22 14:08:11 +00:00
dolphinmainwindow.cpp Make it build with QT_STRICT_ITERATORS 2013-11-06 17:53:43 +01:00
dolphinmainwindow.h Fix broken view state restoration 2013-10-26 09:24:04 +02:00
dolphinnewfilemenu.cpp Replaced all KNewFileMenu usages in DolphinPart by DolphinNewFileMenu. 2013-08-28 18:46:45 +02:00
dolphinnewfilemenu.h Replaced all KNewFileMenu usages in DolphinPart by DolphinNewFileMenu. 2013-08-28 18:46:45 +02:00
dolphinpart.cpp Moved all the extension code into dolphinpart_ext.* 2013-10-12 13:33:42 -04:00
dolphinpart.desktop SVN_SILENT made messages (.desktop file) 2013-08-15 03:59:57 +00:00
dolphinpart.h Moved all the extension code into dolphinpart_ext.* 2013-10-12 13:33:42 -04:00
dolphinpart.rc Show compact-mode icon also in Konqueror 2011-11-06 12:14:07 +01:00
dolphinpart_ext.cpp Moved all the extension code into dolphinpart_ext.* 2013-10-12 13:33:42 -04:00
dolphinpart_ext.h Moved all the extension code into dolphinpart_ext.* 2013-10-12 13:33:42 -04:00
dolphinremoveaction.cpp Update the "Move to Trash" action's and the "Delete" action's 2013-06-22 14:04:45 +02:00
dolphinremoveaction.h - Factored out the Delete/Move To Trash action into own class. 2013-05-14 08:37:21 -04:00
dolphinui.rc Replaced all KNewFileMenu usages in DolphinPart by DolphinNewFileMenu. 2013-08-28 18:46:45 +02:00
dolphinviewcontainer.cpp Merge remote-tracking branch 'origin/KDE/4.11' 2013-10-26 09:30:18 +02:00
dolphinviewcontainer.h Fix crash when dropping URLs on the URL navigator's drop down menus 2013-07-02 19:27:06 +02:00
libdolphin_export.h Remove QBool headers. 2012-04-10 00:20:22 +02:00
main.cpp Use the KDE SC version also as the Dolphin versions 2013-06-26 21:24:15 +02:00
Messages.sh Minor 2010-10-19 07:38:50 +00:00