┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/places/placesitemmodel.cpp
AgeCommit message (Collapse)Author
2014-09-21Merge branch 'KDE/4.14'Luca Beltrame
2014-09-21Do not allow files or folders inside trash to be added to dolphin's places panelArjun AK
REVIEW: 120286 BUG: 339204 FIXED-IN: 4.14.2
2014-09-02Rename "Recently Accessed" to "Recently Saved"kdeuser 56
In dolphin the Section that leads you to timeline claims to show "Recently Accessed", which is not true, it shows "Recently Saved" instead. BUG: 304854 REVIEW: 119986
2014-07-30Prevent multiple connections between sender and receiverArjun AK
Use a Qt::uniqueConnection so that only one connection exists between the sender and receiver. REVIEW: 119532
2014-04-04Translate bookmark text on update.Marco Nelles
2014-02-06Port Dolphin to BalooVishesh Handa
Nepomuk is being replaced with Baloo
2013-10-30Store the selected items in a more efficient wayFrank Reininghaus
Since Dolphin 2.0, we have stored the selected items in a QSet<int>, which is neither space-efficient nor particularly fast when inserting many items which are in a consecutive range. This commit replaces the QSet<int> by a new class "KItemSet", which stores the items in a sorted list of ranges. For each range, we only store the first index and the length of the range, so we need a lot less memory for most common selection patterns, and we also save quite a few CPU cycles in many situations, because adding an item to the KItemSet will in many cases not need a memory allocation at all, and it's particularly easy when inserting sorted items into the KItemSet in a row. KItemSet contains a minimal subset of QSet's API which makes it suitable as a drop-in replacement for our needs. It also has iterators, such that the items can be iterated through easily, also with foreach. One advantage of KItemSet compared to QSet<int> is that the items are always iterated through in ascending order. REVIEW: 113488
2013-05-28PlacesModel: Only allow folders to be pinnedVishesh Handa
It makes no sense to pin files. Plus the old PlacesModel from kdelibs had the same behaviour. REVIEW: 110347
2013-05-12Make error message translatableFrank Reininghaus
2013-05-07Dolphin Places: React to Nepomuk system changesVishesh Handa
Reload the places panel when Nepomuk starts up and shutsdown. This way the user does not need to restart Dolphin to see the custom searches and places after Nepomuk switches on. BUG: 304918 REVIEW: 110323
2012-11-27Use correct value for autostart setting of Service-nepomukfileindexerLuc Menut
Fixes the problem that the "Recently accessed" entries in the Places Panel might not be shown when using the default setup. BUG: 310770 FIXED-IN: 4.10 Beta 2 REVIEW: 107464
2012-10-30Fix some indentation issuesFrank Reininghaus
2012-10-24Show MTP devices in case support for it is installedAlex Fiestas
Basically adds a conditional that in case that mtp kioslave is installed devices with MTP are added to the predicated. REVIEW: 106651
2012-10-16use better icon for timeline:/ in placesWeng Xuetian
REVIEW: 106874
2012-10-15Port Dolphin from Nepomuk to Nepomuk2 according to the Nepomuk2Port mini ↵Emmanuel Pescosta
guide on techbase - http://techbase.kde.org/Projects/Nepomuk/Nepomuk2Port REVIEW: 106825
2012-09-21Merge branch 'KDE/4.9'Luca Beltrame
Conflicts: konq-plugins/dirfilter/dirfilterplugin.cpp konq-plugins/dirfilter/dirfilterplugin.h
2012-09-20Fixes Bug 304878 - Dolphin shows "ghost" folders in places after autofs ↵Emmanuel Pescosta
umount nfs shares BUG: 304878 REVIEW: 106456 FIXED-IN: 4.9.2
2012-09-11Use a better icon for recently accessed items, part 2Frank Reininghaus
I had missed one places where the incorrect icon was used in my previous commit d7e7ca53bb95c7555bbf107d92b47ac25eda1918. BUG: 304323 FIXED-IN: 4.9.2
2012-08-30Dolphin Places: Only show file results in Nepomuk QueriesVishesh Handa
Dolphin is a file manager, and shouldn't be concerned with non-file resources like notes, contacts and other stuff. Use FileQuery instead of Query. This also results in a faster queries. With File Queries Nepomuk can perform some internal optimizations. BUG: 306029 REVIEW: 106274
2012-07-12Re-implement dropping of files on folders in the Places Panel.Frank Reininghaus
This resolves a regression caused by the Places Panel rewrite. There is a small glitch left when reordering items (dragging below the last or above the first item only shows the drop indicator when first dragging out of the item and then back), but I prefer not to fix this glitch right now because this would require a more intrusive change, and I do not want to risk regressions because is not much time left to fix them before 4.9.0 is released. Thanks to Peter Penz for providing some advice about this issue. BUG: 302557 FIXED-IN: 4.9.0 (cherry picked from commit f4c960025167b7c7e04e1290ac9d9fee03a9b62d)
2012-07-12Re-implement dropping of files on folders in the Places Panel.Frank Reininghaus
This resolves a regression caused by the Places Panel rewrite. There is a small glitch left when reordering items (dragging below the last or above the first item only shows the drop indicator when first dragging out of the item and then back), but I prefer not to fix this glitch right now because this would require a more intrusive change, and I do not want to risk regressions because is not much time left to fix them before 4.9.0 is released. Thanks to Peter Penz for providing some advice about this issue. CCBUG: 302557
2012-06-17Allow to customize text for system-bookmarksPeter Penz
BUG: 301339 FIXED-IN: 4.9.0
2012-06-08Krazy fixesPeter Penz
2012-06-07Hide "Recently Accessed" and "Search for" if indexing is disabledPeter Penz
The bookmarks for "Recently Accessed" and "Search for" require enabled indexing not only an enabled Nepomuk. BUG: 301340 FIXED-IN: 4.9.0
2012-06-07Setup storage device if neededPeter Penz
BUG: 301071 FIXED-IN: 4.9.0
2012-06-02Don't remove/insert an item if no moving has been done at allPeter Penz
2012-06-02Use PlacesItemModel instead of KFilePlacesModelPeter Penz
This allows inserting items to the corresponding group.
2012-05-29Get rid of obsolete DolphinPlacesModelPeter Penz
2012-05-28Implement dropping of items into the Places PanelPeter Penz
Some polishing regarding the icons and group-alignment must still be done, but at least the basic functionality is back again.
2012-05-26Fix triggering of Q_ASSERT in PlacesItemModelPeter Penz
Check the group-type of an item to decide whether the item should be inserted as device or not. BUG: 300671 FIXED-IN: 4.9.0
2012-05-26Minor coding style fixesPeter Penz
2012-05-26Further preperations for drag & drop support in the places panelPeter Penz
2012-05-21Places Panel: Show drop indicatorPeter Penz
The dropping itself has not been implemented yet.
2012-05-18Enable basic drag and drop support for the Places PanelPeter Penz
The dropping has not been implemented yet, however in the context of this step the creating of the drag-pixmap is now forwarded to the item-widgets. This allows creating some optimized dragging-pixmaps e.g. for the details-view, where only the name and icon should be provided as drag-pixmap.
2012-05-17KStandardItemModel: Fix inconsistent internal statePeter Penz
Assure that the index-cache is kept consistent with the items when a removing or inserting is done. A unit-test will be created as soon as possible.
2012-05-16Provide default view properties for system-placesPeter Penz
For the "Recently Accessed"-places and "Search For"-places like documents, images, audio-files and videos proper default properties are created now (e.g. previews and images-sizes are shown when searching for "images" etc).
2012-05-16Update trash-icon dependent on whether the thrash is empty or notPeter Penz
The class PlacesItemStorageAccessListener has been renamed to PlacesItemSignalHandler and represents a generic signal handler for the PlacesItem.
2012-05-16Fix possible crash when hiding itemsPeter Penz
2012-05-16Implement bookmark synchronizationPeter Penz
Whenever the bookmarks are changed by another application, the state must be synchronized within the model.
2012-05-14Let the places-item determine the group itselfPeter Penz
Related improvements: When loading the bookmarks assure in any case that items having the same group are inserted as one single group.
2012-05-14Fix several bookmark synchronization issuesPeter Penz
2012-05-14Translation improvementsPeter Penz
Thanks to Frederik Schwarzer for the suggestions!
2012-05-14PlacesItemModel: Automatically save bookmarksPeter Penz
Prevent that a manual call to save changed bookmarks is necessary.
2012-05-13PlacesItemModel: Remove setItemHidden and isItemHiddenPeter Penz
This should be handled automatically when the hidden-state of the item itself gets toggled.
2012-05-13Places Panel: Prepare code to save state of bookmarksPeter Penz
The saving is still disabled currently until 100 % backward compatibility with KFilePlacesView has been reached.
2012-05-11Places Panel: Implement eject and teardown actionsPeter Penz
Further fixes: - Add/remove item when device has been added/removed - Update emblem if the accessibility-state has been changed
2012-05-09Create items for devices that have not been added as bookmarks yetPeter Penz
2012-05-07Places Panel: Add missing translation stringsPeter Penz
Provide a temporary dummy-implementation with the missing translation strings, so that the translation-string-freeze gets respected.
2012-05-05Places Panel: Provide access to devicesPeter Penz
2012-05-03Places Panel: Implement PlacesItemModel::setHiddenItemsShown(false)Peter Penz