]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
13 years agoKFileItemModel: interface cleanups
Peter Penz [Wed, 11 Apr 2012 19:52:15 +0000 (21:52 +0200)]
KFileItemModel: interface cleanups

Fix some naming inconsistencies regarding the usage of 'dir' vs.
'directory' vs. 'folder'.

13 years agoFix compile issue resulted by commit 2caff15b
Peter Penz [Wed, 11 Apr 2012 18:45:19 +0000 (20:45 +0200)]
Fix compile issue resulted by commit 2caff15b

13 years agoMinor API-cleanups for DolphinView
Peter Penz [Wed, 11 Apr 2012 14:42:46 +0000 (16:42 +0200)]
Minor API-cleanups for DolphinView

13 years agoKItemViews: Internal directory restructuration
Peter Penz [Wed, 11 Apr 2012 14:06:18 +0000 (16:06 +0200)]
KItemViews: Internal directory restructuration

- Move all private headers from the kitemviews-directory into
the 'private' subdirectory.

- Get rid of DolphinDirLister and just use a directory-lister
  internally in KFileItemModel.

- Minor interface-cleanups for signals

13 years agoImprovements for slow sorting roles
Peter Penz [Tue, 10 Apr 2012 14:30:50 +0000 (16:30 +0200)]
Improvements for slow sorting roles

If the sorting is done for data which is resolved asynchronously
(e.g. rating), it is important to give a visual feedback about
the state of the sorting. This is done now by a progress
indication in the statusbar.

Also optimizations for "Sort by type" have been done: Although
resolving a type can be expensive in the most often case it is a
very cheap operation. So it the sorting is done by type, try
to resolve the type synchronously for at least 200 ms to prevent
a asynchronous resorting. This is usually sufficient to have
resolved types even for directories with several thousands of
items.

BUG: 292733
FIXED-IN: 4.9.0

13 years agoAdd some missing includes.
Stephen Kelly [Mon, 9 Apr 2012 22:20:01 +0000 (00:20 +0200)]
Add some missing includes.

These are needed in Qt5/KF5.

13 years agoRemove QBool headers.
Stephen Kelly [Mon, 9 Apr 2012 22:19:58 +0000 (00:19 +0200)]
Remove QBool headers.

13 years agoRevert the 2.0 decision to always use KB for file-sizes
Peter Penz [Mon, 9 Apr 2012 07:44:05 +0000 (09:44 +0200)]
Revert the 2.0 decision to always use KB for file-sizes

The feedback on bugs.kde.org has shown that the previous behavior
(= show size with best-matching unit) is preferred by most users.
I initially wanted to make this configurable, but for implementing
it in a non-hacky way extending KLocale from kdelibs would have
been required. I'm not sure whether the usecase in Dolphin justifies
having such a configuration in KLocale - however as kdelibs is frozen
at the moment this is no option and the old behavior has been
restored.

BUG: 289850
FIXED-IN: 4.9.0

13 years agoLayout improvements for settings
Peter Penz [Sun, 8 Apr 2012 21:15:32 +0000 (23:15 +0200)]
Layout improvements for settings

- Handle 'Context Menu' settings as part of the services
- Handle 'Version Control' settings as part of the services
- Move the confirmations-settings into own tab
- Use combobox for view-property settings
- A lot of minor spacing cleanups

13 years agoIgnore maximum size for local files when creating previews
Peter Penz [Sun, 8 Apr 2012 14:08:25 +0000 (16:08 +0200)]
Ignore maximum size for local files when creating previews

It is up to the plugins to decide what sensible size is required for
creating a preview, this cannot be decided by the user for all
plugins. A maximum size only makes sense for remote files, where
the user implicitely decides how much of the bandwith may be used
for having previews.

BUG: 273226
FIXED-IN: 4.9.0

13 years agoRemove unneeded/wrong signal-slot-connection
Peter Penz [Sun, 8 Apr 2012 13:24:43 +0000 (15:24 +0200)]
Remove unneeded/wrong signal-slot-connection

13 years agoRemove toolbar-spacer if the menu has been disabled
Peter Penz [Sat, 7 Apr 2012 22:09:11 +0000 (00:09 +0200)]
Remove toolbar-spacer if the menu has been disabled

Aligning the control-button to the right of Dolphin has the problem
that sub-menus might be opened on the left of the menu if the Dolphin
window reaches the right of the desktop. So the toolbar-spacer has
been removed and a default label has been applied to the control-button
to increase the target-area for opening the menu.

13 years agoFix drag & drop cursor issue
Peter Penz [Sat, 7 Apr 2012 21:11:16 +0000 (23:11 +0200)]
Fix drag & drop cursor issue

When dragging a file within the same Dolphin window and the Ctrl, Shift
or Alt-key is pressed the shape of the cursor was not changed to
indicate the copy/move/link-operation.

BUG: 293850
FIXED-IN: 4.8.3

13 years agoUse stars for showing the rating in the group headers
Peter Penz [Sat, 7 Apr 2012 18:59:06 +0000 (20:59 +0200)]
Use stars for showing the rating in the group headers

13 years agoJust use "-" instead of "No destination" for the destination-role
Peter Penz [Sat, 7 Apr 2012 13:09:44 +0000 (15:09 +0200)]
Just use "-" instead of "No destination" for the destination-role

13 years agoProvide proper translation for orientation-EXIF-value
Peter Penz [Sat, 7 Apr 2012 07:49:00 +0000 (09:49 +0200)]
Provide proper translation for orientation-EXIF-value

13 years agoShow a placeholder for roles that are empty
Peter Penz [Sat, 7 Apr 2012 07:14:50 +0000 (09:14 +0200)]
Show a placeholder for roles that are empty

13 years agoIcons Mode: Fix wrong width calculation of additional roles
Peter Penz [Fri, 6 Apr 2012 22:03:06 +0000 (00:03 +0200)]
Icons Mode: Fix wrong width calculation of additional roles

13 years agoAllow to specify whether an upscaling of images should be done
Peter Penz [Fri, 6 Apr 2012 21:06:05 +0000 (23:06 +0200)]
Allow to specify whether an upscaling of images should be done

The option is currently hidden as up to now only Nuno requested it,
but it seems to be urgent: "my icon making productivity has drop subtantialy"
((c) 2012 Nuno)

As I don't want to get blamed for an outdated Oxygen-icon-set I have
no other choice ;-)

CCMAIL: nuno.pinheiro@kdab.com

13 years agoUpdate items if a Nepomuk property has been changed
Peter Penz [Fri, 6 Apr 2012 16:03:24 +0000 (18:03 +0200)]
Update items if a Nepomuk property has been changed

If a Nepomuk property has been changed (e.g. by changing the rating
in the Information Panel) the corresponding item in the view must
be updated.

13 years agoKItemListView: Minor internal cleanup
Peter Penz [Thu, 5 Apr 2012 14:34:09 +0000 (16:34 +0200)]
KItemListView: Minor internal cleanup

13 years agoFix filtering issue
Peter Penz [Thu, 5 Apr 2012 14:12:10 +0000 (16:12 +0200)]
Fix filtering issue

When filtering items it might be possible that the update of
the widgets is wrong although the model internally has a correct
state.

BUG: 297269
FIXED-IN: 4.8.3

13 years agoExtract sorting-algorithm from KFileItemModel into custom class
Peter Penz [Wed, 4 Apr 2012 11:35:34 +0000 (13:35 +0200)]
Extract sorting-algorithm from KFileItemModel into custom class

13 years agoShow the ratings as stars instead of text
Peter Penz [Tue, 3 Apr 2012 22:20:02 +0000 (00:20 +0200)]
Show the ratings as stars instead of text

13 years agoMinor internal cleanup
Peter Penz [Mon, 2 Apr 2012 20:24:16 +0000 (22:24 +0200)]
Minor internal cleanup

13 years agoFix focus-rectangle issues
Peter Penz [Mon, 2 Apr 2012 20:15:57 +0000 (22:15 +0200)]
Fix focus-rectangle issues

Assure that the focus-rectangle exactly matches to the bottom of
the rendered text.

BUG: 297203
BUG: 289804
FIXED-IN: 4.9.0

13 years agoAllow showing Nepomuk metadata inside views
Peter Penz [Sun, 1 Apr 2012 14:42:46 +0000 (16:42 +0200)]
Allow showing Nepomuk metadata inside views

Metadata like image-size, rating, comments, tags, ... can be shown
now in the view (e.g. as column in the Details mode).

Still open: The rating-information needs to be shown as stars.

In the context of this feature also the following bugs have been
fixed:
- Fix visual glitches in the header of the Details mode
- Improve the minimum column width calculation to respect also
  the headling and not only the content

BUG: 296782
FIXED-IN: 4.9.0

13 years agoKItemListKeyboardSearchManager: make it possible to choose the timeout
Frank Reininghaus [Thu, 29 Mar 2012 17:56:53 +0000 (19:56 +0200)]
KItemListKeyboardSearchManager: make it possible to choose the timeout

It's now possible to change the timeout, after which any call of
KItemListKeyboardSearchManager::addKeys(const QString&) starts a new
search, from the default value of 5000 milliseconds. This is not used
in Dolphin at the moment, but it permits to reduce the timeout to a
small value in the unit test. Before this change, the unit test took
more than 5 seconds to complete.
(cherry picked from commit 82fc1b54bd01768f50aba7d328cdcde7de1483d7)

13 years agoIncrease the timeout in KItemListKeyboardSearchManager to 5 seconds
Frank Reininghaus [Wed, 28 Mar 2012 17:15:20 +0000 (19:15 +0200)]
Increase the timeout in KItemListKeyboardSearchManager to 5 seconds

The previous timeout [QApplication::keyboardInputInterval()] was too
short to do a multi-letter search for users who do not type extremely
fast.
(cherry picked from commit 02eab49b2de51c31fe46a0d9501327b579b3648e)

13 years agoSelect files which have been pasted or dropped
Frank Reininghaus [Tue, 27 Mar 2012 17:48:49 +0000 (19:48 +0200)]
Select files which have been pasted or dropped

Also clear the previous selection.
CCBUG: 295389
(cherry picked from commit 210e5e3b96883f5d856913f81834310ecb3819bf)

13 years agoKItemListView interface and implementation simplification
Peter Penz [Mon, 26 Mar 2012 22:44:39 +0000 (00:44 +0200)]
KItemListView interface and implementation simplification

- Remove KItemListView::preferredRoleColumnWidth() and allow implementing
  this as part of derived classes from KItemListWidget. Those derived
  classes are aware about the layout and hence also can provide the
  preferred role width.

- Make KItemListView::itemSizeHint() non-virtual and also allow
  implementing the size hint as part of derived classes from KItemListWidget.

13 years agoRename KItemListView::preferredColumnWidth() to preferredRoleColumnWidth()
Peter Penz [Mon, 26 Mar 2012 20:18:54 +0000 (22:18 +0200)]
Rename KItemListView::preferredColumnWidth() to preferredRoleColumnWidth()

13 years agoAdd missing 'virtual' to preferredColumnWidth()
Peter Penz [Sun, 25 Mar 2012 22:01:40 +0000 (00:01 +0200)]
Add missing 'virtual' to preferredColumnWidth()

13 years agoInternal interface cleanup
Peter Penz [Sun, 25 Mar 2012 21:57:51 +0000 (23:57 +0200)]
Internal interface cleanup

Let derived classes from KItemListView just implement
preferredColumnWidth() for one role of an item instead of returning
a hashtable for a given item-range.

13 years agoDetails view: Don't reset to automatic resizing when adding columns
Peter Penz [Sun, 25 Mar 2012 20:56:13 +0000 (22:56 +0200)]
Details view: Don't reset to automatic resizing when adding columns

Until now when a new column is added in the case where custom column widths
are used, the automatic resizing has been turned on again. The patch fixes
this so that the current widths stay and the new column gets a proper default
width.

13 years agoCleanup and minor fixes for column-handling
Peter Penz [Sat, 24 Mar 2012 22:46:44 +0000 (23:46 +0100)]
Cleanup and minor fixes for column-handling

13 years agoDetails view: Optionally remember user changed column-widths
Peter Penz [Fri, 23 Mar 2012 21:26:17 +0000 (22:26 +0100)]
Details view: Optionally remember user changed column-widths

If the user changed a column-width in the details-view, up to now
the width got reset when changing a directory or when restarting
Dolphin. Now the column-widths automatically get remembered for each
directory in case if the user has modified the width. The automatic
resizing is still turn on per default. The storing of the custom
column-width can easily be reset by right clicking on the header and
selecting "Automatic Column Widths" from the context-menu.

Some finetuning is still necessary (e.g. the "Adjust View Properties"
dialog currently is not aware about this setting) but this will
be fixed during the next weeks.

BUG: 264434
FIXED-IN: 4.9.0

13 years agoDetails view: Expand the name-column like in Dolphin 1.x
Peter Penz [Thu, 22 Mar 2012 14:39:07 +0000 (15:39 +0100)]
Details view: Expand the name-column like in Dolphin 1.x

With the new view-engine the name-column always has been expanded
to the maximum width of all available names. But this makes it
impossible to see other columns without scrolling when having long
filenames, so per default the Dolphin 1.x behavior has been applied
to the new view-engine so that the name-column-width gets decreased
to be able to show the other columns.

This patch will be released with KDE applications 4.8.2. For
Dolphin 2.1 (KDE applications 4.9) user-modified widths of the
columns will be remembered per directory also between different
sessions.

CCBUG: 264434

13 years agoKFileItemModel: Fix triggering of wrong assertion
Peter Penz [Wed, 21 Mar 2012 15:51:08 +0000 (16:51 +0100)]
KFileItemModel: Fix triggering of wrong assertion

When switching from the details-mode of a search-view into any other
mode, the m_expandedParentsCountRoot is set to ForceExpandedParentsCountRoot.

13 years agoPrevent flickering when updating items
Peter Penz [Wed, 21 Mar 2012 11:08:59 +0000 (12:08 +0100)]
Prevent flickering when updating items

When downloading images from e.g. the camera-IO-slave the files
will be downloaded as *.part files and renamed afterwards. The renaming
results in an undetermined mimetype and hence the probably already available
preview or icon gets replaced by a dummy icon. The patch fixes this by
keeping the old values as long until they have been resolved by
KFileItemModelRolesUpdater.

13 years agoFix sorting-issue when "Sort folders first" is disabled
Peter Penz [Tue, 20 Mar 2012 22:28:39 +0000 (23:28 +0100)]
Fix sorting-issue when "Sort folders first" is disabled

The comparison of expanded trees may not assume that directories
are always sorted first and must respect the "Sort folders first"
setting.

The sorting-unittest has been extended by a sub-tree and the usecase
of bug 296437. The already deactivated test for
KFileItemModel::expandedParentsCountCompare() has been completely removed
as it has been replaced by testSorting().

BUG: 296437
FIXED-IN: 4.8.2

13 years agoBypass crash with Polyester-style
Peter Penz [Tue, 20 Mar 2012 20:03:38 +0000 (21:03 +0100)]
Bypass crash with Polyester-style

The Polyester style crashes when drawing a header where the
parent widget is 0.

BUG: 296453
FIXED-IN: 4.8.2

13 years agoKFileItemModel: Remove minimum-update timer
Peter Penz [Tue, 20 Mar 2012 16:19:12 +0000 (17:19 +0100)]
KFileItemModel: Remove minimum-update timer

The timer became unnecessary after introducing the behavior to
collect all new items until KDirLister emits a completed()-signal.

13 years agoFix alternate background issue
Peter Penz [Tue, 20 Mar 2012 12:22:12 +0000 (13:22 +0100)]
Fix alternate background issue

When items get inserted or deleted, the alternate background
must be updated.

13 years agoLet additional mouse buttons trigger history navigation
Peter Penz [Mon, 19 Mar 2012 15:47:11 +0000 (16:47 +0100)]
Let additional mouse buttons trigger history navigation

Thanks to Sebastian Dörner for the patch!

REVIEW: 101335
BUG: 181823
FIXED-IN: 4.9

13 years agoFix translation issue in context-menu
Peter Penz [Mon, 19 Mar 2012 14:30:19 +0000 (15:30 +0100)]
Fix translation issue in context-menu

Thanks to Alexander Potashev for the patch!

BUG: 290620
FIXED-IN: 4.8.2

13 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Mon, 19 Mar 2012 08:50:32 +0000 (09:50 +0100)]
SVN_SILENT made messages (.desktop file)

13 years agoremove the : on windows to have a valid path name
Patrick Spendrin [Sun, 18 Mar 2012 11:49:13 +0000 (12:49 +0100)]
remove the : on windows to have a valid path name
BUG:287360
(cherry picked from commit 0bf2e7c29aced29450a2ecb87a94e2d31b35f320)

13 years agoUse sub-menus for the "Sort By"- and "Additional Information"-menu
Peter Penz [Wed, 14 Mar 2012 15:51:21 +0000 (16:51 +0100)]
Use sub-menus for the "Sort By"- and "Additional Information"-menu

This allows doing some grouping for the visible roles by e.g. Image,
Document, Music or whatever.

13 years agoSVN_SILENT made messages (.desktop file)
Script Kiddy [Wed, 14 Mar 2012 08:19:01 +0000 (09:19 +0100)]
SVN_SILENT made messages (.desktop file)

13 years agoRemove RolesInfoAccessor
Peter Penz [Tue, 13 Mar 2012 15:26:16 +0000 (16:26 +0100)]
Remove RolesInfoAccessor

Now KFileItemModel provides a way to access the available roles
including their translations. Note that the 3 roles "comments",
"rating" and "tags" have not been implemented yet in KFileItemModel
and turning them on does not work currently.

13 years agoProvide backward compatibility with older .directory versions
Peter Penz [Mon, 12 Mar 2012 14:18:02 +0000 (15:18 +0100)]
Provide backward compatibility with older .directory versions

When upgrading to Dolphin 2.1 the obsolete additionalInfo-property
must be converted to the visibleRoles-property.

13 years agoFirst step to introduce dynamic roles
Peter Penz [Sun, 11 Mar 2012 18:02:45 +0000 (19:02 +0100)]
First step to introduce dynamic roles

Currently Dolphin is only capable of showing a fixed number of
roles (e.g. name, size, date, owner, ...). Dolphin 2.1 should
support also other roles like rating, tags, comments or other
meta-information of images or audio-files.

To support this the sorting-type and additional-type from
DolphinView has been replaced by a role-type represented as
QByteArray.

13 years agoadjust to INSTALLed permissions
Oswald Buddenhagen [Mon, 4 Jul 2011 08:03:57 +0000 (10:03 +0200)]
adjust to INSTALLed permissions

13 years agoPrevent endless scrolling of list when dragging items
Peter Penz [Fri, 9 Mar 2012 16:57:19 +0000 (17:57 +0100)]
Prevent endless scrolling of list when dragging items

BUG: 295584
FIXED-IN: 4.8.2

13 years agoFolders Panel: Turn on items-expanding
Peter Penz [Fri, 9 Mar 2012 15:27:13 +0000 (16:27 +0100)]
Folders Panel: Turn on items-expanding

Since the fix of bug 289090 the items-expanding is not automatically
turned on anymore when using the DetailsMode.

CCBUG: 289090

13 years agoProvide UI-option for "Expandable folders"
Peter Penz [Fri, 9 Mar 2012 15:23:41 +0000 (16:23 +0100)]
Provide UI-option for "Expandable folders"

CCBUG: 289090

13 years agoDetails view: Allow to turn off expandable folders like in Dolphin 1.7
Peter Penz [Fri, 9 Mar 2012 15:12:00 +0000 (16:12 +0100)]
Details view: Allow to turn off expandable folders like in Dolphin 1.7

The option for turning off expandable folders has been removed with
the new view-engine. Due to several requests this option has been
readded again.

As for 4.8.x no new user-interface strings may be introduced, the
line
  ExpandableFolders=false
must be manually added below the section "[DetailsMode]" in the file
~/.kde/share/config/dolphinrc if the expandable-folders feature
should be disabled.

Thanks to H.H. "cyberbeat" for the initial patch!

BUG: 289090
FIXED-IN: 4.8.2

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