]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
14 years agoFix style-issues in items when not using Oxygen
Peter Penz [Thu, 5 Jan 2012 19:13:49 +0000 (20:13 +0100)]
Fix style-issues in items when not using Oxygen

Thanks to Jonathan Marten and Christoph Feck for the analyses
and the patch.

Still open: The focus frame in cleanlooks is not drawn.

CCBUG: 290536

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Wed, 4 Jan 2012 08:28:08 +0000 (09:28 +0100)]
SVN_SILENT made messages (.desktop file)

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Tue, 3 Jan 2012 15:51:07 +0000 (16:51 +0100)]
SVN_SILENT made messages (.desktop file)

14 years agoFix inconsistency in selection manager
Peter Penz [Thu, 29 Dec 2011 23:02:17 +0000 (00:02 +0100)]
Fix inconsistency in selection manager

When a selection has been done with non-linear ranges, it was possible that
the anchor item pointed to an invalid index that resulted into an invalid
selection.

As part of this fix the sorting for DolphinView::selectedItems() has been
disabled (if the caller assumes a sorted selection he must manually adjust it).

BUG: 288908
FIXED-IN: 4.8.0

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Thu, 29 Dec 2011 09:43:55 +0000 (10:43 +0100)]
SVN_SILENT made messages (.desktop file)

14 years agoFix issue that dragging pictures/videos to Google-Search/YouTube fails
Peter Penz [Tue, 27 Dec 2011 14:50:02 +0000 (15:50 +0100)]
Fix issue that dragging pictures/videos to Google-Search/YouTube fails

BUG: 289917
BUG: 278236
FIXED-IN: 4.8.0

14 years agoFix group-header clipping in compact mode
Peter Penz [Tue, 27 Dec 2011 08:09:57 +0000 (09:09 +0100)]
Fix group-header clipping in compact mode

14 years agoFix icon alignment issue in the details view
Peter Penz [Tue, 27 Dec 2011 07:32:45 +0000 (08:32 +0100)]
Fix icon alignment issue in the details view

BUG: 289889
FIXED-IN: 4.8.0

14 years agoMinor cleanup: Rename m_keyboardAnchorXPos to m_keyboardAnchorPos
Peter Penz [Mon, 26 Dec 2011 21:42:49 +0000 (22:42 +0100)]
Minor cleanup: Rename m_keyboardAnchorXPos to m_keyboardAnchorPos

14 years agoImprove item offset scrolling
Peter Penz [Mon, 26 Dec 2011 21:28:54 +0000 (22:28 +0100)]
Improve item offset scrolling

Don't check whether the m_layoutTimer is active: Changing the
item offset must always trigger a synchronous layout, otherwise
the smooth-scrolling might get jerky.

14 years agoFix keyboard issues when groups are enabled
Peter Penz [Mon, 26 Dec 2011 21:16:32 +0000 (22:16 +0100)]
Fix keyboard issues when groups are enabled

When groups are enabled in Dolphin the key-up and key-down keys did not behave
consistent in comparison to traditional views or like done in editors.

CCBUG: 261995
CCBUG: 262038

14 years agoFix grouping issue
Peter Penz [Sun, 25 Dec 2011 21:34:45 +0000 (22:34 +0100)]
Fix grouping issue

When switching to a group that is not shown currently, the group headers
won't be updated. The root-cause was that the m_groups-cache must be reset
when the roles have been changed.

CCBUG: 289654

14 years agoFix wrong grouping of types
Peter Penz [Sun, 25 Dec 2011 10:35:05 +0000 (11:35 +0100)]
Fix wrong grouping of types

- Uninitialized types count as one group
- Let the receiver of the signal itemsMoved() decide whether unmoved items
  really result in an unchanged visual appearance. This might e.g. be the case
  if the grouping is turned on and the group-names change although the items
  themselves have not changed their position.

BUG: 289654
FIXED-IN: 4.8.0

14 years agoFix sort-issue for trees
Peter Penz [Sat, 24 Dec 2011 13:12:09 +0000 (14:12 +0100)]
Fix sort-issue for trees

If a protocol like fish is used, the sorting of sub-trees was wrong. The root
cause was a wrong comparing of URLs where the protocol was not initialized.

BUG: 289697
FIXED-IN: 4.8.0

14 years agoDon't show the name as part of the "path" role
Peter Penz [Fri, 23 Dec 2011 22:36:32 +0000 (23:36 +0100)]
Don't show the name as part of the "path" role

This allows a useful grouping by paths when e.g. searching files.

BUG: 269335
FIXED-IN: 4.8.0

14 years agoIntroduce "isExpandable" role
Peter Penz [Fri, 23 Dec 2011 22:05:08 +0000 (23:05 +0100)]
Introduce "isExpandable" role

The role is used to determine whether a directory can be expanded at all. This
is e.g. not the case if a directory has 0 items or the target-URL is different
from the item-URL.

The expansion toggle will get hidden if a directory is not expandable.

CCBUG: 288521

14 years agoFix possible double entries in details view
Peter Penz [Fri, 23 Dec 2011 20:10:32 +0000 (21:10 +0100)]
Fix possible double entries in details view

The patch 30ae57ba807ecadfdef833a4895621fc330badc9 did not resolve the
issue completely: The pending items to insert must be dispatched before
checking for duplicates.

Related to this report the expanding for the remote-protocol has been
disabled.

BUG: 288521
FIXED-IN: 4.8.0

14 years agoThe key "space" should select the current item
Peter Penz [Fri, 23 Dec 2011 15:01:23 +0000 (16:01 +0100)]
The key "space" should select the current item

Also in case if only one item is shown the navigation-keys should
trigger a selection of the current item. This works now consistent
within all view-modes (there have been been behavior differences
in Dolphin 1.7 depending on the used mode).

BUG: 289589
FIXED-IN: 4.8.0

14 years agoIncreased version to 2.0
Peter Penz [Fri, 23 Dec 2011 13:37:47 +0000 (14:37 +0100)]
Increased version to 2.0

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Fri, 23 Dec 2011 09:33:39 +0000 (10:33 +0100)]
SVN_SILENT made messages (.desktop file)

14 years agoReenable drag & drop for the URL navigator
Peter Penz [Thu, 22 Dec 2011 20:58:18 +0000 (21:58 +0100)]
Reenable drag & drop for the URL navigator

BUG: 289568
FIXED-IN: 4.8.0

14 years agoDon't show child items of collapsed parent items
Peter Penz [Thu, 22 Dec 2011 20:46:17 +0000 (21:46 +0100)]
Don't show child items of collapsed parent items

If a parent item got expanded and collapsed again, KDirLister keeps
the items of the previously expanded directory. Hence inserting new
items there will result in emitting the signal newItems() and a check
must be done whether the parent is still expanded.

BUG: 289598
FIXED-IN: 4.8.0

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Thu, 22 Dec 2011 10:37:00 +0000 (11:37 +0100)]
SVN_SILENT made messages (.desktop file)

14 years agoFix first visible index calculation
Peter Penz [Wed, 21 Dec 2011 22:17:13 +0000 (23:17 +0100)]
Fix first visible index calculation

When having a row with different item-heights, the calculation of the
first visible index might have been wrong.

14 years agoUpdate previews when the preview-plugin settings have changed
Peter Penz [Wed, 21 Dec 2011 20:45:46 +0000 (21:45 +0100)]
Update previews when the preview-plugin settings have changed

Thanks to Janardhan Reddy for the initial patch.

BUG: 288726
FIXED-IN: 4.8.0

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Wed, 21 Dec 2011 08:54:51 +0000 (09:54 +0100)]
SVN_SILENT made messages (.desktop file)

14 years agoFix autoscroll issue when selecting items
Peter Penz [Tue, 20 Dec 2011 22:05:20 +0000 (23:05 +0100)]
Fix autoscroll issue when selecting items

If items get selected with the rubberband the scroll offset must stay inside
the visible range.

BUG: 282353
FIXED-IN: 4.8.0

14 years agoRemove child items when a parent item gets deleted
Peter Penz [Tue, 20 Dec 2011 21:20:20 +0000 (22:20 +0100)]
Remove child items when a parent item gets deleted

BUG: 289447
FIXED-IN: 4.8.0

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Tue, 20 Dec 2011 15:23:36 +0000 (16:23 +0100)]
SVN_SILENT made messages (.desktop file)

14 years agoShow an error when dragging above a folder without write access
Peter Penz [Tue, 20 Dec 2011 07:56:32 +0000 (08:56 +0100)]
Show an error when dragging above a folder without write access

Got OK from the translator team to add this new string.

14 years agoKFileItemModel: Always use upper case letters to group by name
Frank Reininghaus [Tue, 20 Dec 2011 01:03:31 +0000 (02:03 +0100)]
KFileItemModel: Always use upper case letters to group by name

This fixes the following problems:
1. In a folder containing the items ~a and b, the first group,
   containing ~a, is named "Others".
2. In a folder containing the items a, ~b, ~c, and ~d, the first group
   "A" contains a and ~b, and the other two items are in the group
   "Others".

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Mon, 19 Dec 2011 14:32:33 +0000 (15:32 +0100)]
SVN_SILENT made messages (.desktop file)

14 years agoHide tooltips when dragging items
Peter Penz [Sun, 18 Dec 2011 19:28:47 +0000 (20:28 +0100)]
Hide tooltips when dragging items

14 years agoTurn off animations if they are globally disabled
Peter Penz [Sun, 18 Dec 2011 14:33:53 +0000 (15:33 +0100)]
Turn off animations if they are globally disabled

Respect the graphicseffect level in the system settings. This will disable
all item-animations if the graphicseffect level is "NoEffect".

The smooth scrolling won't be disabled in this case, but the duration has been
made smaller so that it is not recognized as an animation.

BUG: 289238
FIXED-IN: 4.8.0

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Sun, 18 Dec 2011 08:51:34 +0000 (09:51 +0100)]
SVN_SILENT made messages (.desktop file)

14 years agoForce a root-expansion level for the trash protocol
Peter Penz [Sat, 17 Dec 2011 22:17:12 +0000 (23:17 +0100)]
Force a root-expansion level for the trash protocol

14 years agoDetermine the path of the trash-protocol correctly
Peter Penz [Sat, 17 Dec 2011 22:11:33 +0000 (23:11 +0100)]
Determine the path of the trash-protocol correctly

14 years agoHide tooltips when the view is scrolled
Peter Penz [Sat, 17 Dec 2011 22:01:02 +0000 (23:01 +0100)]
Hide tooltips when the view is scrolled

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Sat, 17 Dec 2011 08:44:01 +0000 (09:44 +0100)]
SVN_SILENT made messages (.desktop file)

14 years agoAnimation finetuning
Peter Penz [Fri, 16 Dec 2011 22:55:48 +0000 (23:55 +0100)]
Animation finetuning

If dynamic item sizes are used don't animate the size of the widget
in along the dynamic direction. This prevents unnecessary animations when
increasing the window width in combination with e.g. the details view.

14 years agoMinor layout and coding style cleanups
Peter Penz [Fri, 16 Dec 2011 22:37:49 +0000 (23:37 +0100)]
Minor layout and coding style cleanups

- Disable performance debugging output
- Force a synchronous layout during scrolling. This prevents having a jerky
  scroll-animation if there are pending operations ongoing in parallel.
- Minor coding style cleanups

14 years agoUpdate the roles if items have been changed
Peter Penz [Fri, 16 Dec 2011 21:01:04 +0000 (22:01 +0100)]
Update the roles if items have been changed

The code "// TODO..." in slotItemsChanged() obviously was not
sufficient ;-)

BUG: 288691
BUG: 288824
BUG: 288921
FIXED-IN: 4.8.0

14 years agoAssure that the general settings are refreshed
Peter Penz [Fri, 16 Dec 2011 18:41:32 +0000 (19:41 +0100)]
Assure that the general settings are refreshed

This fixes issues where Dolphin must get restarted after changing
a general setting.

BUG: 289131
FIXED-IN: 4.8.0

14 years agoRenameDialog: Don't disable the OK-button if nothing has been changed
Peter Penz [Thu, 15 Dec 2011 15:39:51 +0000 (16:39 +0100)]
RenameDialog: Don't disable the OK-button if nothing has been changed

This prevents using the RETURN-key when accidently opening the
renaming dialog.

Thanks to Thomas Murach for pointing this out and providing the patch!

REVIEW: 103414

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Thu, 15 Dec 2011 08:09:04 +0000 (09:09 +0100)]
SVN_SILENT made messages (.desktop file)

14 years agoStart an anchored selection when clicking a selection marker
Frank Reininghaus [Wed, 14 Dec 2011 23:36:30 +0000 (00:36 +0100)]
Start an anchored selection when clicking a selection marker

BUG:200782
FIXED-IN:4.8.0

14 years agoFix descending sort order issue
Peter Penz [Wed, 14 Dec 2011 23:22:48 +0000 (00:22 +0100)]
Fix descending sort order issue

If the sort order is descending and directories and files are
shown on the same hierarchy level, the sorting was partly wrong.

14 years agoDon't show an expansion toggle for locked expansions
Peter Penz [Wed, 14 Dec 2011 23:04:57 +0000 (00:04 +0100)]
Don't show an expansion toggle for locked expansions

14 years agoFix expansion levels for search results
Peter Penz [Wed, 14 Dec 2011 22:43:46 +0000 (23:43 +0100)]
Fix expansion levels for search results

Force an expansion level of 0 for search results to prevent
showing tabbed child items without parent items.

14 years agoFix filtering issue in combination with expanded items
Peter Penz [Wed, 14 Dec 2011 21:58:00 +0000 (22:58 +0100)]
Fix filtering issue in combination with expanded items

When items have been expanded they should never get filtered, as
each child item must have a parent item.

14 years agoImprove private method KFileItemModel::expansionLevelsCompare()
Peter Penz [Wed, 14 Dec 2011 21:30:25 +0000 (22:30 +0100)]
Improve private method KFileItemModel::expansionLevelsCompare()

Get rid of the hack to access the m_itemData member for getting
the parent of an item during sorting. ItemData has been extended
by a parent-member which allows a fast and save way to do this.

Sadly this makes the unit-test for expansionLevelsCompare() more
complex and it has been temporary deactivated. I'll take care to
fix this during the next week.

14 years agoFix comment
Peter Penz [Tue, 13 Dec 2011 23:03:03 +0000 (00:03 +0100)]
Fix comment

14 years agoFix several sort-issues
Peter Penz [Tue, 13 Dec 2011 22:38:57 +0000 (23:38 +0100)]
Fix several sort-issues

- Treeview: When sorting descending assure that the parent item is still
  ordered before the child items and not afterwards.
- Treeview: When sorting by other roles than names expansionsLevelCompare()
  had been buggy and resulted in ordering child items below wrong parent
  items.
- General: When sorting by another role than names and the role of
  two items had been equal a case sensitive sorting of the names had
  been done. This has been fixed by using the default name sorting
  as fallback.

BUG: 286726
FIXED-IN: 4.8.0

14 years agodolphin: DLLEXPORT is not valid for template class
Michael Drueing [Tue, 13 Dec 2011 22:03:35 +0000 (23:03 +0100)]
dolphin: DLLEXPORT is not valid for template class

MSVC tries to import the specialized class from the library, which fails because only the generic version can be exported.
GCC probably silently ignores the export.

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Tue, 13 Dec 2011 14:50:11 +0000 (15:50 +0100)]
SVN_SILENT made messages (.desktop file)

14 years agoRespect style's viewport scrollbar layout policy
Christoph Feck [Mon, 12 Dec 2011 16:36:19 +0000 (17:36 +0100)]
Respect style's viewport scrollbar layout policy

REVIEW: 103381

14 years agoRemember sort settings
Peter Penz [Sun, 11 Dec 2011 19:23:21 +0000 (20:23 +0100)]
Remember sort settings

If the user has changed the sort-role or sort-order by clicking on the view-header of the details-view, the settings have been adjusted to the model but not remembered in the directory settings.

14 years agoFix KItemListView::scrollToItem()
Peter Penz [Sun, 11 Dec 2011 18:33:15 +0000 (19:33 +0100)]
Fix KItemListView::scrollToItem()

Don't let the item be invisible if the header is shown.

14 years agoScroll the view when the current item has been changed
Peter Penz [Sun, 11 Dec 2011 18:20:39 +0000 (19:20 +0100)]
Scroll the view when the current item has been changed

We need now explicitly to scroll to the item when the current item has been changed, as this is not done automatically in the scope of KItemListView.

BUG: 288745
FIXED-IN: 4.8.0

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Sun, 11 Dec 2011 07:36:39 +0000 (08:36 +0100)]
SVN_SILENT made messages (.desktop file)

14 years agoFix issue that icon overlay is missing for links
Peter Penz [Sat, 10 Dec 2011 22:02:04 +0000 (23:02 +0100)]
Fix issue that icon overlay is missing for links

BUG: 288609
FIXED-IN: 4.8.0

14 years agoShow error-message when dropping a folder into itself
Peter Penz [Sat, 10 Dec 2011 20:47:56 +0000 (21:47 +0100)]
Show error-message when dropping a folder into itself

Thanks to Janardhan Reddy for the analysis of the issue!

BUG: 283646
FIXED-IN: 4.8.0

14 years agoMinor fix in copyright header
Peter Penz [Sat, 10 Dec 2011 20:37:40 +0000 (21:37 +0100)]
Minor fix in copyright header

This class is not based on the ItemViews-NG project.

14 years agoSupport wildcards for the filter
Peter Penz [Sat, 10 Dec 2011 20:28:01 +0000 (21:28 +0100)]
Support wildcards for the filter

Thanks to Janardhan Reddy for the patch!

BUG: 155986
FIXED-IN: 4.8.0

14 years agoResort items when they have been changed
Peter Penz [Sat, 10 Dec 2011 11:23:06 +0000 (12:23 +0100)]
Resort items when they have been changed

This assures that when renaming an item the sort-position will be adjusted. Thanks to Frank Reininghaus and Janardhan Reddy for the patch and the tests.

BUG: 288311

14 years agoFix issue with duplicate items in details view
Peter Penz [Fri, 9 Dec 2011 20:49:59 +0000 (21:49 +0100)]
Fix issue with duplicate items in details view

When expanding an item, collapsing it and expanding it again before the items for the first expanding could be loaded, it was possible that items have been inserted twice into the model.

BUG: 288521
FIXED-IN: 4.8.0

14 years agoReloading is not necessary anymore on a settings change
Peter Penz [Fri, 9 Dec 2011 15:53:46 +0000 (16:53 +0100)]
Reloading is not necessary anymore on a settings change

The new view-engine can adjust the properties with the existing items.

14 years agoFix font settings issue
Peter Penz [Thu, 8 Dec 2011 22:08:01 +0000 (23:08 +0100)]
Fix font settings issue

The font settings have been ignored currently because of the transition to the new view-engine.

The patch is based on the work of Janardhan Reddy and has been extended by the helper class ViewModeSettings.

BUG: 288395
FIXED-IN: 4.8.0

14 years agoFix "show hidden files" issues
Peter Penz [Thu, 8 Dec 2011 10:05:27 +0000 (11:05 +0100)]
Fix "show hidden files" issues

Use KFileItemModel instead of KDirLister for toggling the whether
hidden files should be shown. This assures that the signal
KFileItemModel::loadingCompleted() will be emitted.

In the longterm Dolphin should only use the KFileItemModel, so that
the KDirLister instance is used only internally as implementation
detail in KFileItemModel. Although there are only a few cases left
where KDirLister is used instead of KFileItemModel this cleanup
will be postponed to after the 4.8 release...

BUG: 287314
BUG: 288213
FIXED-IN: 4.8.0

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Thu, 8 Dec 2011 08:02:45 +0000 (09:02 +0100)]
SVN_SILENT made messages (.desktop file)

14 years agoPrevent unwanted item animations (#2)
Peter Penz [Wed, 7 Dec 2011 22:46:35 +0000 (23:46 +0100)]
Prevent unwanted item animations (#2)

Use a cleaner approach to prevent item animations when showing
a hidden tab the first time. For Dolphin > 2.0 the tab-code should
be refactored from DolphinMainWindow and encapsulated into an
own module (but well, this is on my TODO-list since KDE SC 4.4...)

14 years agoEnable "menu key" functionality
Peter Penz [Wed, 7 Dec 2011 22:04:09 +0000 (23:04 +0100)]
Enable "menu key" functionality

Bring back the functionality that a context-menu is opened if the "menu key" has been pressed. In opposite to Dolphin 1.7 the context-menu is shown above the selected item and not on the (probably unrelated) mouse position.

A new method KItemListView::itemContextRect() has been introduced: The method is now also used as reference for tooltips which fixes the issue that tooltips had a wrong horizontal alignment in the details-view.

BUG: 288366
FIXED-IN: 4.8.0

14 years agoPrevent unwanted item animations
Peter Penz [Wed, 7 Dec 2011 20:55:55 +0000 (21:55 +0100)]
Prevent unwanted item animations

When splitting the view or opening a new tab there should not be
any animation of the items due to a wrong initial viewport size.

14 years agoFix issue of unknown icon-types
Peter Penz [Wed, 7 Dec 2011 17:35:30 +0000 (18:35 +0100)]
Fix issue of unknown icon-types

If the split-view is used and/or the Folders Panel is activated
it might happen that the "unknown"-icon of an item is shown instead
of the correct icon. The root-cause is that one model might already
have been resolved the MIME-type of a KFileItem while the other
model has not updated the icon yet. As KFileItems are shared the
check whether the MIME-type has been resolved is wrong. As at that
stage it is assured anyhow that the MIME-type is known just
applying the icon-name in any case won't slow down the performance.

14 years agoFix icon boundaries issue
Peter Penz [Wed, 7 Dec 2011 14:30:55 +0000 (15:30 +0100)]
Fix icon boundaries issue

The size of the icon boundaries should be as minimal as possible.
The patch for fixing the zooming-issues with the selection resulted
into a minor regression where the icon boundaries might be too large.
This patch remembers the original size of the pixmap to be able
to scale m_iconRect.

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Wed, 7 Dec 2011 08:21:22 +0000 (09:21 +0100)]
SVN_SILENT made messages (.desktop file)

14 years agoUse scaled size for KFileItemListWidget::iconRect()
Peter Penz [Tue, 6 Dec 2011 20:35:20 +0000 (21:35 +0100)]
Use scaled size for KFileItemListWidget::iconRect()

This prevents temporary selection rectangle issues when zooming
the icon sizes.

BUG: 287542
FIXED-IN: 4.8.0

14 years agoVersion control: Don't tint unversioned files
Peter Penz [Tue, 6 Dec 2011 20:24:44 +0000 (21:24 +0100)]
Version control: Don't tint unversioned files

BUG: 287742
FIXED-IN: 4.8.0

14 years agoSelection and current item fixes
Peter Penz [Tue, 6 Dec 2011 20:15:36 +0000 (21:15 +0100)]
Selection and current item fixes

- Remember selection + current item when switching view-modes
- Fix the current item indicator alignment for selections
- Set the item as current item when the selection toggle has
  been clicked

14 years agoDon't animate when switching view-modes
Peter Penz [Tue, 6 Dec 2011 18:46:31 +0000 (19:46 +0100)]
Don't animate when switching view-modes

Currently when switching the view-modes an animation of the items
is done, where the position and size is adjusted for the new
view-mode.

Although this might look nice initially I'd consider this as a
kind of animation that is distracting and hence it has been
turned off.

14 years agoFix possible crash in SearchPanel::urlChanged()
Peter Penz [Tue, 6 Dec 2011 18:28:39 +0000 (19:28 +0100)]
Fix possible crash in SearchPanel::urlChanged()

m_lastSetUrlStatJob gets a dangling pointer if we don't have a
Nepomuk URL.

Thanks to Frank Reininghaus for the analysis and the hint!

BUG: 287075
FIXED-IN: 4.8.0

14 years agoFolders Panel cleanups
Peter Penz [Tue, 6 Dec 2011 18:20:48 +0000 (19:20 +0100)]
Folders Panel cleanups

- Reactivate dropping of URLs
- Remove unused/obsolete code
- Simplify DragAndDropHelper interface

14 years agoFix selection issue for Information Panel
Peter Penz [Tue, 6 Dec 2011 17:49:12 +0000 (18:49 +0100)]
Fix selection issue for Information Panel

When the selection changes during the Information Panel is
invisible, it still should get applied so that when making the
Information Panel visible again a valid selection is shown.

Thanks to A. Janardhan Reddy for the patch!

(Additionally the obsolete check for an empty selection has
been removed, as this cannot happen anymore with the new view
engine)

BUG: 281452
FIXED-IN: 4.8.0

14 years agoReactivate drop-above-places-panel functionality
Peter Penz [Tue, 6 Dec 2011 15:28:04 +0000 (16:28 +0100)]
Reactivate drop-above-places-panel functionality

Dropping items into the Places panel has been temporary deactivated because
of switching to the new view-engine -> reactivate it again

BUG: 204359
FIXED-IN: 4.8.0

14 years agoFix calculation of maximum scroll offset
Peter Penz [Mon, 5 Dec 2011 18:56:41 +0000 (19:56 +0100)]
Fix calculation of maximum scroll offset

The maximum scroll offset must be the maximum y-range of the last
row, not only the maximum of the last item.

Thanks to Frank Reininghaus for analysing the root-cause and
for providing the initial patch!

BUG: 287211
FIXED-IN: 4.8.0

14 years agoUpdate the view if an item is renamed
Frank Reininghaus [Sun, 4 Dec 2011 18:33:56 +0000 (19:33 +0100)]
Update the view if an item is renamed

14 years agoFix crash #2 when filtering items
Peter Penz [Sun, 4 Dec 2011 19:45:54 +0000 (20:45 +0100)]
Fix crash #2 when filtering items

When KFileItems get removed from the model it is temporary possible
that the pending items are still part of the KFileItemModelRolesUpdater
while they have already been removed from the model (this happens
in the context during the signal itemsRemoved() gets emitted).

BUG: 287642

14 years agoFix crash #1 when filtering items
Peter Penz [Sun, 4 Dec 2011 17:16:39 +0000 (18:16 +0100)]
Fix crash #1 when filtering items

When filtering items it was possible that the current index got
an invalid value which resulted in accessing the URL of a
null-KFileItem.

There is still one (general) open issue in KFileItemModelRolesUpdater
(crash #2) where a KFileItem that is already null gets read.
It is not really related to filtering but can be triggered
quite easy when filtering huge directories with enabled previews.

CCBUG: 287642

14 years agoMake sure that enabling previews triggers the generation of previews
Frank Reininghaus [Sun, 4 Dec 2011 13:41:30 +0000 (14:41 +0100)]
Make sure that enabling previews triggers the generation of previews

Before this commit, no previews were generated if the icon size was the
same with and without previews.

14 years agoUpdate the zoom slider if the previews setting is changed
Frank Reininghaus [Sun, 4 Dec 2011 13:10:20 +0000 (14:10 +0100)]
Update the zoom slider if the previews setting is changed

This is important if the zoom levels are different with previews
enabled/disabled.

14 years agoClear the selection in MousePressEvent() rather than MouseReleaseEvent()
Frank Reininghaus [Sun, 4 Dec 2011 12:37:51 +0000 (13:37 +0100)]
Clear the selection in MousePressEvent() rather than MouseReleaseEvent()

This fixes the problem that clicking an unselected item in order to drag
it would result in dragging all previously selected items as well. With
this commit, previously selected items are unselected when a new item is
clicked.

The reason why clearing the selection was moved to MouseReleaseEvent()
in commit b583dd6d4d3a03e3af2ec8d370132b84935ff871 was that clicking one
of several selected items should not result in unselecting the other
items (to make sure that dragging multiple items is possible). However,
this can also be assured by just checking in MousePressEvent() if the
clicked item has been selected already and not clearing the previous
selection in that case. This applies equally to the case that a context
menu is requested when several items are selected.

14 years agoavoid double margins
Ni Hui [Sun, 4 Dec 2011 10:17:58 +0000 (18:17 +0800)]
avoid double margins

14 years agoUpdate the current item during rubber band selections
Frank Reininghaus [Sat, 3 Dec 2011 17:09:34 +0000 (18:09 +0100)]
Update the current item during rubber band selections

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Sat, 3 Dec 2011 08:31:16 +0000 (09:31 +0100)]
SVN_SILENT made messages (.desktop file)

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Fri, 2 Dec 2011 08:58:31 +0000 (09:58 +0100)]
SVN_SILENT made messages (.desktop file)

14 years agoReimplement name-filtering
Peter Penz [Tue, 29 Nov 2011 23:18:22 +0000 (00:18 +0100)]
Reimplement name-filtering

The filtering of items has not been implemented yet in
the KFileItemModel of the new view-engine. The patch brings back
this functionality again, but some minor issues are open:
- When filtering trees expanded directories should only get
  hidden if no child is visible
- Regular expressions are not supported yet (they have not been
  supported in Dolphin 1.x but it is now quite simple to implement).
- When filtering previews and removing the filter it might be
  possible that the preview is not shown (is most probably an
  an already existing bug in KFileItemModelRolesUpdater).

BUG: 287642
FIXED-IN: 4.8.0

14 years agoReactivate the "Open folders during drag operations" feature
Peter Penz [Tue, 29 Nov 2011 21:01:16 +0000 (22:01 +0100)]
Reactivate the "Open folders during drag operations" feature

The feature got temporary lost due to the port to the new view
engine.

14 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Tue, 29 Nov 2011 15:47:26 +0000 (16:47 +0100)]
SVN_SILENT made messages (.desktop file)

14 years agonepomuk config option change strigiservice -> fileindexer
Weng Xuetian [Sun, 27 Nov 2011 16:19:15 +0000 (00:19 +0800)]
nepomuk config option change strigiservice -> fileindexer

14 years agoApply icon effect for cut items
Peter Penz [Sat, 26 Nov 2011 23:27:59 +0000 (00:27 +0100)]
Apply icon effect for cut items

Fix issue that no icon effect got applied to icons that have
been cut.