]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
13 years agoAllow custom sorting of details-view columns
Peter Penz [Wed, 7 Mar 2012 21:12:07 +0000 (22:12 +0100)]
Allow custom sorting of details-view columns

Fix regression that Dolphin 2.0 did not allow to adjust the sorting
of the details-view columns.

BUG: 164696
FIXED-IN: 4.8.2

13 years agoUpdate siblings when turning on/off grouping
Peter Penz [Tue, 28 Feb 2012 16:16:46 +0000 (17:16 +0100)]
Update siblings when turning on/off grouping

13 years agoFinetuning of margins and alternate row colors
Peter Penz [Tue, 28 Feb 2012 15:41:53 +0000 (16:41 +0100)]
Finetuning of margins and alternate row colors

Thanks to Martin Zilz for the ongoing support.

13 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Fri, 24 Feb 2012 08:43:06 +0000 (09:43 +0100)]
SVN_SILENT made messages (.desktop file)

13 years agoWhitespace cleanups and documentation fixes
Peter Penz [Thu, 23 Feb 2012 16:26:51 +0000 (17:26 +0100)]
Whitespace cleanups and documentation fixes

13 years agoFix drag and drop issue when dragging between windows
Peter Penz [Thu, 23 Feb 2012 14:51:47 +0000 (15:51 +0100)]
Fix drag and drop issue when dragging between windows

Explicitly check whether a dragging is ongoing to decide whether a
tooltip may be shown or not, just using QApplication::mouseButtons()
is not sufficient when dragging between windows.

BUG: 294533
FIXED-IN: 4.8.1

13 years agoFix alternate backgrounds when enabling grouping
Peter Penz [Wed, 22 Feb 2012 17:28:11 +0000 (18:28 +0100)]
Fix alternate backgrounds when enabling grouping

Up to now the alternating backgrounds just have been calculated by
checking whether the item index is odd. This does not work well when
grouping is enabled: In this case the alternate background color
of the first item of a group should stay consistent.

13 years agoFix possible crash if no model is set
Peter Penz [Tue, 21 Feb 2012 16:18:37 +0000 (17:18 +0100)]
Fix possible crash if no model is set

When updating the siblings-information by e.g. a call to
setSupportsItemExpanding() it is possible that the model is not
set yet.

13 years agoDon't show tooltips when dragging to another Dolphin window
Peter Penz [Tue, 21 Feb 2012 16:05:37 +0000 (17:05 +0100)]
Don't show tooltips when dragging to another Dolphin window

BUG: 294533
FIXED-IN: 4.8.1

13 years agoDon't trigger assert when switching to details-view
Peter Penz [Tue, 21 Feb 2012 15:46:56 +0000 (16:46 +0100)]
Don't trigger assert when switching to details-view

If the visible roles of the details-view are equal to the visible roles
of other views, then switching to the details-view will trigger an
assert because the invisible roles don't get updated.

Thanks to Frank Reininghaus for the detailed analyses!

In the context of this fix optimizations have been done when switching
view-modes: The "don't-animate-workaround" could be removed.

BUG: 294531
FIXED-IN: 4.8.1

13 years agoFixed signal to signal connection in Dolphin's view modes.
Dawit Alemayehu [Tue, 14 Feb 2012 22:06:41 +0000 (17:06 -0500)]
Fixed signal to signal connection in Dolphin's view modes.

REVIEW: 104033
(cherry picked from commit b484b87376646420a2cd6c568736dfa21b80bf05)

13 years agoRemember the row- and column-information for visible items
Peter Penz [Fri, 17 Feb 2012 15:00:52 +0000 (16:00 +0100)]
Remember the row- and column-information for visible items

Up to now KItemListView has not been aware to which column or row
an item belongs to. This has been handled internally in
KItemListViewLayouter. But for deciding whether a move-animation
might result in overlapping items it is mandatory to be aware about
the column/row. The current approach to guess a column/row change
by comparing the source- and target-rectangle works very well but
breaks on some corner-cases when e.g. zooming.

Now the layouter allows to access the information. This assures
that in the vertical alignment no move-animation is done between
rows and the in the horizontal alignment no move-animation is
done between the columns.

13 years agoCompact view: Fix of left margin for first group
Peter Penz [Thu, 16 Feb 2012 15:36:22 +0000 (16:36 +0100)]
Compact view: Fix of left margin for first group

13 years agoCompact view: Padding- and margin-improvements for grouped alignments
Peter Penz [Thu, 16 Feb 2012 14:13:23 +0000 (15:13 +0100)]
Compact view: Padding- and margin-improvements for grouped alignments

13 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Thu, 16 Feb 2012 09:49:16 +0000 (10:49 +0100)]
SVN_SILENT made messages (.desktop file)

13 years agoFolders Panel: Use the whole width as selection region
Peter Penz [Wed, 15 Feb 2012 15:10:01 +0000 (16:10 +0100)]
Folders Panel: Use the whole width as selection region

As no rubberband-selection is enabled for the Folders Panel it does
not make sense to keep the selection region as small as possible.

BUG: 294111
FIXED-IN: 4.8.1

13 years agoMinor padding optimizations
Peter Penz [Tue, 14 Feb 2012 22:25:58 +0000 (23:25 +0100)]
Minor padding optimizations

13 years agoDetails view: Fix filter issue with sibblings
Peter Penz [Tue, 14 Feb 2012 21:58:24 +0000 (22:58 +0100)]
Details view: Fix filter issue with sibblings

When the filter has been enabled, the sibblings got not updated. Explicitely
update the sibblings when inserting, removing or moving items. For layouting
implicitely update the sibblings only for recycled widgets.

13 years agoDetails view: Siblings fixes
Peter Penz [Tue, 14 Feb 2012 19:57:17 +0000 (20:57 +0100)]
Details view: Siblings fixes

The siblings should only range within one group.

13 years agoDetails view: Fix indicator-branches
Peter Penz [Tue, 14 Feb 2012 17:04:47 +0000 (18:04 +0100)]
Details view: Fix indicator-branches

Up to now no indicator-branches have been drawn when showing a tree. The patch
fixes this so that that the style-dependent branches are drawn.

The main part of the patch is the implementation of
KItemListView::updateSiblingsInformation(). Most of the other changes are
related due to an internal renaming of the expansionsLevel-role to
expandedParentsCount and some related cleanups.

BUG: 290276
FIXED-IN: 4.8.1

13 years agoTest which items are activated when pressing Enter or Return
Frank Reininghaus [Mon, 13 Feb 2012 21:37:26 +0000 (22:37 +0100)]
Test which items are activated when pressing Enter or Return

The ViewState struct gets a new bool member to indicate if the selected
items should have been activated after the last event or not. One could
argue that adding a bool parameter to the constructor is not optimal,
but I think adding an enum is not really worth the effort because the
struct is not used outside this unit test. Moreover, I could not think
of a good name for the enum type and its values.
(cherry picked from commit 307cca7b31b998fb7e8af0478a8e97e53bdc059c)

13 years agoFix regression in KItemListControllerTest
Frank Reininghaus [Mon, 13 Feb 2012 19:15:02 +0000 (20:15 +0100)]
Fix regression in KItemListControllerTest

Since commit 66ce4db4879cd80b2dcb6d65a0c74599c5e5f0ba, enabling or
disabling groupling may change the number of columns in the view.
Therefore, the test should first change the "grouping" setting and then
change the view geometry to make sure that the column count is correct.
(cherry picked from commit 61390b201acae2d8eea94fefc947977a8799af85)

13 years agoGroup header layout fixes
Peter Penz [Sat, 11 Feb 2012 17:02:38 +0000 (18:02 +0100)]
Group header layout fixes

- Don't use a margin for the first group header
- Provide margins between the groups
- Use a more subtle coloring
- Prevent animation glitches when resizing a window

13 years agoIcon-rectangle and selection-toggle optimizations
Peter Penz [Thu, 9 Feb 2012 08:57:47 +0000 (09:57 +0100)]
Icon-rectangle and selection-toggle optimizations

- No padding should be applied to the icon-rectangle
- Base the selection-toggle size on the icon-size of the style not
  the actual pixmap content, as this might lead to smaller selection-toggles
  when having pixmap-previews with a small height.

13 years agoLayout optimizations
Peter Penz [Wed, 8 Feb 2012 16:45:22 +0000 (17:45 +0100)]
Layout optimizations

- Differ internally between margins and paddings
- Add a small padding in the icons-view and the compact-views
- Optimize the width of the icons-view if previews are shown

13 years agoDrag and drop: Adjust destination if the item is no directory or desktop-file
Peter Penz [Wed, 8 Feb 2012 14:16:35 +0000 (15:16 +0100)]
Drag and drop: Adjust destination if the item is no directory or desktop-file

The URL of the view should be used as destination target if a dropping is not
done above a directory or desktop-file.

BUG: 293511
FIXED-IN: 4.8.1

13 years agoCompact view: Don't hide items at the bottom when grouping is turned on
Peter Penz [Tue, 7 Feb 2012 16:16:10 +0000 (17:16 +0100)]
Compact view: Don't hide items at the bottom when grouping is turned on

When grouping has been turned on, it was possible that items aligned
at the bottom have been hidden.

BUG: 291640
FIXED-IN: 4.8.1

13 years agoGroup header improvements
Peter Penz [Mon, 6 Feb 2012 22:26:20 +0000 (23:26 +0100)]
Group header improvements

- Use a simpler background and colors as suggested by Martin Zilz.
  This is just an early draft, I need to post some comparison screenshots to
  Martin for review.
- Fixes of some layout issues that have been revealed because of adjusting
  the group header heights.
- More clever animation/no-animation detection when doing listview-property
  changes in parallel.

13 years agoFix potential endless loop in layout
Peter Penz [Sun, 5 Feb 2012 18:14:17 +0000 (19:14 +0100)]
Fix potential endless loop in layout

Usecase:
- No scrollbar is shown
- Window size will be decreased so that a scrollbar gets necessary

The decreased window size minus the space required for the scrollbar
results in a relayout of the items. In 99 % of all
cases a decreased window size won't result in showing more items in parallel in
comparison to a larger window size. However in the remaining 1 % this can
happen (e.g. see bug 293318 for a sample). This results in an endless loop as
now no scrollbar is required anymore, the layout changes again, the scrollbar
is required again, ...

BUG: 293318
FIXED-IN: 4.8.1

13 years agoReplace setExpanded(const QSet<KUrl>&) by expandParentItems(const KUrl&)
Frank Reininghaus [Fri, 3 Feb 2012 18:09:42 +0000 (19:09 +0100)]
Replace setExpanded(const QSet<KUrl>&) by expandParentItems(const KUrl&)

The use case of this function (Folders Panel) requires the expansion of
the parent items of a single URL, so it's not needed to handle a full
set of URLs in this function. Moreover, the issue that not only the
parents, but also the URLs themselves were expanded is fixed by this
commit.
(cherry picked from commit 89082ca391807abdc26d8985efe6b4c27183a9b1)

13 years agoIcons view: Layout optimizations
Peter Penz [Sat, 4 Feb 2012 21:14:53 +0000 (22:14 +0100)]
Icons view: Layout optimizations

- Assure that landscape-previews use the whole available width of the icon-area
  instead of only using the square width. This waste of space occured if the
  text-width was larger than the icon-width.

- Only use one margin instead of two between the icons and the text to improve the
  visual appearance (thanks to Martin Zilz for the hint)

BUG: 293268
FIXED-IN: 4.8.1
CCMAIL: martin@kreativkonzentrat.de

13 years agoSimplify KItemListControllerTest::testKeyboardNavigation_data()
Frank Reininghaus [Sat, 4 Feb 2012 16:29:09 +0000 (17:29 +0100)]
Simplify KItemListControllerTest::testKeyboardNavigation_data()

Function-static variables do not help much in a function which is
called exactly once.
(cherry picked from commit 847c8ebfd3259a6f090db7451dd3350c6e01e0d2)

13 years agoShow the value "Unknown" for the item-count only after it has been verified
Peter Penz [Fri, 3 Feb 2012 22:07:33 +0000 (23:07 +0100)]
Show the value "Unknown" for the item-count only after it has been verified

During determining the item-count for directories just show an empty string
until either the item-count has been calculated or if the item-count is unknown.

Thanks to Nikita Skovoroda for the initial proof-of-concept patch.

BUG: 291823
FIXED-IN: 4.8.1

13 years agoShow file size when hovering an item
Peter Penz [Fri, 3 Feb 2012 21:31:02 +0000 (22:31 +0100)]
Show file size when hovering an item

BUG: 292687
FIXED-IN: 4.8.1

13 years agoFoldersPanel: Rename setHiddenFilesShown() to setShowHiddenFiles()
Peter Penz [Fri, 3 Feb 2012 19:25:59 +0000 (20:25 +0100)]
FoldersPanel: Rename setHiddenFilesShown() to setShowHiddenFiles()

This is consistent with the naming scheme in KFileItemModel and KDirLister.

13 years agoSimplify FoldersPanel::setHiddenFilesShown()
Peter Penz [Fri, 3 Feb 2012 19:17:47 +0000 (20:17 +0100)]
Simplify FoldersPanel::setHiddenFilesShown()

Thanks to Frank Reininghaus for the hint.

13 years agoThe autoscroll timer should be only a single-shot timer
Peter Penz [Fri, 3 Feb 2012 16:04:28 +0000 (17:04 +0100)]
The autoscroll timer should be only a single-shot timer

13 years agoFolders Panel: Show expansion toggles for directories on ISO-images
Peter Penz [Fri, 3 Feb 2012 08:57:18 +0000 (09:57 +0100)]
Folders Panel: Show expansion toggles for directories on ISO-images

When counting the number of sub-directories consider unknown file types
as potential directories. In the "worst case" an expansion toggle will be
shown although the directory contains only files, however from a performance
point of view this seems to be an acceptable compromise.

BUG: 292642
FIXED-IN: 4.8.1

13 years agoMerge branch 'KDE/4.8'
Marco Martin [Fri, 3 Feb 2012 14:26:27 +0000 (15:26 +0100)]
Merge branch 'KDE/4.8'

Conflicts:
konqueror/settings/kio/proxy.desktop

13 years agoFix sorting issue when sorting by "size"
Peter Penz [Thu, 2 Feb 2012 14:58:42 +0000 (15:58 +0100)]
Fix sorting issue when sorting by "size"

Root cause of the issue was an overflow in:
result = a - b;
where result is 'int' and a and b are 'KIO::filesize_t'.

BUG: 293086
FIXED-IN: 4.8.1

13 years agoFix crash when opening a tab during a tooltip is shown
Peter Penz [Thu, 2 Feb 2012 14:10:45 +0000 (15:10 +0100)]
Fix crash when opening a tab during a tooltip is shown

Thanks a lot to Mathias Tillman for finding a 100 % reliable way
how to reproduce the issue and for the initial patch!

BUG: 278302
FIXED-IN: 4.8.1

13 years agoFix sorting issue when sorting by "size"
Peter Penz [Thu, 2 Feb 2012 14:58:42 +0000 (15:58 +0100)]
Fix sorting issue when sorting by "size"

Root cause of the issue was an overflow in:
result = a - b;
where result is 'int' and a and b are 'KIO::filesize_t'.

BUG: 293086
FIXED-IN: 4.8.1

13 years agoFix crash when opening a tab during a tooltip is shown
Peter Penz [Thu, 2 Feb 2012 14:10:45 +0000 (15:10 +0100)]
Fix crash when opening a tab during a tooltip is shown

Thanks a lot to Mathias Tillman for finding a 100 % reliable way
how to reproduce the issue and for the initial patch!

BUG: 278302
FIXED-IN: 4.8.1

13 years agoFix pending zooming animation
Peter Penz [Thu, 2 Feb 2012 08:37:25 +0000 (09:37 +0100)]
Fix pending zooming animation

If doLayout() is invoked with the 'NoAnimation' hint, it must be assured
that any ongoing animations are stopped.

13 years agoFix pending zooming animation
Peter Penz [Thu, 2 Feb 2012 08:37:25 +0000 (09:37 +0100)]
Fix pending zooming animation

If doLayout() is invoked with the 'NoAnimation' hint, it must be assured
that any ongoing animations are stopped.

13 years agoFirst version of a unit test for KItemListController
Frank Reininghaus [Wed, 1 Feb 2012 20:52:50 +0000 (21:52 +0100)]
First version of a unit test for KItemListController

At the moment, only key press events are tested, and the current item
and selection after the event are verified.
Moreover, this commit makes sure that
KItemListController::keyPressEvent() really does not select anything
if the selection mode is NoSelection.
(cherry picked from commit 7457f4868cf0bc83e8a90ce5693292378f3d07c4)

13 years agoFirst version of a unit test for KItemListController
Frank Reininghaus [Wed, 1 Feb 2012 20:52:50 +0000 (21:52 +0100)]
First version of a unit test for KItemListController

At the moment, only key press events are tested, and the current item
and selection after the event are verified.
Moreover, this commit makes sure that
KItemListController::keyPressEvent() really does not select anything
if the selection mode is NoSelection.

13 years agoKFileItemModelRolesUpdater: Optimize updates
Peter Penz [Wed, 1 Feb 2012 19:40:57 +0000 (20:40 +0100)]
KFileItemModelRolesUpdater: Optimize updates

The asynchronous resolving to bypass performance bottlenecks is not necessary
anymore as multiple ranges can be inserted in one step now. This solves the issue
that e.g. opening a tree resulted in temporary unknown icons for a short period
of time.

13 years agoKFileItemModelRolesUpdater: Optimize updates
Peter Penz [Wed, 1 Feb 2012 19:40:57 +0000 (20:40 +0100)]
KFileItemModelRolesUpdater: Optimize updates

The asynchronous resolving to bypass performance bottlenecks is not necessary
anymore as multiple ranges can be inserted in one step now. This solves the issue
that e.g. opening a tree resulted in temporary unknown icons for a short period
of time.

13 years agoDon't animate items if the number of grid elements has been changed
Peter Penz [Wed, 1 Feb 2012 12:46:24 +0000 (13:46 +0100)]
Don't animate items if the number of grid elements has been changed

Having animated items is useful when e.g. deleting or inserting one
item or when the size or position slightly changes by increasing the
zoom level or the window size. However if the number of rows or columns
change, the animation gets obtrusive and in this case lets just apply
the final layout.

13 years agoDon't animate items if the number of grid elements has been changed
Peter Penz [Wed, 1 Feb 2012 12:46:24 +0000 (13:46 +0100)]
Don't animate items if the number of grid elements has been changed

Having animated items is useful when e.g. deleting or inserting one
item or when the size or position slightly changes by increasing the
zoom level or the window size. However if the number of rows or columns
change, the animation gets obtrusive and in this case lets just apply
the final layout.

13 years agoFix keyboard navigation issue when Home or End are pressed
Frank Reininghaus [Tue, 31 Jan 2012 22:12:36 +0000 (23:12 +0100)]
Fix keyboard navigation issue when Home or End are pressed

The problem was that m_keyboardAnchorIndex and m_keyboardAnchorPos were
not updated when Home or End are pressed. This causes the following
unexpected behavior in Icons View: Press Home, then Right, then Down,
then Home, finally Down. One would expect that the first item in the
second row is the current item then, but before this commit, it was the
second one because the controller still remembered that the second
column was active before Home was pressed.
(cherry picked from commit 999234a94ae41cfb4f2167d2779b562ebf8127ce)

13 years agoFix keyboard navigation issue when Home or End are pressed
Frank Reininghaus [Tue, 31 Jan 2012 22:12:36 +0000 (23:12 +0100)]
Fix keyboard navigation issue when Home or End are pressed

The problem was that m_keyboardAnchorIndex and m_keyboardAnchorPos were
not updated when Home or End are pressed. This causes the following
unexpected behavior in Icons View: Press Home, then Right, then Down,
then Home, finally Down. One would expect that the first item in the
second row is the current item then, but before this commit, it was the
second one because the controller still remembered that the second
column was active before Home was pressed.
FIXED-IN: 4.8.1

13 years agoAnimation optimizations
Peter Penz [Tue, 31 Jan 2012 20:23:16 +0000 (21:23 +0100)]
Animation optimizations

Prevent that the moving-animation crosses other items when zooming or
changing the window size.

13 years agoAnimation optimizations
Peter Penz [Tue, 31 Jan 2012 20:23:16 +0000 (21:23 +0100)]
Animation optimizations

Prevent that the moving-animation crosses other items when zooming or
changing the window size.

13 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Tue, 31 Jan 2012 20:04:40 +0000 (21:04 +0100)]
SVN_SILENT made messages (.desktop file)

13 years agoFix sorting issues
Peter Penz [Tue, 31 Jan 2012 13:58:25 +0000 (14:58 +0100)]
Fix sorting issues

For some roles the sorting has not been implemented.

BUG: 292941
FIXED-IN: 4.8.1

13 years agoAdjust zoom-slider in the statusbar if settings have been changed
Peter Penz [Tue, 31 Jan 2012 12:43:44 +0000 (13:43 +0100)]
Adjust zoom-slider in the statusbar if settings have been changed

This fixes the issue that changing the zoom-level in the settings
does not update the zoom-slider in the statusbar.

13 years agoApply changed home-URL to the URL navigator
Peter Penz [Tue, 31 Jan 2012 12:29:43 +0000 (13:29 +0100)]
Apply changed home-URL to the URL navigator

BUG: 291043
FIXED-IN: 4.8.1

13 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Tue, 31 Jan 2012 15:19:58 +0000 (16:19 +0100)]
SVN_SILENT made messages (.desktop file)

13 years agoFix sorting issues
Peter Penz [Tue, 31 Jan 2012 13:58:25 +0000 (14:58 +0100)]
Fix sorting issues

For some roles the sorting has not been implemented.

BUG: 292941
FIXED-IN: 4.8.1

13 years agoAdjust zoom-slider in the statusbar if settings have been changed
Peter Penz [Tue, 31 Jan 2012 12:43:44 +0000 (13:43 +0100)]
Adjust zoom-slider in the statusbar if settings have been changed

This fixes the issue that changing the zoom-level in the settings
does not update the zoom-slider in the statusbar.

13 years agoApply changed home-URL to the URL navigator
Peter Penz [Tue, 31 Jan 2012 12:29:43 +0000 (13:29 +0100)]
Apply changed home-URL to the URL navigator

BUG: 291043
FIXED-IN: 4.8.1

13 years agoOnly move the items if at least one direction is within the item size
Peter Penz [Mon, 30 Jan 2012 13:06:07 +0000 (14:06 +0100)]
Only move the items if at least one direction is within the item size

13 years agoSynchronize view-mode settings before the settings dialog gets opened
Peter Penz [Mon, 30 Jan 2012 15:36:40 +0000 (16:36 +0100)]
Synchronize view-mode settings before the settings dialog gets opened

BUG: 292698
FIXED-IN: 4.8.1

13 years agoSynchronize view-mode settings before the settings dialog gets opened
Peter Penz [Mon, 30 Jan 2012 15:36:40 +0000 (16:36 +0100)]
Synchronize view-mode settings before the settings dialog gets opened

BUG: 292698
FIXED-IN: 4.8.1

13 years agoOnly move the items if at least one direction is within the item size
Peter Penz [Mon, 30 Jan 2012 13:06:07 +0000 (14:06 +0100)]
Only move the items if at least one direction is within the item size

13 years agoFurther animation optimizations
Peter Penz [Mon, 30 Jan 2012 11:59:38 +0000 (12:59 +0100)]
Further animation optimizations

- Assure a proper minimim width in the compact mode.
- Don't calculate the old position of hidden items to animate the
  moving. Just show them directly.

13 years agoFurther animation optimizations
Peter Penz [Mon, 30 Jan 2012 11:59:38 +0000 (12:59 +0100)]
Further animation optimizations

- Assure a proper minimim width in the compact mode.
- Don't calculate the old position of hidden items to animate the
  moving. Just show them directly.

13 years agoFix drag & drop issues with non-local URLs
Peter Penz [Mon, 30 Jan 2012 11:07:08 +0000 (12:07 +0100)]
Fix drag & drop issues with non-local URLs

BUG: 292821
BUG: 292355
FIXED-IN: 4.8.1

13 years agoFix drag & drop issues with non-local URLs
Peter Penz [Mon, 30 Jan 2012 11:07:08 +0000 (12:07 +0100)]
Fix drag & drop issues with non-local URLs

BUG: 292821
BUG: 292355
FIXED-IN: 4.8.1

13 years agoFix crash in Compact View if view height is smaller then item height
Frank Reininghaus [Mon, 30 Jan 2012 09:07:03 +0000 (10:07 +0100)]
Fix crash in Compact View if view height is smaller then item height

CCBUG: 292816
FIXED-IN: 4.8.1
(cherry picked from commit f5ecaee9c40c940fe8e1bf4a7d50fe0b18e1932b)

13 years agoFix crash in Compact View if view height is smaller then item height
Frank Reininghaus [Mon, 30 Jan 2012 09:07:03 +0000 (10:07 +0100)]
Fix crash in Compact View if view height is smaller then item height

BUG: 292816
FIXED-IN: 4.8.1

13 years agoMake moving animations less obtrusive
Peter Penz [Sun, 29 Jan 2012 17:29:00 +0000 (18:29 +0100)]
Make moving animations less obtrusive

Only animate the moving of items if the new position is within the same
row or the same column. Otherwise just fade in the icon on the new position.
This makes the the animations when resizing the window or changing the zoom-level
a lot more pleasant.

CCBUG: 289238

13 years agoMake moving animations less obtrusive
Peter Penz [Sun, 29 Jan 2012 17:29:00 +0000 (18:29 +0100)]
Make moving animations less obtrusive

Only animate the moving of items if the new position is within the same
row or the same column. Otherwise just fade in the icon on the new position.
This makes the the animations when resizing the window or changing the zoom-level
a lot more pleasant.

CCBUG: 289238

13 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Sun, 29 Jan 2012 10:35:27 +0000 (11:35 +0100)]
SVN_SILENT made messages (.desktop file)

13 years agoFix regression: Respect "natural sorting" setting
Peter Penz [Sat, 28 Jan 2012 20:17:01 +0000 (21:17 +0100)]
Fix regression: Respect "natural sorting" setting

BUG: 292270
FIXED-IN: 4.8.1

13 years agoFix regression: Respect "natural sorting" setting
Peter Penz [Sat, 28 Jan 2012 20:17:01 +0000 (21:17 +0100)]
Fix regression: Respect "natural sorting" setting

BUG: 292270
FIXED-IN: 4.8.1

13 years agoAssure to mark an item as unhovered on a drag-leave event
Peter Penz [Sat, 28 Jan 2012 10:03:22 +0000 (11:03 +0100)]
Assure to mark an item as unhovered on a drag-leave event

BUG: 292501
FIXED-IN: 4.8.1

13 years agoAssure to mark an item as unhovered on a drag-leave event
Peter Penz [Sat, 28 Jan 2012 10:03:22 +0000 (11:03 +0100)]
Assure to mark an item as unhovered on a drag-leave event

BUG: 292501
FIXED-IN: 4.8.1

13 years ago--warning
Peter Penz [Sat, 28 Jan 2012 09:50:38 +0000 (10:50 +0100)]
--warning

13 years ago--warning
Peter Penz [Sat, 28 Jan 2012 09:50:38 +0000 (10:50 +0100)]
--warning

13 years ago--warning
Peter Penz [Sat, 28 Jan 2012 09:46:59 +0000 (10:46 +0100)]
--warning

13 years ago--warning
Peter Penz [Sat, 28 Jan 2012 09:46:59 +0000 (10:46 +0100)]
--warning

13 years agoFix regression: Allow dragging items on a tab
Peter Penz [Fri, 27 Jan 2012 20:52:29 +0000 (21:52 +0100)]
Fix regression: Allow dragging items on a tab

BUG: 292505
FIXED-IN: 4.8.1

13 years agoDon't crash when opening a tab with enabled split view
Peter Penz [Fri, 27 Jan 2012 20:30:27 +0000 (21:30 +0100)]
Don't crash when opening a tab with enabled split view

BUG: 292470
FIXED-IN: 4.8.1

13 years agoFix regression: Allow dragging items on a tab
Peter Penz [Fri, 27 Jan 2012 20:52:29 +0000 (21:52 +0100)]
Fix regression: Allow dragging items on a tab

BUG: 292505
FIXED-IN: 4.8.1

13 years agoDon't crash when opening a tab with enabled split view
Peter Penz [Fri, 27 Jan 2012 20:30:27 +0000 (21:30 +0100)]
Don't crash when opening a tab with enabled split view

BUG: 292470
FIXED-IN: 4.8.1

13 years agoHandle folder names containing spaces correctly in the Folders Panel
Frank Reininghaus [Wed, 25 Jan 2012 20:30:57 +0000 (21:30 +0100)]
Handle folder names containing spaces correctly in the Folders Panel

The problem was that KFileItemModel::setExpanded() used KUrl::url()
to determine the names of the subfolders. This method encodes special
characters, such that comparing the folder names with the unencoded URLs
stored in the model fails.
Using KUrl::path(), which does not encode special characters, fixes the
problem.

CCBUG: 291781
FIXED-IN: 4.8.1
(cherry picked from commit 80d9bfec580bf01b0ee584fc4bb46e3d59a0ba7c)

13 years agoHandle folder names containing spaces correctly in the Folders Panel
Frank Reininghaus [Wed, 25 Jan 2012 20:30:57 +0000 (21:30 +0100)]
Handle folder names containing spaces correctly in the Folders Panel

The problem was that KFileItemModel::setExpanded() used KUrl::url()
to determine the names of the subfolders. This method encodes special
characters, such that comparing the folder names with the unencoded URLs
stored in the model fails.
Using KUrl::path(), which does not encode special characters, fixes the
problem.

BUG: 291781
FIXED-IN: 4.8.1

13 years agoTerminal: only consider process IDs > 0
Peter Penz [Wed, 25 Jan 2012 14:18:09 +0000 (15:18 +0100)]
Terminal: only consider process IDs > 0

Thanks to Jekyll Wu for the analyses.

CCBUG: 286367

13 years agoTerminal: only consider process IDs > 0
Peter Penz [Wed, 25 Jan 2012 14:18:09 +0000 (15:18 +0100)]
Terminal: only consider process IDs > 0

Thanks to Jekyll Wu for the analyses.

CCBUG: 286367

13 years agoMake sure that Control+click toggles the selection state
Frank Reininghaus [Mon, 23 Jan 2012 18:28:21 +0000 (19:28 +0100)]
Make sure that Control+click toggles the selection state

This commit fixes a regression caused by the recent commit
9f711b5f2e1d1fd856cd6b033e6adb96f9b46d8a.
CCBUG: 292250
(cherry picked from commit 84a9cc4bf6e9decc4c102102c4b04162369eb0fe)

13 years agoMake sure that Control+click toggles the selection state
Frank Reininghaus [Mon, 23 Jan 2012 18:28:21 +0000 (19:28 +0100)]
Make sure that Control+click toggles the selection state

This commit fixes a regression caused by the recent commit
9f711b5f2e1d1fd856cd6b033e6adb96f9b46d8a.
BUG: 292250

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

13 years agoDo not make items invisible when turning off previews
Frank Reininghaus [Thu, 19 Jan 2012 18:52:51 +0000 (19:52 +0100)]
Do not make items invisible when turning off previews

This commit fixes a problem in KItemListView::doLayout(): This function
assumed that firstVisibleIndex is a constant.
However, if the view is scrolled to the bottom with previews enabled,
and then previews are disabled (and the icon size is much smaller
without previews), this function changes the scroll offset, which also
changes the the first visible index. Using the unchanged variable causes
trouble later on (i.e., it makes items which are actually inside the
view area invisible).
lastVisibleIndex is not needed before the scroll offset change and is
const after that, so its calculation is moved a few lines down.
CCBUG: 291841
FIXED-IN: 4.8.1
(cherry picked from commit cc8f5b4939062df44ce0bd314ac4ae04973b9830)

13 years agoDo not make items invisible when turning off previews
Frank Reininghaus [Thu, 19 Jan 2012 18:52:51 +0000 (19:52 +0100)]
Do not make items invisible when turning off previews

This commit fixes a problem in KItemListView::doLayout(): This function
assumed that firstVisibleIndex is a constant.
However, if the view is scrolled to the bottom with previews enabled,
and then previews are disabled (and the icon size is much smaller
without previews), this function changes the scroll offset, which also
changes the the first visible index. Using the unchanged variable causes
trouble later on (i.e., it makes items which are actually inside the
view area invisible).
lastVisibleIndex is not needed before the scroll offset change and is
const after that, so its calculation is moved a few lines down.
BUG: 291841
FIXED-IN: 4.8.1
REVIEW: 103731

13 years agoWhen populating the "Show Remote Encoding" menu, put the check mark besides
Dawit Alemayehu [Wed, 18 Jan 2012 18:30:54 +0000 (13:30 -0500)]
When populating the "Show Remote Encoding" menu, put the check mark besides
the correct saved remote encoding charset.

BUG: 186289
FIXED-IN: 4.8.0
REVIEW: 103730
(cherry picked from commit 8f231bd08134f7b1870a9c1747429c1b05174d62)

13 years agoWhen populating the "Show Remote Encoding" menu, put the check mark besides
Dawit Alemayehu [Wed, 18 Jan 2012 18:30:54 +0000 (13:30 -0500)]
When populating the "Show Remote Encoding" menu, put the check mark besides
the correct saved remote encoding charset.

BUG: 186289
FIXED-IN: 4.8.0
REVIEW: 103730

13 years agoMake PageUp/PageDown work in Dolphin's new view engine
Frank Reininghaus [Wed, 18 Jan 2012 09:18:47 +0000 (10:18 +0100)]
Make PageUp/PageDown work in Dolphin's new view engine

BUG: 288748
FIXED-IN: 4.8.0
REVIEW: 103721
(cherry picked from commit e56a363aa6106477fa1577cb0b1bc2a6389910c8)