Commit graph

6939 commits

Author SHA1 Message Date
Laurent Montel 4fc25d5949 We depend against kf5.91 => remove check 2022-05-31 21:12:01 +02:00
Ahmad Samir ad23079e1b Fix building KF6 with PackageKit-Qt 2022-05-31 14:25:13 +00:00
Ahmad Samir 0d81efae58 Fix build with Qt6 QFont::setWeight()
In Qt5 it takes an int, in Qt6 it takes a QFont::Weight.
2022-05-31 14:25:13 +00:00
Ahmad Samir a07b9054bf Add missing includes needed to build with KF6
Apparently KPluginMetaData was implicitly included by something else.
2022-05-31 14:25:13 +00:00
Ahmad Samir d2f8c4f064 KServiceTypeTrader has been deprecated since KService 5.90 2022-05-31 14:25:13 +00:00
Ahmad Samir 00c26fb390 Fix version macro with respect to finding "KFileItemAction/Plugin" services
GIT_SILENT
2022-05-31 14:25:13 +00:00
Ahmad Samir 2c8adb10ec Port away from deprecated KNewStuff API 2022-05-31 14:25:13 +00:00
Ahmad Samir 397b496470 Merge two relevant ifdef blocks
GIT_SILENT
2022-05-31 14:25:13 +00:00
Ahmad Samir d661bb1a33 Fix building kfileitemmodeltest with KF6
- Fix kio_version.h include
- Explicitly create a QSet for QCOMPARE
2022-05-31 14:25:13 +00:00
Ahmad Samir 49560f921d Port away from copying QEvent when building with Qt6
Copying QEvent in Qt6 isn't allowed, instead use clone().
2022-05-31 14:25:13 +00:00
Ahmad Samir 5d3774aa17 Kdelibs4ConfigMigrator is deprecated in KF6 2022-05-31 14:25:13 +00:00
Ahmad Samir e58f0c085c Port away from deprecated ThumbCreator API
Configurability of individual preview plugins has been deprecated since KIO
5.87.
2022-05-31 14:25:13 +00:00
Ahmad Samir 5cbe6b5302 Migrate old custom view font config entries 2022-05-31 14:25:13 +00:00
Ahmad Samir 802ecc92d2 Simplify custom font settings
Instead of having 3 separate config keys, use the KConfig QFont
de/serilaization.
2022-05-31 14:25:13 +00:00
Méven Car 573abcaf25 kfileitemmodel: sortRoleCompare: allow to sort by access time.
We had all sorts of weird behavior when sorting by access time.
The comparison was simply missing in sortRoleCompare.
2022-05-31 12:21:04 +00:00
l10n daemon script 7b48a8b6e4 GIT_SILENT made messages (after extraction) 2022-05-31 00:55:26 +00:00
Méven Car ca26d35f54 Allow OpenTerminalHere to work for recentlyused:/ and recentdocuments:/ 2022-05-29 12:11:08 +02:00
l10n daemon script 1fc3108f14 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-29 01:46:43 +00:00
l10n daemon script 734df72e90 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-28 02:27:04 +00:00
l10n daemon script 4cd1b6f9ff GIT_SILENT made messages (after extraction) 2022-05-28 01:06:47 +00:00
Felix Ernst f7365aa9ca Remove hover highlight before opening view context menu
If one was fast to open the right-click context menu on the row of
an item in details view mode, the hover highlight would persist
while the context menu for the view was open.

This one-liner makes it so the highlight on the row is always
removed before the right-click context menu for the view is opened
so it is as clear as possible that the newly opened context menu
has no relation to the fileItem.
2022-05-27 10:00:05 +00:00
Felix Ernst b2f18e411a Fix paste on row while in details view mode
Before this change, right-clicking the row of an unselected item
in details view mode would be in a weird state:
- It didn't really count as a click on the item because the item
    didn't get selected by this click before opening the context
    menu.
- It didn't really count as a click on the view background either
    because the actions that showed up depended on the item in
    that row.

This commit fixes this by considering a right-click in the same row
as an unselected item as a click on the view background.
The behaviour of right-clicking the icon or name of a file directly
is unchanged.

This fixes the following bugs:
- The Paste action that shows up when right-clicking in the
    unselected row of a folder now works (instead of doing
    nothing). It now pastes the clipboard contents onto the view
    background.
- When right-clicking the unselected row of a file (not a folder)
    a Paste action once again shows up.
2022-05-27 10:00:05 +00:00
Travis Burrows 58622f431b Extend selection rectangle to left edge
This commit changes it so the sizes of selection rectangles and hover
highlights in compact and details view mode is identical for all items.

Before this commit, selection rectangles in lists would have varying
indentation of the left edge of the selection rectangle depending on
the preview image's width-to-height ratio. This would cause a sort of
"ragged edge" in both compact and details list view when multiple items
were selected.

This commit doesn't change anything about icon view mode.

BUG: 453046
2022-05-26 12:38:22 +00:00
Jin Liu ca0d0bb322 Change wording "Leading Column Padding" to "Side Padding"
Since it actually adds padding on both left and right sides,
"Side Padding" might be more accurate.

This change is also propagated to variable and method names.

BUG: 453172
2022-05-26 08:31:12 +00:00
Andrey Butirsky ff0a4938a5 fix: Dolphin right click and compress doesn't scroll
For newly created items being selected, we had updateViewState() called
twice, and the first call blocked work execution needed in the other one
2022-05-24 17:11:37 +00:00
Andrey Butirsky a4292cf068 prevent excessive tab opening
Without this, KIO::highlightInFileManager() will open additional tab
even if file to be highlighted is already present in current view
2022-05-24 17:11:37 +00:00
l10n daemon script 30b62a1c04 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-22 01:44:35 +00:00
Christian Hartmann 85083b209c fix name of uninstall command (without extension)
fixing a minor typo allows using "uninstall" command (variant **without** extension) on de-installation of a service menu
2022-05-21 15:04:14 +00:00
Christian Hartmann 65413bbad2 fix: service-menu-installer ignoring symlinks on un-install
service-menu-installer ignores <package-name>.tar.gz-dir/uninstall.sh
if this is actualy just a symbolic link to install.sh in the same directory
(hardlinks and copies work)

canonicalPath() is used to get the name of the file on disk and returns install.sh
in the case of a symbolic link. install.sh without any arguments is called instead
of uninstall.sh consequently and no de-installation takes place.

replace canonicalPath() with absolutePath() as used in the rest of source file

resolves:

BUG: 452289
2022-05-21 06:21:08 +00:00
Alexander Lohnau 9bdb36abf0 Fix QDirIterator wildcard when fallback install script is searched for
Otherwise, we do not find scripts like "install-user.sh".

BUG: 453870
2022-05-20 04:26:25 +00:00
l10n daemon script 0caa638a5d GIT_SILENT made messages (after extraction) 2022-05-20 00:47:19 +00:00
Shubham 6a5ad6b0ed Add tooltip to free space info widget showing full disk capacity
BUG: 452867
FIXED-IN: 22.08
2022-05-18 18:42:51 +00:00
l10n daemon script b700c94d3e 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-18 01:44:40 +00:00
l10n daemon script e34eba7e0f 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-17 01:46:51 +00:00
l10n daemon script 0b27270bee 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-16 01:50:33 +00:00
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