Commit graph

7004 commits

Author SHA1 Message Date
l10n daemon script 2ceaa0ba1b SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-05-15 01:59:30 +00:00
Alexander Lohnau 0fc218fd26 Drop KNS3 prefix for KMoreTools includes
In KF6 KMoreTools should become it's own library and thus the KNS3 prefix should get removed.
Considering that the classes are not in any namespace, having a namespaced include is not needed and only causes noise.
2022-05-13 19:17:06 +00:00
Laurent Montel 6a727b1a7d Port to QStringView 2022-05-11 08:18:02 +02:00
Laurent Montel 421410513d Remove unused include 2022-05-11 08:18:02 +02:00
Méven Car 47014b26b8 KItemList: fix warnings
NO_CHANGELOG
2022-05-08 13:52:51 +02:00
l10n daemon script 2e333e1b97 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-05-07 01:45:00 +00:00
Ismael Asensio 2c91112c61 SearchBox: Add topMargin to balance the spacing 2022-05-06 20:10:04 +00:00
l10n daemon script 553cb880c2 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-05-06 01:46:29 +00:00
l10n daemon script ab9fcf0041 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-05-05 01:47:17 +00:00
l10n daemon script 6b46ebe648 GIT_SILENT made messages (after extraction) 2022-05-05 00:47:58 +00:00
Laurent Montel 013ca76a31 REmove duplicate header between header/file 2022-05-04 20:54:55 +02:00
l10n daemon script 506cdf329c SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-05-04 01:46:27 +00:00
l10n daemon script d958aa57d8 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-05-03 01:50:40 +00:00
oioi 555 9b5f56980b Re-add "Open Terminal Here" feature
This is equivalent to the "Open Terminal Here" feature that existed until Version 20.12.  

If the user has selected folders, replace "Open Terminal" in the context menu with "Open Terminal Here".  
When more than 5 folders are selected, a modal window will ask the user if they are sure they want to
open all 6 or more terminal windows.

In Detail View, users can also select a file, 
which will open a terminal at the location of that file.

BUG: 452637
FIXED-IN: 22.08
2022-05-02 20:25:24 +00:00
l10n daemon script e148329393 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-05-02 01:41:17 +00:00
Felix Ernst 8fda698922 Merge branch 'release/22.04' 2022-05-01 12:10:02 +02:00
Eugene Popov 94bbf13ff7 Fix icon resize animation
This MR fixes an issue where, under certain conditions, an icon resize animation is performed that shouldn't be there.
2022-05-01 10:04:24 +00:00
l10n daemon script 2834e581e0 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-05-01 03:11:08 +00:00
l10n daemon script cef7ea3be6 GIT_SILENT made messages (after extraction) 2022-05-01 02:30:23 +00:00
l10n daemon script ce720337e5 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-05-01 01:55:50 +00:00
l10n daemon script 5a3c57ffb2 GIT_SILENT made messages (after extraction) 2022-05-01 00:54:47 +00:00
l10n daemon script 1a8be1544d SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-04-30 01:42:27 +00:00
l10n daemon script 776d746c67 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-04-29 01:44:43 +00:00
Felix Ernst f08a8dd06b Merge branch 'release/22.04' 2022-04-27 13:08:09 +02:00
Felix Ernst e70e12e3bd Fix terminal panel not keeping up with dir changes
The terminal panel is supposed to show the same location as the
currently active Dolphin view at all times.

However there was an issue when the terminal is supposed to
quickly switch to a new location and then back again to the old
one. The terminal ignored the switch to the old location unless it
had already fully switched to the new location. Because it isn't
particularly fast at fully switching to the new location, it would
never do the expected thing of switching back to the old location.

This commit makes it so the switch to the old location is only
ignored if there are no in-progress switches to a different
location.

BUG: 391380

BUG: 416690

FIXED-IN: 22.04.2

Not totally sure if this fixes everything but it seems like an improvement.
2022-04-27 10:40:40 +00:00
l10n daemon script 8076b54a2c SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-04-27 01:46:00 +00:00
Eugene Popov 57c0c2db7e Revert "Combine modificationtime, creationtime and accesstime roles into one group"
This reverts commit b6640f4a135dce194242644d9d0622c0964e8f1d.
2022-04-26 13:42:04 +03:00
Eugene Popov ee16ff9b48 Eliminate remarks 2022-04-26 13:42:04 +03:00
Eugene Popov 937708e7d0 Combine modificationtime, creationtime and accesstime roles into one group 2022-04-26 13:42:04 +03:00
Eugene Popov e6f142e5e7 Add the ability to sort by file extension
Currently, Dolphin doesn't have the ability to sort by file extension (sorting by type means that files will be sorted by mimetype but not by extension). This MR fixes this shortcoming.

BUG: 429579
2022-04-26 13:42:04 +03:00
l10n daemon script c88ce580e6 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-04-26 01:43:17 +00:00
l10n daemon script 7153234e46 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-04-25 01:52:30 +00:00
Alexander Lohnau be95cd3025 Define MODULE type for KCM libraries
Otherwise, they will have the "lib" prefix
2022-04-24 20:58:47 +00:00
Alexander Lohnau 1618a3ed21 Convert desktop files of plugins to json
Task: https://phabricator.kde.org/T14564
2022-04-24 20:58:47 +00:00
Felix Ernst 6c91dfa47e Don't deselect on Ctrl+Right-Click
(Part of my work towards !273)

Currently, when items are selected and a user right-clicks a selected item
while having the Ctrl key pressed down, the item is first
deselected and then a context menu is opened that doesn't involve
the item that was just deselected.

This is slightly confusing because normally one right-clicks an
item to see its context menu. Right-click being able to deselect
an item seems like unintended functionality in the first place but
in this scenario it also means that the intended opening of a
context menu for the pressed item doesn't even happen.

There is a good chance that nobody is even aware of this behaviour
because the normal way to deselect an item would be to
Ctrl+Left-Click if anything. Why would someone choose to open a
context menu and deselect items in a single step? Why would they
have selected an item they don't want to open a context menu for in
the first place?

Because of a discussion in this merge request deselecting on Ctrl+Middle-Click was also
removed for consistency with Ctrl+Right-Click and
Ctrl+Shift+Middle-Click.

This commit also makes a later implementation of a selection mode
more straightforward.
2022-04-20 21:44:05 +00:00
Kai Uwe Broulik b3c8c1e24e Add additional Document role for "Author"
It comes in handy when organizing your books collection
2022-04-19 21:33:34 +02:00
l10n daemon script 0dfa3611de SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-04-19 01:48:03 +00:00
l10n daemon script 4012ea30c9 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-04-18 02:45:08 +00:00
l10n daemon script fb0a3c03a6 GIT_SILENT made messages (after extraction) 2022-04-17 00:50:15 +00:00
Heiko Becker 3ebe3975a6 GIT_SILENT Update Appstream for new release
(cherry picked from commit 06bd5b2ee9)
2022-04-12 23:17:58 +02:00
Heiko Becker 06bd5b2ee9 GIT_SILENT Update Appstream for new release 2022-04-12 23:17:49 +02:00
Kai Uwe Broulik d5d710ed0a Merge branch 'release/22.04' 2022-04-12 15:47:42 +02:00
Kai Uwe Broulik 0c7f7c92ed [Places Panel] Support drag and drop from Ark
Accepts Ark's special dnd mime types so that archive contents can
be dragged onto a place to extract and/or (mount and) switch to the
hovered location.
2022-04-11 18:01:51 +02:00
Felix Ernst e321a9cc3e Merge branch 'release/22.04' 2022-04-09 11:27:42 +02:00
l10n daemon script c4092e9047 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-04-09 01:51:05 +00:00
Felix Ernst 3bf471e02a Add symmetric padding on right side of details view
There have been some reports that users were unable to figure out
that the padding on the left of the left-most "name" column can be
used for deselecting or for dropping file items. All of these
reports were by people using a Dolphin version in which that
padding was way too narrow because of a regression (that has since
been fixed). Nonetheless this highlights the potential problem that
some users might be unable to notice/figure out the usefulness of
the left padding.

This commit adds a similar area on the right side of the view when
the column widths are set automatically by Dolphin. The width of
the right padding column mirrors the width of the left padding
column when sized automatically. Both can manually be hidden or
resized similarly to resizing other columns.

There are various usability advantages to having this padding by
default on both sides of the view and not only on the left:
- The right margin is more discoverable since the item highlight
    ends right before the padding column
- Less mouse travel time to reach either of the areas
- More than double the likelihood of users figuring out the
    advantages of these padding areas for deselecting or dropping
- More visual symmetry

I had suggested also having this kind of right padding even before
the initial implementation of the left padding. The contributor
implementing it was in favour of it. It only wasn't implemented
because the contributor said it was impossible without a lot of
work. Turns out adding two characters at the right position seems
to suffice in most ways.

This commit does not contain the string change of renaming "Leading
Column Padding" to "Column Padding" (since it changes two paddings
now) to not infringe on the string freeze.

BUG: 452273
2022-04-08 11:44:58 +02:00
l10n daemon script e50ff16e68 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-04-07 02:58:35 +00:00
l10n daemon script 9a334caf7d SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-04-07 01:45:45 +00:00
l10n daemon script 50c3be0ca0 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-04-05 02:58:27 +00:00
l10n daemon script 989d19c126 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-04-05 01:51:00 +00:00
Felix Ernst 86df5ae994 Merge branch 'release/22.04' 2022-04-04 14:42:02 +02:00
Felix Ernst 2de8f4c0fb Improve details mode ctrl-press rubberband creation
Since d383961719 dragging the
highlighted row of already selected items in the details view mode
will begin a drag operation of all selected items.

As a unintended side-effect of this change, dragging the row of a
previously unselected item while holding the control key would also
begin a drag operation.

After this commit, dragging the row of a previously unselected item
while holding the control key in details view mode will instead
create a rubberband. Ctrl-dragging the item's icon or text directly will drag the item as expected.

With this change, using multiple rubberbands to select scattered
items among a list of items should be as convenient as it was
previously.

BUG: 452181
2022-04-04 12:39:37 +00:00
Felix Ernst fc965a725c Merge branch 'release/22.04' 2022-04-04 12:59:29 +02:00
Felix Ernst a4f9974daf Revert "KStandardItemListWidget: handle RtL drawing properly"
This reverts commit 3ce9d1d19e.
This reverts commit ddba4f5fd8.

Aside from the two bugs mentioned below, this also fixes another
regression: The spacing on the left of the view does now once again
follow the size of its column header.

BUG: 451704
BUG: 451341
2022-04-04 10:54:42 +00:00
Felix Ernst b3add25694 Refactor DolphinContextMenu so its actions are retrievable
This mostly red MR should have no visible effect. It is part of my work towards !273.

There are two calls necessary to open the DolphinContextMenu:
One to construct it and one to execute/show it.

Before this commit, the actual populating of the ContextMenu was
done on execute. This meant that the actions of the ContextMenu
couldn't be looked at or changed without first showing the Menu
to the user. It also meant that the construction itself didn't
actually do much constructing/populating at all which might seem
a bit unintuitive.

This commit changes this behaviour so the DolphinContextMenu is
actually populated fully on construction. The executing/showing of
the ContextMenu now does just that and nothing more.

Previously, some actions in the context menu were actually not
wired up to anything and instead the DolphinContextMenu or the
DolphinMainWindow executed some code after the user had clicked
such a dummy action from the ContextMenu. Now all the actions are
properly constructed beforehand and no special handling is
necessary when the ContextMenu hides itself.

This commit removes the pos parameter from the DolphinContextMenu
constructor. This parameter contained the position where the Menu
would be shown later. This information isn't necessary to have on
construction and was already part of the exec(pos) call in the
first place. The variable m_pos that stored the value is removed.

This commit also removes a "customActions" functionality that can
supposedly be used to add further custom actions to the
DolphinContextMenu but this functionality isn't ever used
anywhere so its usefulness is questionable. It also wouldn't be
difficult to re-add this functionality if it was ever required for
something.

This commit also addresses an old TODO in dolphinpart.cpp that
asked for the calls for opening the DolphinContextMenu to actually
contain the information for which items the DolphinContextMenu is
supposed to be constructed. Before this, only the item that was
directly clicked was transmitted and then DolphinContextMenu
retrieved the currently selected set of items by itself.
It makes more sense that DolphinContextMenu would be informed on
construction which items it is supposed to show context actions
for.

Most of this is necessary so we are able to show the contextual
actions anywhere else than in the ContextMenu in the future.

I am targeting 22.08 with this MR because it makes no sense to merge a refactor for the upcoming release already.
2022-04-02 17:00:58 +00:00
Alexander Lohnau 0c38a27cc0 Install servicemenus in new install location
Since KIO 5.85, this new file location is preferred over the
KServiceTypeTrader results.

With this change, single desktop files from the KDE store are installed
in the correct location. If however a custom install script is used,
developers need to adjust their scripts.

Because the "kio/servicemenus" locations is different than the one
KAuthorized allows by default, we have to mark the file as executable.

Task: https://phabricator.kde.org/T14543
2022-04-01 17:55:11 +00:00
Felix Ernst 0e15ff7f14 Merge branch 'release/22.04' 2022-04-01 12:17:25 +02:00
George Florea Bănuș 29383426d6 Fix tooltip closing while mouse moves over item
The itemHovered signal is emitted whenever the mouses moves causing the
tooltip to close.
2022-04-01 10:12:05 +00:00
l10n daemon script 356ccd21b4 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-04-01 02:03:03 +00:00
Nicolas Fella 3ccc0420a6 Merge branch 'release/22.04' 2022-04-01 00:13:19 +02:00
Nicolas Fella 1041b52c7a Don't crash when mountpoint is not found
findByPath may return a nullptr, in that case don't access it

BUG: 452100
2022-03-31 23:24:59 +02:00
Kai Uwe Broulik 64ffcdad4f [ToolTipManager] Create DolphinFileMetaDataWidget on-demand again
This reverts b7fbd19a76 but creates the
widget only once and then reuses it.

However, ownership of a parent-less widget is transferred to the
`KToolTipWidget` but since we first request metadata, then show the
tooltip (or won't if the mouse moved on since), we cannot rely on
the `KToolTipWidget` exclusively.

Instead, when we still delete the widget ourself until we have
shown the `KToolTipWidget` once at which point it will handle the
life time for us.

This fixes parenting the widget to `DolphinView` which would make
it appear as a broken line in the top left of the window.
2022-03-31 14:22:24 +02:00
l10n daemon script a8966d230c SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-03-29 03:51:20 +00:00
l10n daemon script c7531ba749 GIT_SILENT made messages (after extraction) 2022-03-29 03:00:38 +00:00
l10n daemon script 447c35868c SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-03-29 02:21:23 +00:00
l10n daemon script d658c7e090 GIT_SILENT made messages (after extraction) 2022-03-29 00:58:32 +00:00
Kai Uwe Broulik df75b31304 Merge branch 'release/22.04' 2022-03-28 17:09:52 +02:00
Kai Uwe Broulik 466fa20f7f [ViewProperties] Apply better default roles for special views
This adds the following additional special view modes (some of them were
already there but broken because they weren't applied, or were
changed to have better defaults now that they are actually used):

* Recent Files and Recent Documents, timeline:
  Details view with grouped sorting enabled and Name, Path, Modified
* Search For Images:
  Icon view with Name, Dimensions, Date Time of the Picture
* Search For Audio:
  Details view with Name, Artist, Album, Duration
* Search For Videos:
  Icon view with just Name
* Search For everything else, including Documents:
  Details view with Name, Path, Modified
* Trash:
  Details view with Name, (Original) Path, Deletion Time

BUG: 400969
BUG: 340393
BUG: 186376
FIXED-IN: 22.04.0
2022-03-28 14:56:49 +02:00
Kai Uwe Broulik e304aa79b4 [ViewProperties] Consider existing roles in convertAdditionalInfo
Otherwise all default overrides for roles we perform in this class are moot.
2022-03-28 14:52:15 +02:00
Nicolas Fella b7fbd19a76 Reuse metadata widget when creating tooltips
Currently any time we hover the mouse over a file we create a new DolphinFileMetaDataWidget (even when we don't actually show a tooltip).

That is quite wasteful

Instead we can reuse the existing instance and only change the URL
2022-03-25 11:18:46 +01:00
Steffen Hartleib f509d41baf Using the gesture recognizer from KWidgetsAddons
Using the gesture recognizer from KWidgetsAddons, so that the source code for the gestures is only in one place
2022-03-23 22:00:31 +00:00
Felix Ernst 45af4bc0e0 Allow for more explicit button labels
This commit allows us to very explicitly refer to any set of items
in text. This way buttons don't need to be labeled generically
like "Permanently Delete" but can be enriched to be labeled
"Permanently Delete "FileName"" or "Copy 7 Selected Folders" or
"Copy 6 Files" or "Rename "file1", "file2", "file3", "file4" and
"folder5"".

This commit tries to save translators a lot of work by using a
translation puzzle. This might be problematic for some languages.
The alternative on the other hand would mean that any label which
wants to be explicit would need to have over 10 translations just
for one label which seems quite bad as well.

A fallback is to be implemented for languages that can't really
accommodate for any specific word puzzle. This is explained in the
documentation.
2022-03-23 15:03:32 +00:00
l10n daemon script 0a9c018497 GIT_SILENT made messages (after extraction) 2022-03-23 02:46:59 +00:00
l10n daemon script 49726ad591 GIT_SILENT made messages (after extraction) 2022-03-23 00:58:56 +00:00
Nicolas Fella 1cd00946c4 Port to target-based ecm_add_app_icon 2022-03-21 20:43:31 +01:00
Nicolas Fella 05132a2f1d Port to target-based ecm_add_app_icon 2022-03-20 20:16:04 +01:00
l10n daemon script 109eb3334d SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-03-20 03:39:12 +00:00
l10n daemon script 3c1ebfcfb1 GIT_SILENT made messages (after extraction) 2022-03-20 02:49:46 +00:00
l10n daemon script fa72ae8577 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-03-20 02:14:36 +00:00
l10n daemon script 990c6e7aa5 GIT_SILENT made messages (after extraction) 2022-03-20 00:55:37 +00:00
Kai Uwe Broulik 3fab07c967 Prettify labels in back/forward button menu
Adds a compact label based on the closes place similar to the
address bar (e.g. instead of /home/user/Pictures/Holidays it will
show Pictures/Holidays), unless "show full path in address bar"
is enabled.

Also, add the folder icon
2022-03-18 19:57:13 +01:00
Laurent Montel c6bccbf6de Fix some compile error against qt6 2022-03-15 13:30:13 +01:00
Anthony Fieroni 94acf0ba0b Pass dolphin view as parent widget to plugins
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2022-03-11 08:20:09 +02:00
l10n daemon script ecda1e9500 GIT_SILENT made messages (after extraction) 2022-03-11 00:51:19 +00:00
l10n daemon script 7c6a34222c SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-03-07 01:44:55 +00:00
l10n daemon script 3366f62b09 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-03-05 01:48:28 +00:00
l10n daemon script 62f1897e59 GIT_SILENT made messages (after extraction) 2022-03-05 00:47:08 +00:00
Kai Uwe Broulik df79f5b477 [Places Panel] Reject drops on unwritable locations
Indicate that you cannot drop here.

Avoids a "Cannot drop file" or "not supported" error when
dropping files ontop of a search or timeline URL.

It is done in Dolphin rather than the library as there we cannot
assume what a consumer might be doing with the drop.
2022-03-04 18:25:38 +00:00
David Edmundson b6e03e05f4 Fix issue where newly inserted items end up in the wrong directory
If we have directory "a" and "a/b" and expand both, then collapse "a" we
tell KDirWatcher to stop watching both these directories.

However, KDirWatcher keeps them in the listersCurrentlyHolding list as
well as the listersCurrentlyListing list and will still notify of
changes. If a new file appears in "a/b/" we will still get change
notifications.

When dolphin processes these changes we cannot find the relevant parent
node. It then gets confused and inserts the item into the root directory
from the POV of the model notifications. When we then open the relevant
folder the model knows a node with that URL exists and fails to add it
correctly.

This can also be reproduced by continually downloading files into a
subdirectory tree and rapidly expanding and collapsing folders a few
levels deep.
2022-03-04 10:57:16 +00:00
Felix Ernst cd369a1519 Always select items on activation
There is an unintended side-effect in
d383961719 which this MR fixes.

Normally in Dolphin, when clicking on an item to open/activate it,
it is both selected by the click and opened/activated.

Prior to this MR, the item wasn't selected when all of these
conditions were met:
- Use ActivateItemOnSingleClick also knwon as single-click mode
- Have more than one item selected already
- Click on an item that was previously not selected

Prior to this MR, the click would deselect all items and
activate the clicked item but not select it.

With this MR, the click will deselect all items, activate
the clicked item and also select it and move the anchor there.

When testing this with folders, make sure to navigate back after activating the folder. The folder should then still be selected.

This is then consistent with the behaviour when the specific
conditions mentioned above are not met.
2022-03-04 10:41:50 +00:00
Janet Blackquill e8dc49e4b2 KItemListHeaderWidget: don't crash if widget == nullptr
BUG: 449238
2022-03-03 16:02:29 +00:00
Stefano Crocco 505bf52f59 Display Apply button in KCMs
When displaying the KCMs in another application's configuration dialog
(for example, in Konqueror), the Apply, Ok and Reset buttons aren't
shown. This issue is caused by a missing Apply flag in the call to
setButtons in the KCModule constructor.

the fact that in the call to setButtons
from the KCModule constructor, the Apply flag is missing.

BUG: 448352
2022-03-01 12:00:37 +01:00
Heiko Becker f73183c0f6 GIT_SILENT Update Appstream for new release
(cherry picked from commit 3ac70fe65b)
2022-02-27 19:01:08 +01:00
l10n daemon script 7a9aa9076f GIT_SILENT made messages (after extraction) 2022-02-27 00:52:17 +00:00
Jan Blackquill 3ce9d1d19e KStandardItemListWidget: don't double up the expansion offset 2022-02-26 00:48:00 -05:00
Kai Uwe Broulik c68f1f6f8d Merge branch 'release/21.12' 2022-02-25 21:03:36 +01:00
Eugene Popov 8250961206 [CompactView] Remove animation on file rename
This MR fixes an issue where the label is cut off when renaming in Compact View mode.

BUG: 449179
FIXED-IN: 22.04
2022-02-25 19:37:01 +00:00
Ismael Asensio c623522ecb [DolphinQueryTest] Fix class name duplication 2022-02-25 19:23:18 +00:00
Janet Blackquill ddba4f5fd8 KStandardItemListWidget: handle RtL drawing properly
BUG: 449211
2022-02-25 16:35:05 +00:00
Kai Uwe Broulik d031696a92 Fix rating pixmap alignment on high-dpi screens
When calculating layout geometry based on the pixmap size,
one needs to divide by `devicePixelRatio`
2022-02-23 20:44:22 +01:00
Kai Uwe Broulik cd81906550 Ignore empty roles for textRect calculation
Avoids a text rect taller than the area that actually contains text,
as can be seen by hovering files in a folder with "additional roles"
that a given file does not contain.
2022-02-23 20:27:33 +01:00
l10n daemon script d774088a52 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-02-20 01:50:36 +00:00
l10n daemon script 78753ad23c SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-02-18 01:51:42 +00:00
l10n daemon script c0f86d3a58 GIT_SILENT made messages (after extraction) 2022-02-16 02:18:21 +00:00
l10n daemon script b6e47b4750 GIT_SILENT made messages (after extraction) 2022-02-16 00:48:33 +00:00
Eugene Popov a05343530d Fix zooming animation
Current implementation of the zooming animation is a bit buggy.
This MR fixes the following issues:
* in the Icon view mode, the icons sometimes "jump"
* in the Compact view mode, the labels sometimes are cut off

BUG: 449179
2022-02-13 12:16:34 +00:00
Kai Uwe Broulik e9bd295b3c [Places Panel] Make use of KFilePlacesView::dragAutoActivationDelay
Code moved to KIO
2022-02-07 07:29:35 +00:00
Ben Cooksley d0898592a1 Use the CDN based endpoint rather than the legacy endpoint which hits our download redirector.
CCMAIL: distributions@kde.org

(cherry picked from commit 694e4e2452)
2022-02-07 06:19:51 +13:00
l10n daemon script 32c072fe5f SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-02-06 01:58:24 +00:00
Kai Uwe Broulik 0dac70d059 Hide "Places" section header when panels are unlocked
Avoids showing "Places" twice.
2022-02-05 22:18:28 +00:00
Kai Uwe Broulik f645e6b4b2 Store model as a DolphinPlacesModel
Because that's what it is. It's a subclass anyway but saves us some
casts in the future.
2022-02-05 22:18:28 +00:00
l10n daemon script cd6664c569 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-02-05 01:47:47 +00:00
Nicolas Fella ce7852fb23 Merge branch 'release/21.12' 2022-02-04 12:58:29 +01:00
Nicolas Fella 3b4676b387 Fix opening FTP files in their preferred app
When passing an URL like ftp://foo/bar.txt OpenUrlJob opens it in the default handler for ftp urls, not the one for txt files, which would be more appropriate here

By passing along the mimetype we can change that behavior to what we want

BUG: 443253
2022-02-04 00:18:00 +01:00
Méven Car 08a9aaad2c InformationPanel: Improve video arrow overlay appearance 2022-02-02 18:16:59 +01:00
Bharadwaj Raju 487e95376d Don't set ignoreMaximumSize on preview jobs for slow files
With this change (plus https://invent.kde.org/frameworks/kio/-/merge_requests/702), slow files will be treated as remote files for generating previews. This should make browsing local mounts of remote locations smoother.
2022-02-02 09:41:10 +00:00
Méven Car 851b356f38 Dimension role: use × instead of x 2022-01-31 20:35:58 +01:00
Nicolas Fella ca35c71f3d Improve placeholder message for unassigned tag
When opening tags:/ we show 'No tags' when there are no tags found.

When opening a tag that exists but doesn't have any files associated we show the same message, which isnt't appropriate.

Instead show "No files tagged with 'foo'", which makes more sense
2022-01-31 18:16:29 +00:00
Kai Uwe Broulik 1c5b6d4d10 Add "Unlock panels" to main window context menu
It's the Qt-provided one that shows on the menu bar
and dock widget title bars.
2022-01-31 12:06:08 +00:00
Kai Uwe Broulik d68bb06e89 Sync panel action icon to built-in toggleViewAction
Ensures the icon is used consistently also in Qt-provided UI
2022-01-29 20:33:23 +00:00
Felix Ernst 64af89a3ff Fix my previous bad merge
I failed to notice that the changes didn't apply cleanly. With this
commit everything should be a-okay again.
2022-01-29 18:47:40 +01:00
Felix Ernst 793ad44cb8 Merge branch 'release/21.12' 2022-01-29 18:14:49 +01:00
Eugene Popov 43e915213e Revert "[DetailsView] Improve zooming"
This reverts commit 7908aff3b5.

Reverting this commit will fix the issue of not being able to rename
the last file in Details View and will also make the items in Details
View and Compact View have the same height.

BUG: 447215
FIXED-IN: 21.12.2
2022-01-29 16:35:47 +00:00
Heiko Becker 26ac2f6e0a GIT_SILENT Update Appstream for new release
(cherry picked from commit 9d08bb5b97)
2022-01-28 23:29:52 +01:00
Heiko Becker 9d08bb5b97 GIT_SILENT Update Appstream for new release 2022-01-28 23:29:39 +01:00
l10n daemon script 166e71533e SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-01-28 01:45:57 +00:00
Jan Blackquill 65846125d7 Make group headers mirror rtl 2022-01-25 23:49:03 +00:00
Stephan Sahm d71b617205 Expose konsolepart shortcuts in Dolphin's shortcuts view
Adapt some changes from Yakuake a0b08cb1f7

credit to Stephan Sahm @schlichtanders

BUG: 428265
2022-01-25 17:33:01 +00:00
Kai Uwe Broulik 94262a1c02 Add "Dimensions" (width x height) role
It is more convenient to use than individual width and height properties
2022-01-25 13:34:29 +01:00
Kai Uwe Broulik 7c5af3f88e [Places Panel] Stop drag activation timer when dropping
Avoids switching folders after a drop while interacting with
the Copy/Move/Link menu.
2022-01-24 17:44:03 +01:00
l10n daemon script d04cc67786 GIT_SILENT made messages (after extraction) 2022-01-24 02:10:57 +00:00
l10n daemon script f3cf4e3ae1 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-01-24 01:45:03 +00:00
l10n daemon script d192c8984f GIT_SILENT made messages (after extraction) 2022-01-24 00:46:18 +00:00
Kai Uwe Broulik d832216159 [Tab Bar] Accept proposed action only ontop of a tab
You cannot drop a file/folder onto the empty area of the tab bar,
so show the appropriate "not allowed" cursor.
2022-01-23 18:49:24 +00:00
Jan Blackquill b81d3fbbbb KItemListViewLayouter: handle grid view layouts in RtL properly 2022-01-19 22:29:18 +00:00
Snehit Sah 0a311a5288 Add content rating
Signed-off-by: Snehit Sah <snehitsah@protonmail.com>
2022-01-18 15:46:08 +00:00
Tom Lin d383961719 Full row highlight implementation
This commit implements full-row selection and hover highlights for the
details view mode.

This commit also contains fixes for 444680, 444753, both uncovered
during this change.

BUG: 181438
BUG: 444680
BUG: 444753
FIXED-IN: 22.04
2022-01-16 14:01:32 +00:00
Laurent Montel a286506405 We depend against kf5.91 2022-01-15 17:44:36 +01:00
Laurent Montel c21a02bcab Adapt build system for building against qt6 2022-01-14 08:04:01 +01:00
Alexander Lohnau 8bc7f72a73 Utilize ecm_set_deprecation_versions to exclude deprecated API 2022-01-14 07:13:20 +01:00
Alexander Lohnau 63124f569c Port away from deprecated I18N*_NOOP macros 2022-01-13 21:41:19 +01:00
Kai Uwe Broulik af2baf8047 Remove KStandardItem and KStandardItemModel
They were used by the custom places panel and are now unused.
2022-01-11 13:43:44 +01:00
Kai Uwe Broulik 0603e18cd4 Port back to KFilePlacesView
This removes the custom-view engine version of the places panel
and replaces it with the upstream `KFilePlacesView` from KIO.
2022-01-09 18:09:10 +01:00
Claudio Cambra 3abc4cfcd4 Add Flatpak patches to Dolphin depending on CMake definition
When Dolphin gets packaged as a flatpak, this patch gets applied:

https://invent.kde.org/packaging/flatpak-kde-applications/-/blob/master/dolphinpatch.patch

That's not really an ideal solution, so this is probably a better idea -- to upstream the patches and apply them depending on a CMake definition
2022-01-04 21:53:44 +00:00
Alexander Lohnau dafa1e1f20 Utilize KIO::PreviewJob::availableThumbnailerPlugins method to fetch available preview plugins 2022-01-04 17:07:38 +00:00
Heiko Becker 9185c5128e GIT_SILENT Update Appstream for new release
(cherry picked from commit 306e7e2493)
2022-01-03 22:19:57 +01:00
Heiko Becker 306e7e2493 GIT_SILENT Update Appstream for new release 2022-01-03 22:19:47 +01:00
Alexander Lohnau 795406e21b Load service menus for settings from new file location
This is a replacement for the KServiceTypeTrader loading.
Because third parties still use the KServiceTypeTrader file location, we need to
support both for the time being.
2022-01-02 10:13:27 +01:00
Alexander Lohnau e447b88296 Version control plugins: Remove defunct KServiceTypeTrader query for available plugins
We do not load those plugins anymore, consequently it does not make sense to find and display them in the settings
2022-01-02 10:04:56 +01:00
l10n daemon script f386f848de SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2022-01-02 02:03:50 +00:00
Nate Graham 28ecfd5a34 Improve sudo/kdesu error message
Now that you can get elevated privileges while using the app, we can
display a more useful and descriptive error message when people try to
run Dolphin using `sudo` or `kdesu`.

Also bump the frameworks dependency to 5.90 since that's the KIO
version that includes this change, so we can be sure that the message is
always accurate.
2021-12-31 10:38:19 -07:00
l10n daemon script c40fe3b886 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-12-31 01:44:30 +00:00
Ben Cooksley 694e4e2452 Use the CDN based endpoint rather than the legacy endpoint which hits our download redirector. 2021-12-30 07:31:41 +13:00
Fushan Wen eb0a7da653
kitemlistview: Port KItemListView::itemAt to std::optional
Use `value_or(-1)` for those functions that don't use `std::optional`.
2021-12-28 22:48:28 +08:00
l10n daemon script c071150b7d SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-12-28 01:43:52 +00:00
Leo Treloar 4b224516f4 Add name-only tooltip and make logicalHeightHints a pair of qreal and bool 2021-12-28 11:48:23 +11:00
Leo Treloar e46e982dbd Change default value of MaximumTextLines to 3
The previous default of allowing an unlimited number of text lines to be
displayed in icon view can lead to very large, inconsistent, and
unattractive gaps between rows. Capping this by default makes things
look much neater.
2021-12-24 17:07:54 +11:00
l10n daemon script b38d7150d9 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-12-20 01:45:56 +00:00
Alexander Lohnau 2f62b054ea GIT_SILENT Port remaining QDateTime::toTime_t usage in windows code path 2021-12-19 14:10:13 +01:00
Kai Uwe Broulik caf49dafa5 Merge branch 'release/21.12' 2021-12-18 15:17:39 +01:00
Kai Uwe Broulik b2c137fdb7 Use QUrl::toDisplayString when presenting to the user
Strips out password information
2021-12-18 14:09:53 +00:00
l10n daemon script c39ce059d6 GIT_SILENT made messages (after extraction) 2021-12-18 02:14:50 +00:00
l10n daemon script e980dd20d6 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-12-18 01:49:43 +00:00
l10n daemon script ff693a00c8 GIT_SILENT made messages (after extraction) 2021-12-18 00:46:07 +00:00
Alessio Bonfiglio 65b18bf935 Enable Ctrl/Shift-Click to open folder in a new tab/window
and more
2021-12-17 14:11:46 +00:00
Nicolas Fella 3c5bf0c96c Remove calls to no-op KNewFileMenu::setViewShowsHiddenFiles
The implementation doesn't do anything
2021-12-16 20:09:45 +00:00
Kai Uwe Broulik 4bfc339bac [Information Panel] Remove unused PlacesItemModel 2021-12-16 12:06:51 +00:00
Alexander Lohnau 55785991be Remove deprecated call to KParts::PartBase::loadPlugins.
With https://invent.kde.org/frameworks/kparts/-/merge_requests/32 this method got deprecated,
and with https://invent.kde.org/network/konqueror/-/merge_requests/99 only the kget plugin is actually loaded.

https://invent.kde.org/network/konqueror/-/merge_requests/100 Takes care of importing the kget plugin to konqueror.
2021-12-16 07:06:58 +00:00
l10n daemon script 02e8789ec2 GIT_SILENT made messages (after extraction) 2021-12-15 02:25:55 +00:00
l10n daemon script 1421af70eb SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-12-15 01:57:54 +00:00
l10n daemon script b4e3c2645e GIT_SILENT made messages (after extraction) 2021-12-15 00:48:33 +00:00
Alexander Lohnau ec0baf067d Port deprecated QDateTime::toTime_t method call 2021-12-13 10:40:02 +01:00
Alexander Lohnau fd717b88fa Drop now unneeded QOverload statements
By defining the KF_DISABLE_DEPRECATED_BEFORE_AND_AT and QT_DISABLE_DEPRECATED_BEFOREvalues,
the deprecated overloads are hidden. This way we only have the un-deprecated one visible.
2021-12-13 08:35:26 +00:00
l10n daemon script fbe1ecaa6a SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-12-12 01:48:07 +00:00
Albert Astals Cid 0d35d8963a GIT_SILENT Update Appstream for new release
(cherry picked from commit 438f6cc434)
2021-12-11 02:58:40 +01:00
l10n daemon script ce8d4e5bcd SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-12-11 01:42:51 +00:00
l10n daemon script 4451c9f2df SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-12-10 01:45:23 +00:00
Albert Astals Cid 438f6cc434 GIT_SILENT Update Appstream for new release 2021-12-09 17:05:02 +01:00
Kai Uwe Broulik 188b73e7d4 Show OpenUrlJob errors as inline message
Avoids an ugly message box when opening a file fails or is forbidden.
2021-12-08 16:59:05 +01:00
l10n daemon script 1035f182b1 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-12-08 01:48:36 +00:00
l10n daemon script 01e2a04467 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-12-07 01:46:49 +00:00
luz paz fde79c09cb Fix various typos
Found via `codespell -q 3 -S *.desktop,*.xml`
2021-12-06 07:59:23 -05:00
l10n daemon script 73e919a4f3 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-12-06 01:44:56 +00:00
l10n daemon script 6cd5e10f22 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-12-05 01:44:08 +00:00
Tornado 99 45bf40d422 Add Microsoft Windows and Mac OS X equivalents as keywords to help new users, org.kde.dolphin.desktop 2021-12-04 15:13:42 +00:00
l10n daemon script eeaadaf995 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-12-04 01:44:59 +00:00
l10n daemon script 9ec88ec1ae SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-12-03 01:47:17 +00:00
Paul Brown 1939609e70 Tweaked showFilterBar tooltip text for accuracy 2021-12-02 18:02:40 +00:00
Eugene Popov 2ef87708fd [Location Bar] Add the ability to show hidden folders in the subdirectories popup 2021-12-02 09:03:47 +00:00
Alexander Lohnau f1756dd141 Port deprecated QLayout::margin call
As the method impl suggests, the left value is preferred if all the values are the same.
This is the case for the given layout.

```cpp
int QLayout::margin() const
{
    int left, top, right, bottom;
    getContentsMargins(&left, &top, &right, &bottom);
    if (left == top && top == right && right == bottom) {
        return left;
    } else {
        return -1;
    }
}
```
2021-12-01 22:10:58 +00:00
Alexander Lohnau fb483636e8 Port away from deprecated KFileItemActions::runPreferredApplications overload 2021-12-01 22:10:58 +00:00
Alexander Lohnau bff2ef9385 Port away from deprecated QDateTime::.toTime_t method 2021-12-01 22:10:58 +00:00
Alexander Lohnau e30494323d Port deprecated QFontMetrics::horizontalAdvance 2021-12-01 22:10:58 +00:00
Alexander Lohnau 906622ee2a Port away from deprecated KFileItemActions::addOpenWithActionsTo method
Instead of the KServiceTypeTrader constraint, pass the desktop file name
as part of the exclude list to the method call.
2021-12-01 22:10:58 +00:00
Alexander Lohnau a8ac157bdc Port away from deprecated KDesktopFileActions::userDefinedServices overload 2021-12-01 22:10:58 +00:00
Alexander Lohnau 82202a24e2 Port away from deprecated KPluginLoader 2021-12-01 22:10:58 +00:00
Alexander Lohnau 6228921f10 Load trash KCM using KPluginMetaData
The QString overload uses KServiceTypeTrader, which is deprecated
2021-12-01 22:10:58 +00:00
Nate Graham 36c9b52db4 Use standard Keywords= instead of X-KDE-Keywords=
There's nothing KDE-specific about these keywords.
2021-12-01 09:49:25 -07:00
Felipe Kinoshita 416b164ce0
Add some keywords to desktop file 2021-11-30 16:24:09 -03:00
Nate Graham 82b542cb2b Merge branch 'release/21.12' 2021-11-29 10:25:06 -07:00
Nate Graham 4b530c91c1 Use new "edit-copy-path" icon for "Copy Location" menu item
This is safe to change without a fallback icon explicitly specified
because if it doesn't exist in the active icon theme, it will fall back
to edit-copy which is a standard FreeDesktop icon name present in
every icon theme ever.

CCBUG: 423937
2021-11-29 10:23:06 -07:00
Kai Uwe Broulik 04e3c227cb Merge branch 'release/21.12' 2021-11-29 13:31:46 +01:00
Kai Uwe Broulik ec8f757f9c [Status Bar] Don't mess with status bar visibility in extensions
"Extensions" is additions to the status bar like free space bar
and zoom slider which should hide while loading.

The status bar itself should only show/hide based on the global setting.

BUG: 443132
2021-11-29 11:34:22 +01:00
Eduardo Cruz 3d49996615 Properly display parent folders when filtering is active and items are added or refreshed
The methods slotRefreshItems(), slotItemsAdded() and slotItemsDeleted()
are adapted so they are now compatible with the new behavior of
filtering expanded folders achieved in
ed83f37f06. The new behavior is that
expanded folders are hidden from view if neither the folder itself
nor any of its contents passes the filter. Previously expanded folders
would always stay visible no matter the filter.

A bug where the parent expanded folder would disappear after adding
or refreshing an item while filtering is also fixed.

Tests are added to make sure these behavior changes won't regress.

BUG: 442275
FIXED-IN: 22.04
2021-11-28 13:24:32 +00:00
Fushan Wen 4585f215a9 Move "Default" option to the front in "Select Remote Charset" menu
The ordering of encodings is different from other KDE apps in
"Select Remote Charset" menu. We should keep the UI consistency.

BUG: 445148
2021-11-27 17:51:14 +08:00
Kai Uwe Broulik cdb4a7909d KFileItemModelRolesUpdater: Generate thumbnails for visible files first
Folder thumbnails are not cached as we cannot know whether something
inside a folder changed. Moreover, they are also a collage of several
files and might even traverse into subdirectories. This takes time.
2021-11-23 16:52:59 +01:00
Eugene Popov 1657216474 Fix updating window and tab titles
This MR fixes an issue where the window and tab titles don't properly handle creating/deleting/renaming items in the places bar, as well as switching to the Search mode.
2021-11-13 18:20:59 +02:00
Andreas Kainz 5bb6bf8d1e Dolphin preferences dialog use now for everything colorfull icons 2021-11-13 10:44:21 +01:00
Felix Ernst 81c32c18a5 Port ViewModeSettings from macros to std::variant
Macros should be avoided if possible. Instead this commit replaces
the usage of macros with an std::variant of the ViewModeSettings.

As part of this cleanup, code that belongs to the VideModeSettings
class is moved there. Some parameters are also renamed to be more
in line with typical naming conventions.
2021-11-03 16:02:46 +00:00
Laurent Montel 1118413c63 Remove duplicate include from .h/.cpp 2021-11-02 13:20:10 +01:00
Heiko Becker cf80ab492d GIT_SILENT Update Appstream for new release
(cherry picked from commit 3973e37b46)
2021-10-31 11:13:55 +01:00
David Murray 769d147026 Add support for recentlyused: kio to view properties.
Add "recentlyused" to the URL schemes recognised by ViewProperties as
needing special handling.  User-set view properties for the
recentlyused: kio are then saved under view_properties/recentlyused in
dolphin's app data directory.

(Previously, the recentlyused: kio was treated, by default, as if it was
a remote location for the purposes of view properties.  Since it
displays somewhat specialised results (files/directories from various
locations), users might find it useful to set particular view properties
and have them remembered.)
2021-10-30 16:39:06 +01:00
l10n daemon script c1200b3ddb GIT_SILENT made messages (after extraction) 2021-10-27 00:22:51 +00:00
Laurent Montel 3f76d92402 GIT_SILENT: add missing override keyword 2021-10-25 13:34:22 +02:00
Alexander Lohnau b497dc9cbd Save size of config dialog in state config
CCBUG: 397602
2021-10-20 16:07:11 +00:00
Alexander Lohnau 946b911a5d Utilize KXMLGUI API to store state config in separate file
CCBUG: 397602
2021-10-20 16:07:11 +00:00
Blaster goo 73082d2e42 Currently, when changing Version Control settings in Configure -> Context Menu, it
tells you to restart to apply those settings. This commit changes that by asking you
if you would like to restart now or later.

FEATURE: 441192
FIXED-IN: 21.12
2021-10-11 17:41:42 +00:00
Alexander Lohnau 2f5e4cb029
Install KCMs in dolphin/kcms namespace
This will allow consumers to load the plugin from this namespace
without KServiceTypeTrader being involved.
2021-10-09 14:14:27 +02:00
l10n daemon script 1937681d50 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-10-09 01:19:17 +00:00
ivan tkachenko ec031d0f7d
Fix typo: PascalCase in docs 2021-10-07 16:39:35 +03:00
Felipe Kinoshita a5770d5246
Change settings window title to "Configure" for consistency sake
This commit makes Dolphin's settings window more consistent with
other KDE apps.
2021-10-06 15:30:42 -03:00
Heiko Becker 8f0f12309c GIT_SILENT Update Appstream for new release
(cherry picked from commit 89629bfcc6)
2021-10-05 00:11:03 +02:00
Eduardo Cruz ed83f37f06 Rewrite filter algorithm to properly support filtering with expanded folders under Detail View mode.
BUG: 411878
CCBUG: 442275
FIXED-IN: 21.12
2021-10-04 07:13:54 +00:00
Nate Graham 0c44dfe2b1 Merge branch 'release/21.08' 2021-09-28 13:57:14 -06:00
Eugene Popov fa8d9de4d8 Fix closing a secondary viewContainer on startup settings change
Apply split view settings only when changing the corresponding option.

BUG: 426221
FIXED-IN: 21.08.2
2021-09-28 19:39:52 +00:00
Nicolas Fella 8bf64cf8b1 Don't force icon for preferred search tool action if one is manually configured
The code reads the icon from the relevant application and uses that for the action

When the user has configured one manually in the toolbar settings that is overridden

To avoid this only change the icon if it is the default one (search)

BUG: 442815
(cherry picked from commit d3f427a6da)
2021-09-22 23:25:23 +02:00
Nicolas Fella d3f427a6da Don't force icon for preferred search tool action if one is manually configured
The code reads the icon from the relevant application and uses that for the action

When the user has configured one manually in the toolbar settings that is overridden

To avoid this only change the icon if it is the default one (search)

BUG: 442815
2021-09-22 21:23:53 +00:00
l10n daemon script f8c292c556 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-09-20 01:28:18 +00:00
l10n daemon script 084dbbe2f7 GIT_SILENT made messages (after extraction) 2021-09-20 00:22:38 +00:00
l10n daemon script 0ac967c021 GIT_SILENT made messages (after extraction) 2021-09-13 01:46:10 +00:00
l10n daemon script caa4afc156 GIT_SILENT made messages (after extraction) 2021-09-13 00:20:54 +00:00
Nate Graham de7c7ca274 Merge branch 'release/21.08' 2021-09-07 13:32:17 -06:00
Tyson Tan 9e4a2c93b3 Fixed a missing bracket. 2021-09-07 18:11:06 +00:00
Tyson Tan d6ded8c28d Make "Empties Trash to create free space" translatable. 2021-09-05 14:17:30 +00:00
Nate Graham 27bfcde4ef Port to KTerminalLauncherJob
Dolphin still uses KToolInvocation::invokeTerminal() which is
deprecated and requires KInit. However Dolphin was ported away from
requiring it in other ways, so it is now possible to have Dolphin
running but not KInit, which breaks the "Open in Terminal"
functionality.

Using KTerminalLauncherJob fixes this. It was introduced in Frameworks
5.83, so the CMake dependency version is accordingly increased.

BUG: 441072
FIXED-IN: 21.12
2021-08-31 09:12:16 -06:00
Méven Car 653d5714a7 Tabs: ensure to have folder icons for remote folders
KIO::iconForUrl relies on filename to find the icon for remote files.
Appending / at the end of the filename allows it to interpret it as
a folder.

This causes inconsistent tab icons.

To reproduce:

Open in a tab a url on a smb or sftp folder, i.e sftp:/my-server/photos

Before:
Icon is a cloud.

After:
Icon is a folder

Previously a folder icon could be presented if the tab was first opened
with a url with a trailing /
2021-08-30 14:58:08 +00:00
Eugene Popov b712c9fc46 [Split view] Reset splitter position on double click
This commit makes Dolphin to reset the position of the Split View splitter
on double-click.

BUG: 206525
FIXED-IN: 21.12
2021-08-30 14:18:21 +00:00
Elvis Angelaccio 99cc976a85 Revert "Revert "Disable Hidden Files Last sort by default""
This reverts commit 272aa65bb5.
2021-08-29 19:52:58 +02:00
Elvis Angelaccio 011fe5b1e8 Revert "Revert "Configurable Show hidden files and folders last toggle""
This reverts commit bb67def173.
2021-08-29 19:52:44 +02:00
Elvis Angelaccio 3286a194d6 Revert "Revert "Show hidden files and folders last""
This reverts commit 63e12c0cdf.
2021-08-29 19:52:22 +02:00
Elvis Angelaccio 8b4d3624ad Merge branch 'release/21.08' 2021-08-29 19:42:51 +02:00
Eugene Popov 127e446ba0 Filter the items that have changed 2021-08-29 17:35:35 +00:00
Heiko Becker 05448c4dea GIT_SILENT Update Appstream for new release
(cherry picked from commit b9f320b164)
2021-08-27 22:54:49 +02:00
Heiko Becker b9f320b164 GIT_SILENT Update Appstream for new release 2021-08-27 22:54:49 +02:00
Jan Paul Batrina 1d125057cb FoldersPanel: Fix inline renaming
Commit 5a0da4a9c8 changed the value
for emitRoleEditingFinished() to a struct containing
the new name, but folderspanel was not updated.

BUG: 441124
2021-08-27 07:29:29 +00:00
Eugene Popov ae46ab2c3d Use default icon size when resetting zoom level
BUG: 437349
2021-08-26 11:14:24 +00:00
Andrey Butirsky 5e84fffd6e DBus activation with filemanager iface
In Dolphin on wayland currently, if you right clicks a file and create a
zip file from it, Dolphin makes a new window.
What we want to happen is Dolphin to focus the window we have with the
file selected.

This patches Dolphin's dbusinterface.cpp to call
KWindowSystem::setCurrentXdgActivationToken()
with the startupID
2021-08-25 14:45:55 +00:00
Alexander Lohnau 542e2a214a
Fix selecting file always opening new instance
Instead try to attach to all existing instances and quit after succeeding.

BUG: 440663
2021-08-24 16:21:40 +02:00
l10n daemon script 6964140699 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-08-23 02:29:46 +00:00
l10n daemon script 943af95605 GIT_SILENT made messages (after extraction) 2021-08-23 01:54:12 +00:00
l10n daemon script e76bf5cb18 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-08-23 01:28:23 +00:00
l10n daemon script 37d415cedc GIT_SILENT made messages (after extraction) 2021-08-23 00:22:17 +00:00
Christian Muehlhaeuser 0ed31f10c3 Simplify KFileItemModel's sorting
Returns from function as soon as we encounter a decisive comparison,
while ensuring the fallbacks provide a stable sorting. Added comment
to clarify the situation.
2021-08-14 09:01:56 +00:00
Alexander Volkov 7f4756aecb Avoid crash on start when help actions are restricted through the Kiosk system
KHelpMenu may not create some actions, so check for nullptr before
setting "What's this?" text.

(cherry picked from commit 0ac57fbe90)
2021-08-10 17:06:36 +03:00
Alexander Volkov 0ac57fbe90 Avoid crash on start when help actions are restricted through the Kiosk system
KHelpMenu may not create some actions, so check for nullptr before
setting "What's this?" text.
2021-08-10 12:04:25 +03:00
l10n daemon script e101560f84 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-08-09 02:11:38 +00:00
l10n daemon script 9fc1e5397b GIT_SILENT made messages (after extraction) 2021-08-09 01:36:37 +00:00
l10n daemon script cb9142a9bb SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-08-09 01:11:30 +00:00
l10n daemon script a38f1c8eae GIT_SILENT made messages (after extraction) 2021-08-09 00:18:47 +00:00
Nate Graham 63e12c0cdf Revert "Show hidden files and folders last"
This reverts commit 996e430b62.

The accompanying feature to make the behavior configurable and disable
it by default was reverted in 21.08, so we need to revert the feature
itself as well and only ship it in 21.12, to avoid changing people's
setting back and forth, which is often not well-received.
2021-08-06 10:46:33 -06:00
Heiko Becker bb67def173 Revert "Configurable Show hidden files and folders last toggle"
This reverts commit 50149d6abb.

It breaks the string freeze and I don't think it can count as a bug
fix, so it breaks the feature freeze, too.

CCMAIL: zrenfire@gmail.com
2021-08-06 00:40:40 +02:00
Heiko Becker 272aa65bb5 Revert "Disable Hidden Files Last sort by default"
This reverts commit fd2203bb39.
2021-08-06 00:36:50 +02:00
Nate Graham 3e95a6cccc Merge branch 'release/21.08' 2021-08-05 08:34:04 -06:00
Chris Holland fd2203bb39 Disable Hidden Files Last sort by default 2021-08-05 12:55:01 +00:00
Gaston Haro 50149d6abb Configurable Show hidden files and folders last toggle
CCBUG: 241227

Revision: https://phabricator.kde.org/D29115
2021-08-05 12:55:01 +00:00
Heiko Becker 8f093e6b74 GIT_SILENT Update Appstream for new release
(cherry picked from commit 2b90a13c62)
2021-08-04 23:56:32 +02:00
Heiko Becker 2b90a13c62 GIT_SILENT Update Appstream for new release 2021-08-04 23:49:19 +02:00
Nate Graham d472cb2a25 Merge branch 'release/21.08' 2021-08-02 10:32:31 -06:00
Jordan Bucklin f190ae1cf8 Fix how --select treats files
Previously, when passing file URLs with the --select option,
Dolphin would open the file in its corresponding application, as
well as opening an empty tab in Dolphin as if the file were a
directory. This happens specifically when trying to restore a
session.

This commit prevents Dolphin from opening a file in an application
and from opening an empty tab while passing the --select option,
and selects the URLs instead.

BUG: 436584
2021-08-01 15:54:08 -07:00
Felix Ernst 7edce5a09c Fix width issues when un-maximizing Dolphin
Before this commit un-maximizing or to be more precise instantly
changing the size of the window by a large amount could potentially
change the width of the sidebars, the viewContainers and the window
itself to unexpected/undesired widths.

This happened because the spacing calculation is triggered when the
primary ViewContainer is resized but at this point in time some of
the other widgets, especially the secondary ViewContainer and the
navigatorsWidget have generally not been resized yet. Therefore the
width and spacing calculations are based on partly updated and
partly outdated values leading to wrong results.

This commit makes it so calculation of spacings is delayed until
all widths have been updated.

Yes, spacing probably should not have the power to resize the
window but unfortunately the spacing can not be set to be less
forceful when taking space because otherwise the UrlNavigators
will take all space they can get with their
QSizePolicy::MinimumExpanding.

BUG: 430521
FIXED-IN: 21.08
2021-08-01 21:57:23 +00:00
Nate Graham ea7d4f059d Revert "Don't session-restore invalid paths"
This reverts commit c733b3aa97.

There are people who prefer the old behavior of session-restoring all
paths including the ones which are currently inaccessible. The idea is
that Dolphin is like a web browser; if a website is not currently
available, the browser tells you that instead of silently discarding the
URL and showing you the homepage. Doing this can be considered a form
of data loss.

In addition, the reason for the change was to prevent Dolphin from
showing invalid paths on launch for unmounted removable disks, but that
specific case was fixed separately by switching to ~ for any tabs/views
that were showing locations on a just-unmounted removable disk. So you
will never run into the problem if yo unmount a disk in Dolphin and then
close it.

Accordingly, let's revert the change because it causes more problems than
it resolves.

BUG: 439864
CCBUG: 427619
FIXED-IN: 21.08
2021-07-28 12:59:29 -06:00
Albert Astals Cid 393c659c9a Merge remote-tracking branch 'origin/release/21.08' 2021-07-27 00:34:14 +02:00
Albert Astals Cid 674a4a91da Add break; to KItemListRoleEditor::keyPressEvent cases 2021-07-26 22:08:58 +00:00
Eugene Popov 90699c2c2d [PlacesPanel] Remove horizontal scrollbar
This MR removes the horizontal scrollbar of the Places panel. For titles that don't fit in the panel, their elided versions will be used (i.e., with ...).

BUG: 301758


(cherry picked from commit deaf5916f2)
2021-07-24 03:30:51 +00:00
Nicolas Fella 6e56cc3286 Remove unneeded KCM plugin keyword stuff 2021-07-23 10:15:06 +00:00
l10n daemon script 012eb06968 GIT_SILENT made messages (after extraction) 2021-07-23 00:20:10 +00:00
Ahmad Samir 32c1bd7188 Clean up KF API older than 5.82
GIT_SILENT
2021-07-19 09:57:58 +00:00
Ahmad Samir 0b81b4baf9 Use KDirLister directly now that it emits a jobError() signal
Since KIO 5.82, KCoreDirLister (the base class of KDirLister) emits a jobError()
signal when the ListJob used internally emits an error.

Drop KFileItemModelDirLister class, now redundant.

This also bump the KF version to 5.82.
2021-07-19 09:57:58 +00:00
Eugene Popov 7908aff3b5 [DetailsView] Improve zooming
Under some conditions, when zooming, only the size of the icon is changed, but not the entire item, which visually doesn't look good. The main idea of this MR is that when scaling the whole element should be resized, not just the icon, so I came up with some zoom levels for the main icon sizes. With this commit, zooming will resize the entire element, even if the resizing of the icon doesn't affect the size of the entire element.
2021-07-18 16:59:47 +00:00
Eugene Popov deaf5916f2 [PlacesPanel] Remove horizontal scrollbar
This MR removes the horizontal scrollbar of the Places panel. For titles that don't fit in the panel, their elided versions will be used (i.e., with ...).

BUG: 301758
2021-07-18 16:58:10 +00:00
Toni Asensi Esteve 3bde6ba13c Delete some items that were intended to be deleted. Avoid trying to delete items that don't exist
When deleting items of a list, follow a sequence that ensures that the item
that is going to be deleted exists.

Revision: https://invent.kde.org/system/dolphin/-/merge_requests/240
2021-07-17 19:50:52 +02:00
Nate Graham 2c7a1f4b4c Merge branch 'release/21.08' 2021-07-16 23:08:18 -04:00
Jordan Bucklin 3fe971e174 Fix placeholder label text within an empty folder in Trash
An empty folder within the Trash bin previously had the placeholder
label "Trash is empty". This label should only appear in top-most
Trash/ url, and "Folder is empty" otherwise.

BUG: 439952
2021-07-16 19:39:27 -07:00
Méven Car 6f632283d0 Allow to have HiDpi previews
BUG: 401170
2021-07-16 06:53:32 +00:00
Elvis Angelaccio b26b1d491e Merge branch 'release/21.08' 2021-07-13 21:50:41 +02:00
Christian Muehlhaeuser baaf0c29b8 Ensure stable sort order when sorting by size
Folders with equal size caused the sort operation to become unstable,
as the result of lessThan was non-deterministic.

We need the fallback mechanisms at the bottom of the function to
resovle the situation and provide a stable sort order.

This also fixes expanding the contents of a folder into the wrong
parent.

BUG: 433247
FIXED-IN: 21.08
2021-07-13 21:48:41 +02:00
Alex Richardson 3fdd93db97 Don't exit immediately if DBus isn't running
I am trying to run Dolphin on a minimal FreeBSD CHERI-RISC-V QEMU
instance and I haven't got DBus running. Without this change, KDBusService
causes dolphin to exit immediately since the default behaviour is to
exit if it can't connect to DBus.
2021-07-10 20:18:28 +00:00
Alex Richardson 531de16cd0 Avoid crashing on startup if DBus isn't running
I am trying to run Dolphin on a minimal FreeBSD CHERI-RISC-V QEMU
instance and I haven't got DBus running. Without this change, I get
crashes because QDBusConnection::sessionBus().interface() returns NULL
if DBus isn't running.
2021-07-10 20:18:28 +00:00
l10n daemon script c5fdcc41de GIT_SILENT made messages (after extraction) 2021-07-09 00:19:18 +00:00
l10n daemon script 93151bd392 GIT_SILENT made messages (after extraction) 2021-07-07 00:20:10 +00:00
Heiko Becker fd26898a36 GIT_SILENT Update Appstream for new release
(cherry picked from commit f8838005d7)
2021-07-05 20:59:45 +02:00
Alexander Lohnau 30299e00b1 Reuse KFileItemActions instance during lifetime of dolphin
With https://invent.kde.org/frameworks/kio/-/merge_requests/411 the
plugin instances can be reused during the lifetime of the
KFileItemActions object. This improves performance and also allows
the plugins to emit errors, even if they run async.
2021-07-04 20:33:48 +00:00
Alexander Lohnau dd7f3fb783 contextmenu: Listen to new error signal from KFileItemActions
Task: https://phabricator.kde.org/T12164
2021-07-04 20:33:48 +00:00
Elvis Angelaccio 8ef8e03e21 Fix regex porting regression
QAbstractItemModel::match() under the hood uses QRegExp::exactMatch(),
so with QRegularExpression we need to use anchoredPattern() on the pattern.

Regression spotted by a failing dolphinmainwindowtest.
2021-07-04 22:15:17 +02:00
David Hurka fb210d6ec4 Port to new KActionMenu popup mode API
Use KActionMenu and KToolBarPopupAction::setPopupMode()
methods instead of setDelayed() and setStickyMenu().
Are available since KF 5.77 and KF 5.78 respectively,
which is already required by Dolphin.
2021-07-04 15:26:18 +02:00
Elvis Angelaccio edd0034a5e Port away from deprecated enum
We already require Qt 5.15
2021-07-04 13:35:26 +02:00
Elvis Angelaccio 0d71ac9ad1 Drop unused list
Spotted by clazy.

GIT_SILENT
2021-07-04 13:35:26 +02:00
David Lerch aba4462e02 Add support for hover sequence thumbnails (via ThumbSequenceCreator)
This shows a slideshow of thumbs when the user hovers a file item.
2021-07-04 10:24:07 +00:00
Méven Car 8048e6ed1b InformationPanel ensure to have a showUrl when no items are selected 2021-07-04 10:04:00 +00:00
Elvis Angelaccio 7d6aaf4c07 Drop unused include
GIT_SILENT
2021-07-04 12:02:30 +02:00
Nicolas Fella 32ebe96eca Port konsolepart loading to use KPluginLoader directly
No need to go via KService
2021-07-04 09:13:01 +00:00
l10n daemon script 7f562433c0 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-07-04 01:17:03 +00:00
Nicolas Fella 902e8ee07e Remove unused includes 2021-07-03 20:19:33 +02:00
Alexander Lohnau 67e1a465e1
Use KNewStuff3 as group key in knsrc file
The other key was used during the transition from KDE4->KDE5 and makes no difference when the config file is read
2021-07-03 17:34:45 +02:00
Alexander Lohnau 523321fbc7
Remove deprecated and defunct KNewStuff properties 2021-07-03 17:25:40 +02:00
Alexander Lohnau cc962cae49
Remove go action for settings kio slave
The settings kio slave is about to be removed, see
https://invent.kde.org/network/kio-extras/-/merge_requests/107.
2021-06-30 15:38:53 +02:00
Mufeed Ali 152a7b4fcb Show a "Loading..." placeholder text
Since a placeholder text is being used when the folder is empty, it
also makes sense to show a similar placeholder text when the view is
still loading, especially now that the status bar which previously
contained a loading indicator now disappears when a folder is loading.
2021-06-29 13:52:57 +00:00
Méven Car a3559a19db KFileItemModel: Allow to group files and folder together
When folders size is available and unless sort dir first is set, folders
and files can be grouped together in the regular size groups.

Without this you can end up with multiple groups being added each time a
folder size alternates with a file size.

Relates to d520b417c97bdbdfece2a497dac8b5384a80b597
2021-06-27 09:19:43 +00:00
Felix Ernst 823e99fe78 Merge branch 'release/21.04' addendum
This should have belonged to my previous merge
480b3067d2 but somehow I managed to
miss this one line.

It was written by Derek Christ as part of
dc3beae3ab.
2021-06-22 14:52:35 +02:00
Felix Ernst 480b3067d2 Merge branch 'release/21.04' 2021-06-22 11:55:53 +02:00
Derek Christ dc3beae3ab Fix shift-action modifier in context menu
Before this patch, the shift-action modifier in context menus did not
work when a sub-context menu is open, that does not have the main
context menu as its parent.
The new fix installs an event filter on QApplication whenever a new
context menu is opened to make the context menu aware of shift-presses
even when a sub-context menu is in focus.

BUG: 425997
FIXED-IN: 21.04
2021-06-22 08:53:55 +00:00
Ahmad Samir 0a0d0c48ee Fix X-DocPath entries
This way they're more correct, which means they can work with KHelpCenter
and when falling back to opening the relevant page at docs.kde.org in any
web browser.

See https://invent.kde.org/graphics/okular/-/merge_requests/441 for more
details.

(cherry picked from commit 5e79f27aec)
2021-06-18 17:19:12 +02:00
Ahmad Samir 5e79f27aec Fix X-DocPath entries
This way they're more correct, which means they can work with KHelpCenter
and when falling back to opening the relevant page at docs.kde.org in any
web browser.

See https://invent.kde.org/graphics/okular/-/merge_requests/441 for more
details.
2021-06-18 15:01:41 +00:00
l10n daemon script 19405fc3c7 GIT_SILENT made messages (after extraction) 2021-06-18 00:20:33 +00:00
l10n daemon script f8fccec14e GIT_SILENT made messages (after extraction) 2021-06-14 00:19:51 +00:00
l10n daemon script 699ddc3540 GIT_SILENT made messages (after extraction) 2021-06-13 00:21:39 +00:00
Felix Ernst 63d1946384 Remove the filter action from the toolbar
This commit removes the "toggle_filter" action from the default
toolbar configuration. It is not quite important enough to be
always visible on the toolbar by default. Instead it is easily
accessible through the hamburger menu and the menu bar.

The filter is only really necessary if one has a lot of items in
the current location and one knows exactly how to identify a
certain item among them by the name which probably isn't how most
people browse their files.

There are also some more advanced use-cases but advanced users
will be able to either learn the keyboard shortcut or move this
action back to the toolbar.
2021-06-12 17:08:28 +02:00
Felix Ernst 5271943a25 Add "Sort By" to the hamburger menu
People seem to use the "Sort By" menu often enough that it should
be available through the hamburger menu.

Before this change one could only sort the view through the right-
click context menu, using the details view mode or by using the
actions from the menu bar.
2021-06-08 13:48:41 +02:00
l10n daemon script c6262c97af GIT_SILENT made messages (after extraction) 2021-06-08 00:19:48 +00:00
l10n daemon script 14687479da GIT_SILENT made messages (after extraction) 2021-06-06 00:21:01 +00:00
Heiko Becker 10a0002277 GIT_SILENT Update Appstream for new release 2021-06-05 23:01:45 +02:00
Heiko Becker c8cefcffe4 GIT_SILENT Update Appstream for new release
(cherry picked from commit 10a0002277)
2021-06-05 23:01:45 +02:00
Marco Martin dbabe22249 Add SortOrderForUrl method to DBus interface
adds a method to ask what's the sorting strategy (column and order) for a particular Url, as Dolphin can have directory-specific sorting strategies

This makes possible for other apps that have lists of files, like Gwenview to use the same sorting when invoked from dolphin, ie opening an image

CCBUG:236059
2021-06-04 12:04:14 +00:00
l10n daemon script 9fcfbfb6e3 GIT_SILENT made messages (after extraction) 2021-06-04 00:24:27 +00:00
Albert Astals Cid f1fdbf1ec9 Tell translators to leave the ' alone 2021-06-03 22:13:27 +02:00
Shubham 3387b60ca5 Add tooltip to Empty Trash button inside Trash 2021-06-03 18:19:34 +05:30
Friedrich W. H. Kossebau 0d95f5e537 Use more target-centric cmake code
GIT_SILENT
2021-05-31 08:39:17 +00:00
Alexander Lohnau b6ec4b1c9e Remove code path for loading deprecated VSC plugins
In case there are custom, old plugin lying around they can't be loaded
anyways, because the version does not match. In case that gets fixed one
could just port the plugin to JSON metadata.

Also the mechanism that is used is about to be deprecated.
2021-05-31 07:02:16 +00:00
l10n daemon script 9fc92e7b51 GIT_SILENT made messages (after extraction) 2021-05-31 00:19:38 +00:00
Elvis Angelaccio 2f3d8c5c96 Fix crash on Wayland when closing the mainwindow while another dialog is open
For some reason on Wayland `QClipboad::dataChanged` can be emitted after
the main window gets deleted. In particular this happens when closing the
main window while another dialog is open.

Since we are closing the window, we can just disconnect this signal and
prevent this crash from ever happening.
2021-05-31 00:43:46 +02:00
Eugene Popov 443968a6a3 Revert "Improve padding in the Places View"
This reverts commit e9a39700fc.
2021-05-29 22:16:18 +00:00
Eugene Popov 7a5d4033f4 Revert "fix padding in places view"
This reverts commit 56888a567f.
2021-05-29 22:16:18 +00:00
Eugene Popov df9ae6c24e Use SmallMedium icon size in the Places panel as default
This patch makes the Places panel to use SmallMedium icon size as default, making it easier to read. It also removes extra spacing from items with small icons (reverts e9a39700 and 56888a56).

BUG: 437345
2021-05-29 22:16:18 +00:00
l10n daemon script ec3c196e5a GIT_SILENT made messages (after extraction) 2021-05-26 01:54:56 +00:00
l10n daemon script 83c9108f81 GIT_SILENT made messages (after extraction) 2021-05-26 00:23:27 +00:00
Ömer Fadıl Usta b5e276d115 [src/settings/contextmenu/contextmenusettingspage] Fix Crash because of nullptr
BUG: 437539

(cherry picked from commit 879fa9fa7d)
2021-05-25 17:12:35 +00:00
Ömer Fadıl Usta 879fa9fa7d [src/settings/contextmenu/contextmenusettingspage] Fix Crash because of nullptr
BUG: 437539
2021-05-25 01:49:20 +00:00
l10n daemon script 5fca9ee722 GIT_SILENT made messages (after extraction) 2021-05-23 00:19:48 +00:00
l10n daemon script cdfc40e477 GIT_SILENT made messages (after extraction) 2021-05-22 00:19:19 +00:00
l10n daemon script 8da9816536 GIT_SILENT made messages (after extraction) 2021-05-21 00:19:24 +00:00
Saravanan K 6b64c7ff56 Add action to places panel context menu trash entry to open trash settings
BUG: 367583
FIXED-IN: 21.08
2021-05-20 16:04:41 +00:00
l10n daemon script 2e536476dd GIT_SILENT made messages (after extraction) 2021-05-20 00:19:16 +00:00
Laurent Montel 953b253676 Use directly autorcc 2021-05-19 22:10:14 +02:00
l10n daemon script 2393049df5 GIT_SILENT made messages (after extraction) 2021-05-19 00:21:32 +00:00
Nate Graham 7b112c7b27 Use more appropriate icon for "Create New" action
Right now this action is using the "document-new" icon, which depicts
creating a new file. This is inaccurate, as the menu provides options for
creating more than just files: it has one option to create folders and
three for creating different types of links. In fact, depending on the
set of installed software, there may not be any options to create new
documents at all!

To fix this, the icon would need to be made either more specific or
more generic.

There is no such icon that depicts being able to create a folder, a
document, or a link; such a thing is too specific to be able to
represent with a small icon. So our only real option is to use a more
generic icon.

This commit does that.
2021-05-18 14:45:45 +00:00
l10n daemon script e42659081d GIT_SILENT made messages (after extraction) 2021-05-18 00:21:28 +00:00
Felix Ernst 98e1fb66d0 Fix primary view changing folder for the closing animation
This commit fixes a bug which made it so an UrlNavigator that was
disconnected from a viewContainer would still indirectly control
the viewContainer because of a dubious connection created in
DolphinMainWindow.

Instead the internal UrlNavigator of the viewContainer is used
which is always connected to its own viewContainer.

This way the the supposedly disconnected primary UrlNavigator will
actually not affect the old disconnected viewContainer that is
currently being closed.

BUG: 437080
FIXED-IN: 21.08
2021-05-17 14:52:45 +02:00
Yuri Chornoivan 75d1d25d7e Fix minor typos 2021-05-17 08:48:21 +03:00
l10n daemon script 536d9129a4 GIT_SILENT made messages (after extraction) 2021-05-17 02:06:51 +00:00
l10n daemon script 2765519a8e GIT_SILENT made messages (after extraction) 2021-05-17 00:26:53 +00:00
Carl Schwan c60887781d Add more screenshots 2021-05-16 20:10:59 +02:00
Felix Ernst 53a778c1eb Re-arrange the contents of the hamburger menu
To improve usability, the entries in the hamburger menu are
changed. Maybe the biggest fault of the previous menu contents were
that there were too many actions.

The new menu contents are composed of all the actions which are
necessary to use Dolphin and those which are very useful and should
be of interest for most users. Some menu contents change depending
on the state of the application. We can be more bold in only
showing what really seems necessary because this commit activates
the special sub-menu of KHamburgerMenu that helps users discover
all further features of Dolphin.

The hamburger menu is from now on also added to the context menus
in the view when both the menu bar and toolbar are hidden. This
allows users to hide both of them and still use all features of
Dolphin.
2021-05-13 16:49:27 +00:00
Ismael Asensio 4d9ea4261a Merge branch 'release/21.04' 2021-05-13 15:09:42 +02:00
Ismael Asensio 29636baff0 search/facetswidget: Check for protocol before trying to fetch tags
This was causing an error when trying to list items from the
non-existent `tags:` protocol.

BUG: 435586
FIXED-IN: 21.04.1
2021-05-10 14:05:35 +02:00
Alexander Lohnau 08a4edad3e DolphinContextMenu: Allow disabling "Open Terminal" action
BUG: 436323
FIXED-IN: 21.08
2021-05-10 11:22:06 +00:00
Gastón Haro 996e430b62 Show hidden files and folders last
Hidden files and folders are always displayed after
not hidden files.

BUG: 241227

Revision: https://phabricator.kde.org/D29115
2021-05-10 06:13:56 +00:00
Alexander Lohnau 8f9bf0fe36
Put code for desktop file plugin loading in KIO version check
Loading plugins by their desktop files was deprecated in
https://invent.kde.org/frameworks/kio/-/merge_requests/416.

Task: https://phabricator.kde.org/T12250
2021-05-10 07:32:20 +02:00
l10n daemon script b734cedbbf GIT_SILENT made messages (after extraction) 2021-05-10 00:23:35 +00:00
Heiko Becker 6d242cac0a GIT_SILENT Update Appstream for new release 2021-05-07 20:17:32 +02:00
Heiko Becker f9e3d9c8a0 GIT_SILENT Update Appstream for new release
(cherry picked from commit 6d242cac0a)
2021-05-07 20:17:32 +02:00
Nate Graham c836cf010c Set initial size corectly
The resize() that we do to set the initial size is working around a
bug in frameworks that is going to be fixed soon. See
https://invent.kde.org/frameworks/kxmlgui/-/merge_requests/53.
2021-05-05 03:50:44 +00:00
l10n daemon script 0b5cb44f02 GIT_SILENT made messages (after extraction) 2021-05-04 01:43:39 +00:00
Ismael Asensio 65b283a909 search: Add action to clear tag selection
BUG: 432719
2021-05-03 16:22:21 +02:00
Friedrich W. H. Kossebau 5ce25a5cde Port away from ECMSetupVersion's deprecated *_VERSION_STRING CMake variable
GIT_SILENT
2021-05-03 02:03:19 +02:00
Felix Ernst a4be53fb99 Replace custom hamburger/control menu with KHamburgerMenu 2021-04-29 13:22:10 +00:00
Alexander Lohnau ccb29c6035 kconfig_add_kcfg_files: Fix warnings about including empty moc file 2021-04-25 06:38:58 +00:00
Alexander Lohnau 844d1c0547 Remove code for dolphin < 4.14 tab restore
The old config keys haven't been written for since KDE 4 times
and has been internally marked as deprecated.
2021-04-24 17:16:27 +00:00
Méven Car 6cec386192 InformationPanel: Allow to refresh the panel when its displayed content changes
BUG: 430095
BUG: 412902
FIXED-IN: 21.08
2021-04-24 09:00:31 +00:00
l10n daemon script 020ba2c3fc SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-04-23 01:19:55 +00:00
l10n daemon script cede4fed79 GIT_SILENT made messages (after extraction) 2021-04-23 00:21:18 +00:00
Harald Sitter 56888a567f fix padding in places view
padding was only applied when the icon size was applied, the icon size
however is only applied when the user had set an explicit size. this
resulted in inconsistent spacing. by default no padding would be used if
the user had changed the icon size to medium and back to small it would
suddenly have padding.

to fix this, set padding unconditionally on construction and never touch
it again .

BUG: 435731
2021-04-19 16:07:50 +00:00
Méven Car 5a0da4a9c8 When renaming files, move to next file using tab key or up/down
To rename previous file:
 Up or Shift-Tab

To rename next file:
 Down or Tab

Credit goes to msciubidlo

FEATURE: 403931
FEATURE: 269987
BUG: 334533
FIXED-IN: 21.08
2021-04-19 05:10:11 +00:00
Nate Graham a27b4c5c60 Increase default window size
The current default window size of 750x500 is quite small on today's
screens, and results in an initial user experience of a very cramped app
window. The very first action that I see from new users interacting with
Dolphin is to make the window bigger.

So let's do it for them by making the default window size a bit bigger
ourselves.
2021-04-19 02:18:53 +00:00
Méven Car 4f4e3d392c PlacesPanel: activating a place does not select its previously selected children
BUG: 421347
2021-04-17 10:44:28 +02:00
Heiko Becker 61b2e2fd5e GIT_SILENT Update Appstream for new release 2021-04-14 17:06:44 +02:00
Heiko Becker 2084814781 GIT_SILENT Update Appstream for new release
(cherry picked from commit 61b2e2fd5e)
2021-04-14 17:06:44 +02:00
Méven Car 46e987d034 Remove dead variable 2021-04-09 07:43:06 +02:00
Laurent Montel e831efc3b2 Not necessary to forward class if we include file 2021-04-08 21:40:59 +02:00
Méven Car 522000ad8d Merge branch 'release/21.04' 2021-04-08 07:09:22 +02:00
Michael Lang ba8158e2fa Add option to hide entire status bar 2021-04-07 09:05:51 +00:00
David Faure 2200e3c06d Fix deprecated method calls when using KIO >= 5.82 2021-04-06 15:12:20 +02:00
Méven Car 0429e5330e KFileItemModel: DetailsModeSettings::directorySizeCount forces m_sortDirsFirst
Before this patch when !m_sortDirsFirst and DetailsModeSettings::directorySizeCount() == true, the ordering of folders before files would be affected by the sortOrder. I.e descending order would put the folders after the files.
2021-04-05 14:27:47 +02:00
Martin T. H. Sandsmark f334a736b9 Check the version of the plugins before trying to load them 2021-04-05 10:38:48 +00:00
Tobias Fella 30371aedc8 Port the VCS plugin system to KPluginLoader
The loader looks for the plugins in ${QT_PLUGIN_PATH}/dolphin/vcs.
The old method of loading the plugins is kept around for now, to support
external, legacy plugins.
2021-04-05 10:37:28 +00:00
Elvis Angelaccio d97782809a appstream: fix homepage url 2021-04-05 11:02:18 +02:00
Elvis Angelaccio c0e3a5afb2 appstream: fix homepage url 2021-04-05 11:01:37 +02:00
l10n daemon script b1ae7860ac GIT_SILENT made messages (after extraction) 2021-04-01 01:40:02 +00:00
l10n daemon script 69881f93b6 GIT_SILENT made messages (after extraction) 2021-04-01 00:20:15 +00:00
Nate Graham 5c3e9ac90f Merge branch 'release/21.04' 2021-03-31 10:17:58 -06:00
Nate Graham b9139c5e1c Fix crash calling openDirectories() in various cases
This can cause a crash when called with a single url and split view, or
when the last URL is not shown, because the iterator gets mutated in
the loop, so we need to make sure it hasn't gone out of bounds. This
check was erroneously removed in 1755380208
and needs to be brought back.
2021-03-31 09:19:33 -06:00
Nicolas Fella 9e8e58147e Port away from KInit
KInit is planned to go away

https://phabricator.kde.org/T14298
2021-03-28 17:11:36 +02:00
l10n daemon script 38e83eacf8 GIT_SILENT made messages (after extraction) 2021-03-28 08:45:07 +02:00
Nate Graham 6f134975ae Merge branch 'release/21.04' 2021-03-27 13:04:05 -06:00
Nate Graham 1755380208 Don't re-open already-open URLs when using session-restore feature
If Dolphin would be asked to open a location that is already open, don't
open it again in a new tab; instead switch to that view. Supports tabs
and split view.

BUG: 434911
FIXED-IN: 21.04
2021-03-26 19:38:47 -06:00
l10n daemon script fc2624960a GIT_SILENT made messages (after extraction) 2021-03-16 03:29:56 +01:00
Nate Graham a32373e587 Allow selecting filename in information panel
BUG: 434329
FIXED-IN: 21.04
2021-03-15 09:43:46 -06:00
l10n daemon script 8988fc01d0 GIT_SILENT made messages (after extraction) 2021-03-15 09:34:17 +01:00
Elvis Angelaccio ffb80cb00d Enable test mode in all test 2021-03-13 17:18:53 +01:00
Méven Car ae429d1674 KFileModel: Let Sort dir first affect size sorting
BUG: 433207
2021-03-07 22:45:09 +00:00
Laurent Montel a440ff1acb Remove not implement methods 2021-03-07 20:41:15 +01:00
l10n daemon script 35ec23ac1b GIT_SILENT made messages (after extraction) 2021-02-25 02:45:20 +01:00
Heiko Becker ae1aeadef7 GIT_SILENT Update Appstream for new release
(cherry picked from commit 7fbe747427)
2021-02-25 00:12:43 +01:00
Méven Car 5e5f236d00 KFileItemModelRolesUpdater: Avoid refreshing items when we receive their content count
It concerns the detail view.

It can cause multiple preview to be generated for the same file.
This is visible for directories whose icons use a random value for their inner files thumbnails.

Only the view needs to be updated for this model change.
2021-02-20 18:37:00 +00:00
David Lerch 0811bf4a2b Use only enabled preview plugins in InformationPanelContent and ToolTipManager. 2021-02-19 23:07:54 +01:00
Alexander Lohnau d691aa96f2 Do not run benchmark test automatically
Same reasoning as https://invent.kde.org/frameworks/kio/-/merge_requests/301 and
the commit series.
2021-02-18 20:08:05 +00:00
Stefan Brüns ba041233e8 Apply 1 suggestion(s) to 1 file(s) 2021-02-17 15:21:41 +00:00
Stefan Brüns 492cfb73a3 [FileItemRolesUpdater] Use STL-style iterator instead of iterating a copy
QSet<T>::erase(it) is the save way of erasing from a QSet while iterating
it. This saves creating a copy of the QSet, lookup of a node by value in
`QSet<T>::remove(item)`, and repeated rehashing caused by `remove`.
2021-02-15 17:40:17 +01:00
Stefan Brüns 7c0b5c08cc [FileItemRolesUpdater] Reserve space in two temporary lists
Reserve sufficient space to avoid reallocation later. Overallocating
actually requires less memory than growing and copying it, and it
is freed immediately after anyway.
2021-02-15 17:34:01 +01:00
Stefan Brüns 68704c2a28 [FileItemRolesUpdater] Fix reservation size
The code below always adds the visible range, up to 5 pages before and
after the visible range (each capped to ResolveAllItemsLimit/2) and
the very first and last page (each up to m_maximumVisibleItems).

Use this number to avoid growing the list later.
2021-02-15 17:24:15 +01:00
Stefan Brüns b4676b71c6 [FileItemRolesUpdater] Fix calculation of requested indexes
In case the last and/or first page (a page being n=m_maximumVisibleItems
items) overlapped the already inserted items, one item for each range
would be inserted a second time, e.g. for the first page and last page:

`beginExtendedVisibleRange == 0` => `endFirstPage := 0` => `0 <= 0` is
inserted again.

`count == 100; endExtendedVisibleRange == 99; m_maximumVisibleItems == 20`
=> `beginLastPage := 99` => `99 < 100` is inserted again.
2021-02-15 17:24:01 +01:00
Kai Uwe Broulik b351afb9e1 [Status Bar] Hide zoomLabel also in menu handler 2021-02-14 23:07:46 +00:00
Méven Car 61a4ae4d3f Remove a missing emit KEYWORD
NO_CHANGELOG
2021-02-14 15:21:22 +01:00
l10n daemon script 39f5f1b530 GIT_SILENT made messages (after extraction) 2021-02-11 03:02:42 +01:00
Nicolas Fella 7c48344d0e Port away from deprecated KToolInvocation::invokeTerminal 2021-02-10 23:08:06 +00:00
Felix Ernst 998d71e5a7 Remove item move animation on view resize
This commit removes an animation that happens when the view is
resized. Before this commit, whenever the geometry of the view
changed, the items in the view drifted towards their new position
in the layout after a 300 ms delay. It would look like the items
are slow to find their position.

This commit simply moves them to their new position in an instant
which will abort any ongoing move animations.
2021-02-10 15:16:42 +01:00
Nicolas Fella f65b0899c3 Build with QT_NO_KEYWORDS 2021-02-09 20:39:50 +00:00
Nicolas Fella 3184c2707f Port to QRecursiveMutex
QMutex::Recursive is deprecated
2021-02-09 00:54:45 +01:00
Nicolas Fella b68abb7d27 Add missing includes 2021-02-09 00:40:54 +01:00
Ahmad Samir dd9405bf2f Port away from deprecated KIO signals
Use KDirLister::listingDirCompleted(const QUrl &) instead of
completed(const QUrl &).
2021-02-08 21:38:34 +00:00
Felix Ernst a825e1bd74 Avoid KJob::exec() in DolphinView
This commit replaces an error-prone usage of KIO::StatJob::exec() in
DolphinView with the recommended KIO::StatJob::start().

The containing method DolphinView::statusBarText() is changed to be a
method without return value: requestStatusBarText()
The new status bar text is instead returned through a new
setStatusBarText() signal that will be emitted asynchronously if
necessary.

The calling code that deals with status bar text is refactored to
correctly work despite the new asynchronicity. The helper method
calculateItemCount() is moved into requestStatusBarText() and some
other code from requestStatusBarText() is moved into a new helper
method emitStatusBarText().

The documentation of KIO::KJob::exec() explains why it should be
avoided. A reproducible crash is the reason for this commit.
2021-02-08 21:32:10 +00:00
l10n daemon script 7eae6bba5f GIT_SILENT made messages (after extraction) 2021-02-08 02:48:28 +01:00
Heiko Becker 24f04d75e1 GIT_SILENT Update Appstream for new release
(cherry picked from commit 0f6b39d0cd)
2021-01-29 21:04:28 +01:00
Nate Graham c161b895ff Merge branch 'release/20.12' 2021-01-25 10:25:51 -07:00
Harald Sitter 5ed12ed44a don't crash when building without baloo
show_information_panel is only created when building with baloo. only
access it when built with baloo, otherwise always report the panel as
off.

this fixes a nullptr deref because action() would return a nullptr since
show_information_panel isn't a thing in all build configurations

(full disclosure: I can't reproduce the crash, nor did I build without
baloo)

BUG: 431730
2021-01-25 10:12:53 +01:00
Nate Graham be73a01f48 Make zoom slider and free space bar a little smaller by default
This makes more room for the new explanatory label for the zoom slider.
The zoom slider in particular was huge, and probably would have stood to
be reduced in width anyway even if we didn't add an explanaory label.
2021-01-23 23:15:56 +00:00
Nate Graham 0ba739c47e Add explanatory label to status bar's icon size slider
Right now the slider has no label. Let's add one so it's clear what it
does.

BUG: 429255
FIXED-IN: 21.04
2021-01-23 23:15:56 +00:00
Laurent Montel 8236e95c76 Autogenerate categories file 2021-01-23 09:23:41 +01:00
l10n daemon script aac6a5245f SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-01-21 07:07:06 +01:00
Norbert Preining 33270dd442 Show button to open knetattach inline with URL nav on remove:// view
This is a backport of b1cadeba93

  From b1cadeba93 Mon Sep 17 00:00:00 2001
  From: Nate Graham <nate@kde.org>
  Date: Tue, 15 Dec 2020 23:03:00 -0700
  Subject: [PATCH] Show button to open knetattach inline with URL nav on
   Remote:// view

  In conjunction with
  https://invent.kde.org/frameworks/kio/-/merge_requests/260,
  the net result is to hide the knetattach launcher in the view, and show
  it inline with Dolphin's URL navigator toolbar when viewing the
  remote:// view, just like how we add an "Empty Trash" button when
  viewing trash://.

The backport ensures that even with frameworks << 5.78 only one network
button is shown.

BUG: 431626
2021-01-19 07:48:36 +09:00
l10n daemon script 25bfe6149e GIT_SILENT made messages (after extraction) 2021-01-18 03:04:46 +01:00
Kai Uwe Broulik 2e79e21c3f [DolphinView] Fix "Folder is empty" label showing prematurely
Don't show the label while still loading. Since there is no property in
`KDirLister` a dedicated `m_loading` is added for this purpose.

Also, I removed the explicit update on `urlChanged` as the view
probably won't change until the lister starts loading.

BUG: 430085
2021-01-17 13:32:56 +00:00
l10n daemon script 6945a54004 GIT_SILENT made messages (after extraction) 2021-01-17 02:49:13 +01:00
Elvis Angelaccio de8ea90ca7 Merge branch 'release/20.12' 2021-01-16 19:28:59 +01:00
Ilia Kats a6d095fa04 fix folder size calculation on FUSE and network file systems
KFileItem::isSlow uses hardcoded logic that returns true if the
filesystem is Smb or Nfs. However,
KFileSystemType::determineFileSystemTypeImpl on Linux returns Nfs also
if the file system in question is a FUSE file system, which includes
NTFS, sshfs, and others.

BUG: 430778
BUG: 431106
2021-01-16 19:20:11 +01:00
The Imp 764861af51 Change copy location shortcut in dolphin so as to not conflict with Konsole panel
BUG: 426461
FIXED-IN: 20.12.2
2021-01-16 19:15:20 +01:00
Ilia Kats 3b4dae3556 fix folder size calculation on FUSE and network file systems
KFileItem::isSlow uses hardcoded logic that returns true if the
filesystem is Smb or Nfs. However,
KFileSystemType::determineFileSystemTypeImpl on Linux returns Nfs also
if the file system in question is a FUSE file system, which includes
NTFS, sshfs, and others.

BUG: 430778
BUG: 431106
2021-01-15 20:41:24 +00:00
Antonio Rojas 4683c03be6 Don't show "Add network folder" button if knetattach is not available
knetattach is part of plasma-desktop, so it doesn't necessarily have to be installed.
In that case, instead of showing a button that doesn't do anything, don't show it at all.
2021-01-15 18:02:03 +01:00
l10n daemon script 9fde9035a8 GIT_SILENT made messages (after extraction) 2021-01-15 02:57:54 +01:00
l10n daemon script 9b55f5d0f9 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-01-14 07:07:18 +01:00
l10n daemon script 138c5017d9 GIT_SILENT made messages (after extraction) 2021-01-12 02:59:22 +01:00
Stefan Brüns cade3eb302 [BalooRolesProvider] Use Property IDs instead of string matching
Instantiating KFileMetaDataInfo for each file and property, even when
the role is not used, is somewhat expensive and unnecessary. Use the
numeric Property ID to map it to a role, and only instantiate the used
PropertyInfo's.

Remove the properties provided by KFM::UserMetaData from the map, as
these will newer match.
2021-01-11 12:28:38 +01:00
Stefan Brüns dcdf4b01c8 [BalooRolesProvider] Reduce number of XAttr reads
Typically most of the extended attributes are not set for a file. Instead
of trying to fetch each attribute individually check which attributes
exist first.
2021-01-11 12:28:38 +01:00
Stefan Brüns fa60438376 [BalooRolesProvider] Remove explicit default constructor calls 2021-01-11 12:28:38 +01:00
Stefan Brüns 7d716fd9bd [BalooRolesProvider] Remove unused roleForProperty method 2021-01-11 12:28:38 +01:00
Stefan Brüns 09b6c99325 [BalooRolesProvider] Simplify single tag case
When the list contains just one value, return it instead of trying to
sort the list with a QCollator.
2021-01-11 12:28:33 +01:00
Stefan Brüns 34f74e4226 [BalooRolesProvider] Move static tagsFromValues to anonymous namespace 2021-01-11 12:27:11 +01:00
Stefan Brüns 4c31ec3789 [BalooRolesProvider] Remove unused includes 2021-01-11 12:27:11 +01:00
l10n daemon script a344998ae9 GIT_SILENT made messages (after extraction) 2021-01-11 02:57:22 +01:00
Anthony Fieroni a73e81bf6a Open new tab placement option
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2021-01-10 21:54:45 +00:00
Kai Uwe Broulik eb4b0fb480 Emit "itemMiddleClicked" when Ctrl-clicking a view in single selection mode
When Ctrl can't cause a change in selection, so instead emit `itemMiddleClicked`.
This way one can Ctrl-click a Place or folder in Folders panel to open it in
a new tab, similar to what web browsers.
2021-01-10 10:50:41 +01:00