┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2011-10-25Fix minor graphical issue in group header and itemsPeter Penz
2011-10-24Make group-headers less uglyPeter Penz
2011-10-23Improve group-header layoutPeter Penz
- Apply a dynamic width - Use a height that depends on the style - Cleanup some interfaces and replace xxxBoundingRect() by xxxRect()
2011-10-22Mousewheel-support: Use smaller scroll-stepsPeter Penz
Use only 1/4 of the scrollbar-page-size when the mousewheel is used. BUG: 284646 FIXED-IN: 4.8.0
2011-10-22Fix crash when grouping itemsPeter Penz
Because of a wrong usage of parent() vs. parentItem() a crash could occur because the parent might be assigned to an already deleted instance.
2011-10-22Implement grouping for namesPeter Penz
- Use a custom header for KFileItems - Cache the groups - Allow enabling/disabling grouping dynamically Currently there is a random crash in combination with the groupheader-recycler, this will be fixed during the next days.
2011-10-18Implement group-header layoutingPeter Penz
The most tricky part for groups - the layouting - basically works now for all views (grouping was available only in the icons views for Dolphin 1.x) and is nearly equally fast as without groups. Still open: - Group headers are ugly screen rectangles - Return valid groups in KFileItemModel instead of the currently hardcoded testing values - Dynamically turning on/off groups does not work currently, the directory must be reentered
2011-10-16Sort the items in DolphinView::selectedItems(), part 2Frank Reininghaus
I forgot this change in the last commit. CCBUG:283409
2011-10-16Sort the items in DolphinView::selectedItems()Frank Reininghaus
Before this commit, the order of the items in the list returned by DolphinView::selectedItems() was random. Now the items are sorted like they are sorted in the view. BUG: 283409
2011-10-15Interface cleanups to prepare the return of "grouped sorting"Peter Penz
- Rename setCategorizedSorting() to setGroupedSorting() - Change the model interface to allow enabling/disabling grouping without the need to declare a role (the sort role will be taken). - Add dummy group role implementation in KFileItemModel The grouping code itself requires some cleanups and might crash at the moment or lead to weird layouts.
2011-10-15Fix regression concerning Control+mouse wheel zoomingFrank Reininghaus
Commit 9311f4bc97ec7000be46b8eec242a8 accidentally removed DolphinView::wheelEvent(), which is responsible for the handling of Control+mouse wheel events. These should change the zoom level.
2011-10-14Activate the DolphinView if the KItemListContainer gets focusFrank Reininghaus
This is needed in the case that the view is split to make the DolphinMainWindow aware of the view which is currently active.
2011-10-10Remove workaround to draw the focus indicator manuallyPeter Penz
In Oxygen the focus-indicator has only been drawn for widget instances derived from QAbstractItemView and Q3ListView, so it was not possible in Dolphin to use the style for drawing. This has been fixed now in Oxygen, so using the style works now. The custom code for drawing the text background will be removed and replaced by a style-code later. CCMAIL: [email protected]
2011-10-10Allow changing shortcuts for the Panel actionsPeter Penz
Until now the shortcuts of the Panel actions could not be changed as they did not show up in the "Configure shortcuts..." dialog. The patch is based on the work of "SiegeLord" and Fabian Henze attached to bug 273050. BUG: 273050 FIXED-IN: 4.8.0
2011-10-09avoid two possible null pointer dereferencesJaime Torres
move the setToolTip lines outside the if(action) inside it. do not crash if there is no action.
2011-10-08Don't let KItemListView decide itself whether to show the headerPeter Penz
The header should be turned on or off by the user of the KItemListView classes.
2011-10-08Details-view: Fix column-width issuePeter Penz
The column-width must respect the minimum width of the header-roles.
2011-10-08Remember the changed header-roles as part of the directoryPeter Penz
2011-10-08Context menu cleanupsPeter Penz
- Open the context menu on the mouse-press event, not on the mouse-release event. - Provide an explicit position-information and don't use QCursor::pos(). This fixes the issue that opening a context-menu by the keyboard opens below the cursor. - Provide different signals in the KItemListController for the different context-menu types (item vs. view vs. header). - Implement turning on/off roles by the header-context-menu.
2011-10-06Assure that the rubberband is drawn above the items and not belowPeter Penz
2011-10-06Provide alternating background colors for the details-viewPeter Penz
2011-10-06Use QFontMetrics::height() instead of averageCharWidth()Peter Penz
QFontMetrics::averageCharWidth() is quite slow and does not work well on fonts with broken characters. In the usecases required by Dolphin QFontMetrics::height() is a better and faster alternative to get a font-dependent minimum width. Thanks go to Christoph Feck for this hint!
2011-10-05Don't apply an empty item-size to the layoutPeter Penz
This fixes strange layout-issues when turning on/off previews in the details-view. CCBUG: 278899
2011-10-03Add function KItemListSelectionManager::isSelected(int index)Frank Reininghaus
This function is used in KItemListView::updateWidgetProperties() to find out if an item is selected in a more efficient way. The new function is tested in KItemListSelectionManagerTest. I've factored out some code from KItemListSelectionManagerTest::testChangeSelection() to a new member to simplify the test.
2011-10-03Remove TODO-comment which isn't needed anymoreFrank Reininghaus
2011-10-03Keep current item and selection when resorting, part 2Frank Reininghaus
This commit adds the missing pieces to KItemListView and makes KFileItemModel::resortAllItems() only emit the itemsMoved() signal.
2011-10-02Elide the texts if the user shrinks the column-widthsPeter Penz
2011-10-02Fix layout when the header has been adjusted by the userPeter Penz
2011-10-01Fix itemsMoved() signal/slot signature: KItemRangeList -> KItemRangeFrank Reininghaus
2011-09-30Implement smooth-scrolling for horizontal and vertical scrollbarsPeter Penz
Currently only a smoothscrolling was provided into the scroll-direction, but not in case of the details-view where a horizontal scrollbar might be shown too. Some minor adjustments of the private KItemListSmoothScroller interface will be done later...
2011-09-29Keep current item and selection when resorting, part 1Frank Reininghaus
KFileItemModel now emits the itemsMoved signal when the model is resorted, and KItemListSelectionManager has a new function itemsMoved() which will be called indirectly when this signal is emitted. Unit tests for the new functionality are included. The following things are still needed to make the feature work: 1. KFileItemMdel::resortAllItems() should not emit itemsAdded/itemsRemoved any more. 2. KItemListView::itemsMoved() must update the view according to the changes in the model, and it must call KItemListSelectionManager::itemsMoved().
2011-09-28Details view: Improve performance when expanding itemsPeter Penz
Prevent unnecessary calls to visibleRolesSizes() when expanding items. Also the performance has been improved when resizing the window.
2011-09-27Details view: Improve performancePeter Penz
When inserting items or when updating the item-roles there is no need to recalculate the column-widths for all items to get an optimized column-width.
2011-09-27SVN_SILENT made messages (.desktop file)Script Kiddy
2011-09-25Provide scrollbar for large itemsPeter Penz
If an item does not fit into the available width/height a scrollbar should be provided (e.g. typically this represents the horizontal scrollbar in the details-view where the width can be larger than the than the visible width). Currently the interaction with the scrollbar is not implemented but this will be a quite minor task in comparison to this patch.
2011-09-25Fix a spelling mistake in Dolphin.Andrius Štikonas
2011-09-25Fixed selection of directories with a trailing slash used with --selectChirag Anand
parameter. As QHash would not match a KUrl key with it's value if the key had a trailing slash, so it would return -1, hence the file won't get selected. Changed the UpdateViewState slot to remove the trailing slash before calling the index function for the selected URL. Also modified DolphinView to use KUrl list instead of KFileItemList to maintain simplicity.
2011-09-24Update the layout asynchronously when items are changedPeter Penz
This results in less overhead if item-changes are done rather fast (e.g. when applying the number of sub directories for the "size" role).
2011-09-24Fix size-hint calculation in KFileItemListViewPeter Penz
The current approach works fine but should be replaced in the longterm by a helper class shared by KFileItemListWidget and KFileItemListView to share information that is required to calculate the size hints in KFileItemListView and to represent the actual data in KFileItemListWidget.
2011-09-23Increase the width of the first column automaticallyPeter Penz
Additionally it is assured that on role-changes the size-hints get updated if necessary.
2011-09-23Allow resizing of columns by the userPeter Penz
Still open: - Column content is not clipped correctly - First column is not automatically increased to the available width like in Dolphin 1.7
2011-09-22Update the layout periodically when resizing the windowPeter Penz
Up to now the layout has only been updated when the geometry has not been changed for at least 300 ms. This has been changed so that at least each 300 ms the layout is updated to give a better visual feedback when resizing the window.
2011-09-22KItemListHeader: Allow resizing and change of the sortingPeter Penz
KItemListView does not react on the resizing yet. Toggling the sort order and changing the sort role is already possible.
2011-09-22Remove debugging outputPeter Penz
2011-09-22Fixed bug for selecting files with --select parameter.Chirag Anand
Files selected via --select parameter did not get current item focus. And if files were deleted while being current item, updating the view would select the next item instead of the first item in the list. BUG: 257805 CCMAIL: [email protected] CCMAIL: [email protected]
2011-09-21Improve drawing of list-headerPeter Penz
2011-09-20Show the role-description in the header of the details viewPeter Penz
2011-09-20Change signature of setVisibleRoles()Peter Penz
Simply use a QList<QByteArray> instead of QHash<QByteArray, int>.
2011-09-19Fixed documentation of KItemModelBase::itemsMoved()Peter Penz
2011-09-19Draw styled header for the details-viewPeter Penz