Commit graph

6430 commits

Author SHA1 Message Date
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