]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
5 years agoMerge branch 'release/19.12'
Nate Graham [Mon, 27 Jan 2020 16:49:44 +0000 (09:49 -0700)]
Merge branch 'release/19.12'

5 years agoChange drop indicator color
George Vogiatzis [Mon, 27 Jan 2020 16:40:57 +0000 (09:40 -0700)]
Change drop indicator color

Summary:
Change drop indicator color form highlight to text.
This makes more visible, when indicator is adjacent to a highlight
item, of a list.

BUG: 415010

Test Plan:
Before vs After
{F7974679}

Reviewers: #dolphin, #vdg, elvisangelaccio, ngraham

Reviewed By: #dolphin, #vdg, ngraham

Subscribers: meven, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26936

5 years agoFixes multiple VCS plugin calls on single directory update.
Nikolai Krasheninnikov [Sun, 26 Jan 2020 16:06:40 +0000 (17:06 +0100)]
Fixes multiple VCS plugin calls on single directory update.

Summary:
Fixes multiple VCS plugin beginRetrival()/endRetrival()/itemVersion() calls on single directory update.
When VCS pluging finished gathering directory information VersionControlObserver::slotThreadFinished() calls KFileItemModel::setData() on each entry with appropriate item VCS information.
This in turn emits KFileItemModel::itemsChanged() which is connected with VersionControlObserver::delayedDirectoryVerification() which is starting to gather VCS directory information again.
This commits breaks the vicious circle.

BUG: 415698
FIXED-IN: 20.04.0

Reviewers: #dolphin, meven, ngraham, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26721

5 years agoUse QDesktopServices to open urls not supported by dolphin
Méven Car [Fri, 17 Jan 2020 17:10:40 +0000 (18:10 +0100)]
Use QDesktopServices to open urls not supported by dolphin

Summary:

This improves portability.
QDesktopServices uses standard mimetype base resolution to find the app to use.

BUG: 372642
FIXED-IN: 20.04

Test Plan:
 * Open http://google.com, opened default web browser
 * Open mms:// (on my test system opened vlc)

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, elvisangelaccio, ngraham

Subscribers: nicolasfella, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26732

5 years ago(search) Fix searching tags with spaces
Ismael Asensio [Wed, 8 Jan 2020 23:39:28 +0000 (00:39 +0100)]
(search) Fix searching tags with spaces

Summary:
Tags containing blank spaces were not handled properly in the search widget.
Now we enclose them in quotes and strip the quotes before setting them to the widget.

{F7854247}

Test Plan:
No artifacts when searching tags containing spaces
Added test cases to `bin/dolphinquerytest`

Reviewers: #dolphin, elvisangelaccio, ngraham, meven

Reviewed By: #dolphin, elvisangelaccio, ngraham

Subscribers: meven, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26369

5 years agoUse more conventional "Add to Places" text for that action
Nate Graham [Sat, 11 Jan 2020 19:52:46 +0000 (12:52 -0700)]
Use more conventional "Add to Places" text for that action

Summary:
I originally implemented this to show "Add <current folder> to Places" to make the menu
item more clear when invoked from the file menu or the viewport context menu because I
thought it wasn't totally clear that the action would be referring to the folder for the
visible view.

However I think in retrospect that this was a mistake. No other items in the file menu
or the viewport context menu name the current folder like this, so clearly there wasn't
a problem. And then the item's text doesn't match the text for other items.

Thie patch removes that behavior and makes the name match the style of all the other menu
item text.

BUG: 416064
FIXED-IN: 20.04.0

Reviewers: #dolphin, #vdg, meven

Reviewed By: #dolphin, meven

Subscribers: elvisangelaccio, meven, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26590

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Mon, 13 Jan 2020 07:15:22 +0000 (08:15 +0100)]
GIT_SILENT made messages (after extraction)

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Mon, 13 Jan 2020 01:34:58 +0000 (02:34 +0100)]
GIT_SILENT made messages (after extraction)

5 years agoGet rid of -Wdeprecated-copy warning
Ismael Asensio [Sun, 22 Dec 2019 16:46:48 +0000 (17:46 +0100)]
Get rid of -Wdeprecated-copy warning

Summary:
Remove the explicit copy constructor of `KItemListStyleOption`, since it does not
add any logic to what the implicit copy constructor does, but triggers a compiler
warning if we don't overload `operator=` too.

Test Plan:
Compiles without `-Wdeprecated-copy` warning
No behavior changes

Reviewers: elvisangelaccio, #dolphin

Reviewed By: elvisangelaccio, #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26585

5 years agoAdd only canonical paths to dirWatcher
Robert Hoffmann [Tue, 7 Jan 2020 09:53:35 +0000 (10:53 +0100)]
Add only canonical paths to dirWatcher

Summary: KDirWatch only works correctly with canonical paths, i.e. symbolic links resolved.

Test Plan:
1. Create dirs:
$ mkdir test1
$ mkdir test1/subdir
$ ln -s test1 test2

2. Start dolphin, navigate to test2/subdir, then in terminal:
$ echo test > test2/subdir/test

Without the patch, test2/subdir/test won't be shown automatically, only after reload (F5).
With the patch applied, test2/subdir/test will be shown automatically.

3. Restart dolphin, navigate to test2/subdir, then in terminal:
$ echo test >> test2/subdir/test

Without the patch, the increased size of test2/subdir/test won't be shown automatically,
only after reload (F5). With the patch applied, it will be shown automatically.

4. Restart dolphin, navigate to test2/subdir, then in terminal:
$ rm test2/subdir/test

Without the patch, test2/subdir/test stays visible, will only disappear after reload (F5).
With the patch applied, it will disappear automatically.

Reviewers: dfaure, #dolphin, elvisangelaccio

Reviewed By: dfaure, #dolphin, elvisangelaccio

Subscribers: ngraham, elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25732

5 years ago"Use newly-upstreamed rename dialog from KIO""
Nate Graham [Sat, 11 Jan 2020 20:21:52 +0000 (13:21 -0700)]
"Use newly-upstreamed rename dialog from KIO""

This reverts commit 41105103b063c2e538bf0071e54fd429a841238b.

KIO's version was just bumped to 5.67, so this can land now without
breaking the CI.

5 years agoMerge branch 'release/19.12'
Elvis Angelaccio [Sat, 11 Jan 2020 15:15:14 +0000 (16:15 +0100)]
Merge branch 'release/19.12'

5 years agoHide tooltip instantly on filter change
Piotr Henryk Dabrowski [Sat, 11 Jan 2020 15:09:36 +0000 (16:09 +0100)]
Hide tooltip instantly on filter change

Summary:
Instantly hide tooltip shown over an element when filter bar changes.

Currently the tooltip stays even when filtering causes the file under the mouse to change or disappears entirely.
The tooltip also continues to cover much of the window - hiding the new filtering results from user.

This is an enhancement to D22512

Test Plan:
1. place the mouse pointer over a file to show the tooltip
2. press "/" to activate filter bar
3. type in filter phrase

Reviewers: #dolphin, elvisangelaccio, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26576

6 years agoRevert "Use newly-upstreamed rename dialog from KIO"
Nate Graham [Mon, 6 Jan 2020 21:34:36 +0000 (14:34 -0700)]
Revert "Use newly-upstreamed rename dialog from KIO"

This reverts commit bae6620f22d29f8e42e38f4dff3df3e44b3f639a.

Frameworks 5.67 doesn't exist yet; this needs to wait another month.

6 years agoUse newly-upstreamed rename dialog from KIO
Nate Graham [Thu, 2 Jan 2020 18:17:18 +0000 (11:17 -0700)]
Use newly-upstreamed rename dialog from KIO

Summary:
With the rename dialog upstreamed in D17595, we can use it from there.

This will require the KF5 dep to be bumped to 5.67, which should be feasible given that we're at the very beginning of a new Applications cycle.

Depends on D17595

Test Plan:
1. Dolphin Settings > uncheck "rename inline"
2. Rename one or more files. Observe that it still works

Tests still pass.

Reviewers: #dolphin, elvisangelaccio, meven

Reviewed By: elvisangelaccio, meven

Subscribers: meven, broulik, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D17597

6 years ago(search) Keep menu open when selecting tags
Ismael Asensio [Sun, 22 Dec 2019 15:59:54 +0000 (16:59 +0100)]
(search) Keep menu open when selecting tags

Summary:
Keeps the `Tags` menu open while selecting and deselecting tags in the
search panel, saving many mouse clicks for multiple tags.
It cannot be done natively on `QMenu` (https://bugreports.qt.io/browse/QTBUG-6635)
but it is a one-liner and I haven't seen any bad behavior so far.

Test Plan:
{F7853717}

- `Tags` menu does not close when selecting/deselecting tags
- Tag search is consistent
- Clicking anywhere else will close the menu

Reviewers: #dolphin, elvisangelaccio, ngraham, #vdg

Reviewed By: #dolphin, elvisangelaccio, #vdg

Subscribers: #vdg, broulik, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26343

6 years agoUpdate Appstream for new release
Christoph Feck [Mon, 6 Jan 2020 13:49:19 +0000 (14:49 +0100)]
Update Appstream for new release

6 years agoDon't use nullptr for flag. Just use default argument here
Laurent Montel [Mon, 6 Jan 2020 12:30:12 +0000 (13:30 +0100)]
Don't use nullptr for flag. Just use default argument here

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.12.1.
Christoph Feck [Sun, 5 Jan 2020 04:33:19 +0000 (05:33 +0100)]
GIT_SILENT Upgrade KDE Applications version to 19.12.1.

6 years agoClean-up DolphinFacetsWidget
Ismael Asensio [Sun, 15 Dec 2019 22:15:46 +0000 (23:15 +0100)]
Clean-up DolphinFacetsWidget

Summary:
Small refactor patch to clean-up some logic on setter and getter:
- Search terms are previously splitted and set separately, so no need
  for extra splitting and `foreach` loop
- Return search terms on a `QStringList` rather than join first

Depends on: D26029

Test Plan: No behavior changes

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26150

6 years agoRename methods on DolphinFacetsWidget
Ismael Asensio [Sat, 21 Dec 2019 18:41:44 +0000 (19:41 +0100)]
Rename methods on DolphinFacetsWidget

Summary:
Small refactor patch to rename method names, from `ratingTerm` to `searchTerm`,
since its scope has grown bigger.

Test Plan: No behavior changes

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26029

6 years agoPort from deprecated KIconLoader::IconSize()
Ismael Asensio [Thu, 26 Dec 2019 16:27:10 +0000 (17:27 +0100)]
Port from deprecated KIconLoader::IconSize()

Summary: `IconSize()` method is deprecated from Frameworks 5.66

Reviewers: #dolphin, elvisangelaccio, meven

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Maniphest Tasks: T11637

Differential Revision: https://phabricator.kde.org/D26237

6 years agoDon't use nullptr/0 as flags (deprecated in qt5.15)
Laurent Montel [Thu, 26 Dec 2019 13:23:45 +0000 (14:23 +0100)]
Don't use nullptr/0 as flags (deprecated in qt5.15)

6 years agoUse non-deprecated install dir variables from ECM
Elvis Angelaccio [Tue, 24 Dec 2019 18:30:44 +0000 (19:30 +0100)]
Use non-deprecated install dir variables from ECM

6 years agoRename variables to improve readability of Dolphin::attachToExistingInstance
Elvis Angelaccio [Mon, 23 Dec 2019 19:08:41 +0000 (20:08 +0100)]
Rename variables to improve readability of Dolphin::attachToExistingInstance

Services and interfaces are not the same thing. Also clarify the name of
dbus replies.

6 years ago[DolphinContextMenu] Use contains check for scheme again
Kai Uwe Broulik [Mon, 23 Dec 2019 10:44:58 +0000 (11:44 +0100)]
[DolphinContextMenu] Use contains check for scheme again

Regression introduced in 8b0c12a59ccb23fdb6393f640693d21afaeb02a1
There's "filenamesearch" and "baloosearch".

Differential Revision: https://phabricator.kde.org/D26169

6 years agoUse KParts::ReadOnlyPart::localFilePath() in DolphinPart::slotOpenTerminal()
Piotr Henryk Dabrowski [Sat, 21 Dec 2019 19:27:41 +0000 (12:27 -0700)]
Use KParts::ReadOnlyPart::localFilePath() in DolphinPart::slotOpenTerminal()

Reviewers: ngraham, elvisangelaccio, #dolphin

Reviewed By: ngraham, elvisangelaccio, #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26140

6 years agoMerge branch 'release/19.12'
Nate Graham [Sat, 21 Dec 2019 18:54:53 +0000 (11:54 -0700)]
Merge branch 'release/19.12'

6 years agoImprove scroll wheel speed by basing it on label height, not icon height
Nate Graham [Wed, 20 Feb 2019 17:05:06 +0000 (10:05 -0700)]
Improve scroll wheel speed by basing it on label height, not icon height

Summary:
Dolphin currently scrolls by the height of three items at a time per "step" when
using a scroll wheel. Because item height is highly variable, this leads to scroll
speed being inconsistent between views, and generally far too fast when using
icon view with icons larger than 22px size.

This patch makes the size of the scroll step based on the text label rather than the
icon size just like D25683, ensuring that the scroll speed does not vary and become
super fast when using large icons in particular.

It also reverts 90beb4a5e37b887caad1e767046a42dad0af1ab3, which is no longer needed.

BUG: 386379
FIXED-IN: 19.12.1

Test Plan:
Use a mouse with a scroll wheel and scroll in Dolphin item views with list view,
details view, icon view, etc, using different item sizes. Speed should be
consistent in all views now, and also feel consistent with other KDE apps.

Also try with multiple scale factors to make sure the behavior does not change.

No change with high-resolution two-finger touchpad scrolling.

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: ahiemstra, lots0logs, anthonyfieroni, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19190

6 years agofix(search): Correctly parse filename and/or content search
Ismael Asensio [Sat, 21 Dec 2019 18:14:17 +0000 (19:14 +0100)]
fix(search): Correctly parse filename and/or content search

Summary:
Currently, the search url parsing does not detect if the search is based on Content or Filename, and it just keeps the last selection which can be inconsistent with the actual search.

This patch add such detection, and since an advanced user can combine filename and content search (using the keyword `filename:`), now the parsing detects both items and handles the four possible cases:

| Content | Filename | Search text | Search type |
|---|---|------------------------|------------------|
| T | T | abc filename:"xyz"  | Content          |
| T | F | abc                           | Content          |
| F | T | xyz                           | Filename         |
| F | F |                                  | do not set       |

Depends on: D25260

Test Plan: `bin/dolphinquerytest`: Added new test cases for searches with content text and/or filename

Reviewers: elvisangelaccio, bruns, #dolphin

Reviewed By: elvisangelaccio, #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25416

6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Fri, 20 Dec 2019 01:29:14 +0000 (02:29 +0100)]
GIT_SILENT made messages (after extraction)

6 years agoGIT_SILENT: Port deprecated QSet::toList method
Laurent Montel [Thu, 19 Dec 2019 13:39:43 +0000 (14:39 +0100)]
GIT_SILENT: Port deprecated QSet::toList method

6 years agoFix spacing
Yuri Chornoivan [Mon, 16 Dec 2019 07:56:59 +0000 (09:56 +0200)]
Fix spacing

6 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Mon, 16 Dec 2019 04:22:38 +0000 (05:22 +0100)]
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"

6 years ago[dolphin/search] Search by (multiple) tags
Ismael Asensio [Sun, 15 Dec 2019 16:18:18 +0000 (17:18 +0100)]
[dolphin/search] Search by (multiple) tags

Summary:
Adds a tag selector in the extended filters of the search box.
Selected tag or tags are added to the search query along with the other filters (type, date, rating).

FEATURE: 412564
CCBUG: 356062

Test Plan:
- Menu shows the user tags
- Picking any tag/s filters the search to that specific tag/s

{F7727909}

Reviewers: elvisangelaccio, ngraham, #dolphin, #vdg

Reviewed By: elvisangelaccio, ngraham, #dolphin, #vdg

Subscribers: kfm-devel

Tags: #dolphin

Maniphest Tasks: T9094

Differential Revision: https://phabricator.kde.org/D25130

6 years agoDon't overload the word "Properties" to mean multiple things
Nate Graham [Sat, 14 Dec 2019 13:15:44 +0000 (14:15 +0100)]
Don't overload the word "Properties" to mean multiple things

Summary:
Generally "Properties" refers to information about a selected file. However Dolphin also
uses the word "Properties" in the phrase "View Properties", which refers to the display
style of the view. Since "properties" is a fairly esoteric and technical term to most
users, it would probably be wise to avoid using it in multiple contexts.

Accordingly, this patch changes "view properties" to "view display style".

Test Plan: Look at the settings window, hamburger menu, view menu, and docbook

Reviewers: #vdg, #dolphin, ndavis, elvisangelaccio

Reviewed By: #vdg, #dolphin, ndavis, elvisangelaccio

Subscribers: ndavis, kfm-devel, kde-doc-english

Tags: #dolphin, #documentation

Differential Revision: https://phabricator.kde.org/D25987

6 years agoChange KDE_APPLICATIONS_VERSION to RELEASE_SERVICE_VERSION https://phabricator.kde...
Jonathan Riddell [Tue, 10 Dec 2019 16:39:11 +0000 (16:39 +0000)]
Change KDE_APPLICATIONS_VERSION to RELEASE_SERVICE_VERSION https://phabricator.kde.org/T11933
GIT_SILENT

6 years agoMerge branch 'release/19.12'
Antonio Rojas [Mon, 9 Dec 2019 22:23:07 +0000 (23:23 +0100)]
Merge branch 'release/19.12'

6 years agoMerge branch 'release/19.12' of git://anongit.kde.org/dolphin into release/19.12
Antonio Rojas [Mon, 9 Dec 2019 22:22:48 +0000 (23:22 +0100)]
Merge branch 'release/19.12' of git://anongit.kde.org/dolphin into release/19.12

6 years agoFix build with Qt 5.14 RC
Antonio Rojas [Mon, 9 Dec 2019 22:21:51 +0000 (23:21 +0100)]
Fix build with Qt 5.14 RC

Add needed Qt includes that are no longer pulled transitively.

BUG: 414492

Differential Revision: https://phabricator.kde.org/D25783

6 years agoMerge branch 'release/19.12'
Nate Graham [Fri, 6 Dec 2019 19:42:31 +0000 (12:42 -0700)]
Merge branch 'release/19.12'

6 years agoCorrect invalid homepage URL
Nate Graham [Fri, 6 Dec 2019 19:41:33 +0000 (12:41 -0700)]
Correct invalid homepage URL

BUG: 414901
FIXED-IN: 19.12.1

6 years agoMake it compile against last kf5 version without deprecated methods
Laurent Montel [Fri, 6 Dec 2019 12:31:43 +0000 (13:31 +0100)]
Make it compile against last kf5 version without deprecated methods

6 years agoAdd action for focusing Terminal Panel
Nate Graham [Wed, 20 Mar 2019 22:06:28 +0000 (23:06 +0100)]
Add action for focusing Terminal Panel

Summary:
Add an action for focusing and de-focusing the Terminal Panel.

FEATURE: 185096
FIXED-IN 20.04.0

Test Plan:
- Hit {key Ctrl Shift F4} or click {nav Tools > Focus Terminal Panel} or {nav Control > Tools > Focus Terminal Panel}
- If the Terminal Panel was closed, it opens and gains focus
- If the Terminal Panel was open but unfocused, it gains focus
- If the Terminal Panel was open and focused, focus returns to the view

{F6630289, size=full}

Reviewers: #dolphin, elvisangelaccio, rominf

Reviewed By: #dolphin, elvisangelaccio, rominf

Subscribers: kfm-devel, elvisangelaccio, rkflx, ngraham, #dolphin

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D10959

6 years agoUpdate Appstream for new release
Christoph Feck [Thu, 5 Dec 2019 20:59:20 +0000 (21:59 +0100)]
Update Appstream for new release

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.12.0.
Christoph Feck [Thu, 5 Dec 2019 19:43:17 +0000 (20:43 +0100)]
GIT_SILENT Upgrade KDE Applications version to 19.12.0.

6 years agoRefactoring to reduce size of openItemContextMenu and add the ContextType TimelineOrS...
Méven Car [Fri, 29 Nov 2019 16:59:21 +0000 (17:59 +0100)]
Refactoring to reduce size of openItemContextMenu and add the ContextType TimelineOrSearchContext

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25615

6 years agoGIT_SILENT remove unused include
David Faure [Sun, 1 Dec 2019 23:44:30 +0000 (00:44 +0100)]
GIT_SILENT remove unused include

6 years agoMerge branch 'release/19.12'
Elvis Angelaccio [Thu, 28 Nov 2019 21:36:44 +0000 (22:36 +0100)]
Merge branch 'release/19.12'

6 years agofix(search): Fix baloo searchString parsing
Ismael Asensio [Fri, 15 Nov 2019 22:34:13 +0000 (23:34 +0100)]
fix(search): Fix baloo searchString parsing

Summary:
Fix the parsing of Baloo query `searchString` to represent its parameters properly
in the search box:
# Baloo terms (`rating`, `modified`) are added to the user search text: {F7575590}
# Extra quotes are added to the search text: https://bugs.kde.org/show_bug.cgi?id=412952

This revision supersedes D24422, by making the fixes on the new dolphin query model,
instead of directly on the UI.

BUG: 412952
FIXED IN: 19.11.90

Test Plan:
  - `bin/dolphinquerytest` passes without `XFAIL`s
  - Dolphin search box is not garbled by search terms or quotes

Reviewers: elvisangelaccio, bruns, ngraham, #dolphin

Reviewed By: elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25260

6 years agoForce dbus introspection on the Dolphin_1 object
Elvis Angelaccio [Sun, 24 Nov 2019 18:18:41 +0000 (19:18 +0100)]
Force dbus introspection on the Dolphin_1 object

Summary:
QtDBus caches known interfaces when passing a non-empty interface name
to the QDbusInterface constructor. This is an issue when calling the
FileManager1 methods more than once, because `preferred` could be a
valid interface from the cache, but it would later fail to call the
`openFiles`/`openDirectories` methods on the main window.

By passing an empty interface name, we prevent QtDBus from using the
cache so that we always get an invalid interface when calling the
FileManager1 methods on a daemonized dolphin process (that doesn't have
the Dolphin_1 dbus object).

BUG: 414402
FIXED-IN: 19.12.0

Test Plan:
1. dolphin --daemon
2. qdbus org.freedesktop.FileManager1 /org/freedesktop/FileManager1 ShowFolders "/tmp" ""
3. Close the dolphin window that was just opened.
4. Start a normal dolphin process
5. qdbus org.freedesktop.FileManager1 /org/freedesktop/FileManager1 ShowFolders "/tmp" ""
6. Close again the dolphin window
7. qdbus org.freedesktop.FileManager1 /org/freedesktop/FileManager1 ShowFolders "/tmp" ""

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25510

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.11.90.
Albert Astals Cid [Tue, 26 Nov 2019 22:23:31 +0000 (23:23 +0100)]
GIT_SILENT Upgrade KDE Applications version to 19.11.90.

6 years agoFix link: ui.html -> menus.html
Yuri Chornoivan [Mon, 25 Nov 2019 20:00:41 +0000 (22:00 +0200)]
Fix link: ui.html -> menus.html

6 years agoRemove dead code
Nicolas Fella [Mon, 25 Nov 2019 19:54:08 +0000 (20:54 +0100)]
Remove dead code

Summary: The code appears to do nothing.

Test Plan: builds, bookmarkmenu still works

Reviewers: #dolphin, meven, elvisangelaccio

Reviewed By: #dolphin, meven, elvisangelaccio

Subscribers: meven, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25347

6 years agoFix accessibility regression on the Dolphin Control button
Elvis Angelaccio [Sun, 24 Nov 2019 13:56:53 +0000 (14:56 +0100)]
Fix accessibility regression on the Dolphin Control button

9cd042a86c removed the text from the Control button without setting an
accessibleName property, which is a regression for screen-reader users.

This breaks the 19.12 string freeze, but since it's the same string we
were translating before 9cd042a86c, hopefully it's not going to be too
much of a burden for translators.

CCBUG: 414271
CCMAIL: kde-i18n-doc@kde.org

6 years agoMerge remote-tracking branch 'origin/release/19.12'
David Faure [Sat, 23 Nov 2019 14:14:30 +0000 (15:14 +0100)]
Merge remote-tracking branch 'origin/release/19.12'

6 years agoGIT_SILENT remove unused include
David Faure [Sat, 23 Nov 2019 14:14:19 +0000 (15:14 +0100)]
GIT_SILENT remove unused include

6 years agoChange default completion mode to CompletionPopupAuto
Noah Davis [Tue, 19 Nov 2019 09:30:09 +0000 (04:30 -0500)]
Change default completion mode to CompletionPopupAuto

Summary:
This makes Dolphin use the "Dropdown List & Automatic" completion mode by default when editing the URL bar.

Given the context of someone typing file paths, I can't see why one wouldn't want to use this feature, unless they don't like how it looks.

Reviewers: #vdg, #dolphin, ngraham, elvisangelaccio

Reviewed By: #vdg, #dolphin, ngraham, elvisangelaccio

Subscribers: ngraham, elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25391

6 years agoPort deprecated methods
Laurent Montel [Tue, 19 Nov 2019 13:02:12 +0000 (14:02 +0100)]
Port deprecated methods

6 years agoMerge branch 'release/19.12'
Elvis Angelaccio [Sun, 17 Nov 2019 17:54:40 +0000 (18:54 +0100)]
Merge branch 'release/19.12'

6 years agoFix dolphin homepage in the appstream metadata
Elvis Angelaccio [Sun, 17 Nov 2019 17:53:44 +0000 (18:53 +0100)]
Fix dolphin homepage in the appstream metadata

6 years ago[Dolphin] Open Preferred Search Tool action
Piotr Henryk Dabrowski [Sun, 17 Nov 2019 17:14:27 +0000 (18:14 +0100)]
[Dolphin] Open Preferred Search Tool action

Summary:
Added "Open Preferred Search Tool" action to Tools menu.

It runs preferred (topmost) external search tool as configured in the "More Search Tools" menu.

By default Ctrl+Shift+F shortcut is assigned to this action.

FEATURE: 384798
FIXED-IN: 20.03.80

{F7134238}
{F7134240}
{F7134242}

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham

Subscribers: pkloc, kfm-devel, kde-doc-english

Tags: #dolphin, #documentation

Differential Revision: https://phabricator.kde.org/D22594

6 years agoUse URLs with transport encryption
Yuri Chornoivan [Sat, 16 Nov 2019 16:53:28 +0000 (18:53 +0200)]
Use URLs with transport encryption

6 years agotest(search): Add test case for baloo parsing model
Ismael Asensio [Thu, 14 Nov 2019 21:48:26 +0000 (22:48 +0100)]
test(search): Add test case for baloo parsing model

Summary:
Adds a new test unit for the model which parses baloo search URLs
14/19 tests are set to `XFAIL` on current implementation, as they will be fixed in a final revision.

Supersedes D25135.

Depends on: D25257

Test Plan: `bin/dolphinquerytest`

Reviewers: elvisangelaccio, bruns, #dolphin

Reviewed By: elvisangelaccio, bruns, #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25258

6 years agofix(search): Allow to set empty type
Ismael Asensio [Wed, 13 Nov 2019 21:48:45 +0000 (22:48 +0100)]
fix(search): Allow to set empty type

Summary:
This small patch allows to set and empty `type` to the extended options, which will set the `Any Type` option (index 0).
It doesn't make any change in current code, since this case is not called, but it helps simplifying follow-up patches.

Test Plan:
No behavior changes with current code.
Calling `setFacetsType(QString())` actually sets the first option (`Any Type`)

Reviewers: elvisangelaccio, #dolphin

Reviewed By: elvisangelaccio, #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25255

6 years agoDolphinQuery: drop DOLPHIN_EXPORT
Elvis Angelaccio [Wed, 13 Nov 2019 21:40:41 +0000 (22:40 +0100)]
DolphinQuery: drop DOLPHIN_EXPORT

DOLPHIN_EXPORT is only used by classes in the `dolphinprivate` target,
while DolphinQuery is part of `dolphinstatic`.

This should fix the failing Windows build on the CI.

6 years agorefactor(search): De-couple baloo URL parsing logic from UI
Ismael Asensio [Wed, 13 Nov 2019 21:16:35 +0000 (22:16 +0100)]
refactor(search): De-couple baloo URL parsing logic from UI

Summary:
Extracts the logic that parses `baloosearch:` urls into a new model class. The parser logic itself is kept as is.
The search box UI is later updated using the model fields.

This refactor has been proposed by @bruns in the review of D24422, as it largely simplifies the unit tests and further expansion/improvements.

Test Plan:
No behavior changes.
Test case is added in the follow-up revision: D25258

Reviewers: #dolphin, elvisangelaccio, bruns

Reviewed By: #dolphin, elvisangelaccio, bruns

Subscribers: ngraham, bruns, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25257

6 years agomake link with LLVM
René Bertin [Tue, 12 Nov 2019 16:47:35 +0000 (17:47 +0100)]
make link with LLVM

This patch fixes a link failure when building with the LLVM toolchain
which does not discover the dependency on or pull in the private dolphin
library when linking dolphin itself.

BUG: 410237
Differential Revision: https://phabricator.kde.org/D22802

6 years agoAllow dolphin to format DateTime at later stage than KBalooRolesProvider
Méven Car [Tue, 12 Nov 2019 12:48:32 +0000 (13:48 +0100)]
Allow dolphin to format DateTime at later stage than KBalooRolesProvider

Summary:
KFileItemListWidgetInformant::roleText expected imageDateTime value to be a QDateTime but KBalooRolesProvider formatted it to QString previously, preventing KFileItemListWidgetInformant::roleText to format properly the imageDateTime

BUG: 411173

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25242

6 years ago[Information Panel] Allows to refresh icon and metadata for urls such as trash:/
Méven Car [Mon, 11 Nov 2019 13:07:47 +0000 (14:07 +0100)]
[Information Panel] Allows to refresh icon and metadata for urls such as trash:/

Summary: CCBUG: 392882

Test Plan:
1. Create a file
2. Remove it, so that it goes to the trash
3. Open trash
4. Empty trash

Before:
Information panel icon is still user-trash-full

After:
Information panel icon is changed to user-trash

Reviewers: ngraham, #dolphin, elvisangelaccio

Reviewed By: ngraham, #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23668

6 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Mon, 11 Nov 2019 08:42:43 +0000 (09:42 +0100)]
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"

6 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Mon, 11 Nov 2019 04:17:33 +0000 (05:17 +0100)]
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"

6 years agoMerge remote-tracking branch 'origin/release/19.12'
David Faure [Sun, 10 Nov 2019 13:19:57 +0000 (14:19 +0100)]
Merge remote-tracking branch 'origin/release/19.12'

6 years agoPort away from deprecated API in KWindowSystem >= 5.62
David Faure [Sun, 10 Nov 2019 13:19:17 +0000 (14:19 +0100)]
Port away from deprecated API in KWindowSystem >= 5.62

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.11.80.
Albert Astals Cid [Sun, 10 Nov 2019 10:46:00 +0000 (11:46 +0100)]
GIT_SILENT Upgrade KDE Applications version to 19.11.80.

6 years agoMerge branch 'release/19.12'
Elvis Angelaccio [Sun, 10 Nov 2019 09:19:19 +0000 (10:19 +0100)]
Merge branch 'release/19.12'

6 years agoPlacesItemModel: remove redundant set of properties
Elvis Angelaccio [Sat, 9 Nov 2019 21:45:11 +0000 (22:45 +0100)]
PlacesItemModel: remove redundant set of properties

Summary:
The text, icon and url properties are already set in
`PlacesItem::setBookmark()`, so there is no need to set them here.

The `OnlyInApp` property is part of the KBookmark object that we are
going to set to the place item, so there is no need to set it here either.

Test Plan:
- Open both dolphin and the Plasma file dialog in some app
- Edit the text, url, icon and the "Only show when using this application" checkbox in some place item from the file dialog
- Check whether the place in dolphin keeps getting updated accordingly

Reviewers: #dolphin, meven, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25230

6 years agoGIT_SILENT Upgrade KDE Applications version to 20.03.70.
Albert Astals Cid [Sun, 10 Nov 2019 00:12:45 +0000 (01:12 +0100)]
GIT_SILENT Upgrade KDE Applications version to 20.03.70.

6 years agoRemove unnecessary semicolons after Q_UNUSED
Elvis Angelaccio [Sat, 9 Nov 2019 21:06:39 +0000 (22:06 +0100)]
Remove unnecessary semicolons after Q_UNUSED

GIT_SILENT

6 years agoFix clazy writing-to-temporary warning
Elvis Angelaccio [Sat, 9 Nov 2019 18:50:01 +0000 (19:50 +0100)]
Fix clazy writing-to-temporary warning

6 years agoFix clazy non-pod-global-static warning
Elvis Angelaccio [Sat, 9 Nov 2019 18:42:57 +0000 (19:42 +0100)]
Fix clazy non-pod-global-static warning

This list of URLs is only used by cleanupBookmarks(), so there is no
need to make it global (which is what clazy complains about).

While at it, make it also a `const QVector`.

6 years agoFix clazy inefficient-qlist-soft warning
Elvis Angelaccio [Sat, 9 Nov 2019 17:57:13 +0000 (18:57 +0100)]
Fix clazy inefficient-qlist-soft warning

6 years ago[Status Bar] Remove file status Timer, add text update delay
Méven Car [Fri, 8 Nov 2019 15:40:08 +0000 (16:40 +0100)]
[Status Bar] Remove file status Timer, add text update delay

Summary:
Currently when hovering over a file we have its name, mimetype type and size display in the status bar for 1 second, after which the status of the folder is displayed.

This patch removes this timer making the status bar behavior more predictable and user friendly.

Instead there is a 50ms delay between when the status bar gets new text to display (for instance mouse hovering or keyboard navigation) and when the status bar displayed text is updated. This is to avoid flickering.

FIXED-IN: 19.12
BUG: 399267

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, elvisangelaccio, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25218

6 years agoMake the search box more compact
Ismael Asensio [Thu, 7 Nov 2019 00:34:19 +0000 (01:34 +0100)]
Make the search box more compact

Summary:
Reduce the spacing between widgets and remove the content margins on the extended search options to have a more compact and space-saving layout.
Currently, some widgets are not even aligned.
This will be even more important if we remove the toggle button for 'More Options'.

CCBUG: 386754

Test Plan:
BEFORE: {F7681182}
AFTER: {F7681184}

Reviewers: elvisangelaccio, ngraham, #dolphin, #vdg

Reviewed By: elvisangelaccio, ngraham, #dolphin, #vdg

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25028

6 years agoGet rid of search "More Options" toggle button
Ismael Asensio [Sun, 3 Nov 2019 22:00:36 +0000 (23:00 +0100)]
Get rid of search "More Options" toggle button

Summary:
With the new compact search filters (type/date/rating) it makes sense to show these options whenever available, and save some horizontal space on the main bar (specially for verbose languages).
These options will be hidden nevertheless if the search is non-indexed or Baloo is disabled.
For some nicer aesthetics D25029 should be also applied.

CCBUG: 386754

Test Plan:
Current: {F7681182}
After: {F7687380}
Along with D25029: {F7687385}

Reviewers: elvisangelaccio, ngraham, #dolphin, #vdg

Reviewed By: ngraham, #vdg

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25057

6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 30 Oct 2019 01:32:30 +0000 (02:32 +0100)]
GIT_SILENT made messages (after extraction)

6 years agoReplace old deleted nepomuk icon with baloo icon
Nate Graham [Tue, 29 Oct 2019 14:11:52 +0000 (08:11 -0600)]
Replace old deleted nepomuk icon with baloo icon

6 years agoFix minor issues found by EBN
Yuri Chornoivan [Mon, 28 Oct 2019 14:33:08 +0000 (16:33 +0200)]
Fix minor issues found by EBN

6 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Mon, 28 Oct 2019 04:14:09 +0000 (05:14 +0100)]
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"

6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Mon, 28 Oct 2019 01:27:57 +0000 (02:27 +0100)]
GIT_SILENT made messages (after extraction)

6 years agoNew design for extended search options
Ismael Asensio [Sun, 27 Oct 2019 21:38:15 +0000 (22:38 +0100)]
New design for extended search options

Summary:
Replace the arrays of radiobuttons in dolphin search box to more simple dropdown boxes.
This provides a leaner look, saving a lot user space on the main view and it is more consistent with the 'Search tools' in the most known sites (Google, DuckDuckGo, etc.)
There is room for improvement, as `QComboBox` doesn't match perfectly with the tool buttons used avobe, but I think it is an improvement over the current situation.

BEFORE:
{F7581883}

AFTER:
{F7580952}

Test Plan: Same behavior with different aesthetics

Reviewers: elvisangelaccio, #dolphin, #vdg

Subscribers: ndavis, ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D24602

6 years agoUnmounting busy device doesn't tell who is blocking
David Hallas [Sat, 23 Mar 2019 08:16:17 +0000 (09:16 +0100)]
Unmounting busy device doesn't tell who is blocking

Summary: Unmounting a busy device from the places panel doesn't tell which applications have open files blocking the unmount.

Test Plan:
Mount a USB stick using Dolphin
Open a file from the USB stick
Unmount the USB stick using Dolphin
Observe the new error message.

FEATURE: 189302

Reviewers: #dolphin, elvisangelaccio, ngraham, broulik, meven

Reviewed By: #dolphin, elvisangelaccio, meven

Subscribers: meven, davidedmundson, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19989

6 years agoWhen the selection is deselected, restart the keyboard search from the beginning
Méven Car [Sat, 26 Oct 2019 10:53:04 +0000 (12:53 +0200)]
When the selection is deselected, restart the keyboard search from the beginning

Summary:
BUG: 411538
FIXED-IN: 19.12

Test Plan:
Open a directory with 3 files starting with the same letter.
1. Press this letter key twice
2. The second file is selected
3. Deselect the file with the mouse or using Esc
4. Wait 1 second
5. Press the same key again

Before:
The third file gets selected

After:
The first file get selected

ctest

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, elvisangelaccio, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23716

6 years agoDisable keyboard accelerators for the tabs widget
Alex Miranda [Mon, 21 Oct 2019 19:39:30 +0000 (21:39 +0200)]
Disable keyboard accelerators for the tabs widget

Summary:
Now that there are actions for switching to a specific tab with default
Alt + <number> shortcuts, automatically assigned keyboard accelerators
can result in ambiguous shortcuts when using specific tab names
containing numbers.

Not adding any accelerators for the tabs widget ensures the default
shortcuts work reliably regardless of tab names.

Test Plan:
- Verify there are no ambiguous shortcuts when browsing folders with
names containing only numbers
- Verify other keyboard accelerators still work (menu bar, context menu
and others)

Reviewers: #vdg, #dolphin, ngraham

Reviewed By: #vdg, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D24794

6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Mon, 21 Oct 2019 00:26:24 +0000 (02:26 +0200)]
GIT_SILENT made messages (after extraction)

6 years agoAvoid emitting twice twice selectionChanged when keyboard changes the selection,...
Méven Car [Sun, 20 Oct 2019 10:35:52 +0000 (12:35 +0200)]
Avoid emitting twice twice selectionChanged when keyboard changes the selection, fix slotChangeCurrentItem

Summary:
In KItemListController::slotChangeCurrentItem searchFromNextItem use was bugged :

The two branches of `if (searchFromNextItem)` both looked for the next keyboard with indexForKeyboardSearch(text, currentIndex (the first one with just a +1 modulo).
But when searchFromNextItem is false, we are supposed to start to look for the next indexKeyboard from the start of the list `0`, not from the `currentIndex`

Reviewers: elvisangelaccio, #dolphin

Reviewed By: elvisangelaccio, #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D24505

6 years agoFix a bug where "Add to Places" remains disabled
Alex Miranda [Sun, 20 Oct 2019 10:03:10 +0000 (12:03 +0200)]
Fix a bug where "Add to Places" remains disabled

Summary:
Fix a bug where "Add to Places" doesn't get re-enabled in the context
and file menus when nothing is selected after previously selecting a
single file that is not a directory or multiple files.

Test Plan: Verify the action remains enabled when appropiate

Reviewers: #dolphin, elvisangelaccio, meven

Reviewed By: meven

Subscribers: meven, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D24690

6 years ago[dolphin/search] Reset search options when needed
Ismael Asensio [Sun, 20 Oct 2019 09:51:59 +0000 (11:51 +0200)]
[dolphin/search] Reset search options when needed

Summary:
Adds a method to reset the options in `facetsWidget` in two cases: when disabled and before parsing a new search URL.
Otherwise, controls for a parameter (ex. `rating`) which are not found in the new URL would stay on the old positions, instead of the default "any".
See D24422

Test Plan: Controls on `facetsWidget` go back to the default in such two cases.

Reviewers: #dolphin, elvisangelaccio, meven, ngraham

Reviewed By: ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D24450

6 years ago[dolphin/search] Fix search behavior when selecting "Your Files"
Ismael Asensio [Sun, 20 Oct 2019 09:43:32 +0000 (11:43 +0200)]
[dolphin/search] Fix search behavior when selecting "Your Files"

Summary:
Fix the search box forgetting the location where the user was previously searching into.

To do a search on "All Files" instead of setting the `m_searchPath` to `$HOME`, it checks the button state, so the "From Here" location is not lost.
As an added benefit, selecting "Your Files" when in a non-indexed folder will use the baloo search instead of a fully non-indexed search from $HOME.

This issue is the last remaining one of the series started with D24422, with the purpose of fixing the searchbox parsing and update.

Test Plan:
- Toggle between "From Here/Your Files" and navigate between locations
- The search box remembers the location and keeps a coherent state

{F7575402}

Reviewers: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D24577

6 years agoproperly enable hi-dpi support
Christoph Cullmann [Sun, 13 Oct 2019 16:33:53 +0000 (18:33 +0200)]
properly enable hi-dpi support