]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
5 years agoMerge remote-tracking branch 'origin/release/20.04'
Heiko Becker [Mon, 6 Apr 2020 21:13:37 +0000 (23:13 +0200)]
Merge remote-tracking branch 'origin/release/20.04'

5 years agoRevert "Port deprecated signal (qt5.15)"
Aleix Pol [Tue, 31 Mar 2020 13:35:33 +0000 (15:35 +0200)]
Revert "Port deprecated signal (qt5.15)"

This reverts commit e545efee73a869aef4276baef0535169f03933de.

(Cherry-picked from c01d1b4c0e909af716801e4b82862c50e8def4a4)

5 years agoMerge branch 'release/20.04'
Nate Graham [Sun, 5 Apr 2020 22:49:57 +0000 (16:49 -0600)]
Merge branch 'release/20.04'

5 years agoUse same logic for "no extension" case with Duplicate feature
Nate Graham [Mon, 23 Mar 2020 19:42:48 +0000 (13:42 -0600)]
Use same logic for "no extension" case with Duplicate feature

Summary:
In the "no extension" case, we weren't separating out the path and the original filename,
breaking the feature for languages where the word "copy" would be at the beginning of the
filename, not after it (e.g. "copia de foo" in Spanish, and similar in other romance
languages). This patch fixes that by separating the original path and filename in the no
extension case as is done for the other case, which should solve the issue.

BUG: 419070
FIXED-IN: 20.04.0

Test Plan:
No changes in English; should fix the issue in Spanish once new translations are done
(see https://bugs.kde.org/show_bug.cgi?id=419070 for details)

Reviewers: #dolphin, elvisangelaccio, arojas, meven, pino, #localization

Reviewed By: #dolphin, elvisangelaccio

Subscribers: aacid, kfm-devel

Tags: #dolphin

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

5 years agoDolphin: port to CommandLauncherJob
David Faure [Sun, 5 Apr 2020 11:44:12 +0000 (13:44 +0200)]
Dolphin: port to CommandLauncherJob

Summary: git master already requires 5.69 anyway, due to KBookmarkMenu API change

Test Plan: Builds, Tools / Compare Files works.

Reviewers: broulik, elvisangelaccio, meven

Reviewed By: elvisangelaccio, meven

Subscribers: kfm-devel

Tags: #dolphin

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

5 years agoBump minimum required KF5 version
Elvis Angelaccio [Sun, 5 Apr 2020 18:16:59 +0000 (20:16 +0200)]
Bump minimum required KF5 version

Needed after 885916b7b4.

5 years agoRevert "Port deprecated signal (qt5.15)"
Aleix Pol [Tue, 31 Mar 2020 13:35:33 +0000 (15:35 +0200)]
Revert "Port deprecated signal (qt5.15)"

This reverts commit e545efee73a869aef4276baef0535169f03933de.

5 years agoPort away from deprecated KBookmarksmenu API
Nicolas Fella [Mon, 30 Mar 2020 13:49:50 +0000 (15:49 +0200)]
Port away from deprecated KBookmarksmenu API

Summary:
Needs to wait until we can depend on 5.65

See D25660 for context

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

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

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Mon, 30 Mar 2020 06:47:40 +0000 (08:47 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoSet a better defaultDropAction for dragging
Tranter Madi [Sat, 28 Mar 2020 03:28:42 +0000 (10:28 +0700)]
Set a better defaultDropAction for dragging

Summary: Because we use KIO::DropJob to determine the dropAction, so changing this one does not change anything else except the default cursor from the copy icon to the closed-hand one.

Test Plan: Drag files without holding any modifier key and see the cursor.

Reviewers: #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

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

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Mon, 30 Mar 2020 00:36:14 +0000 (02:36 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoGIT_SILENT Upgrade release service version to 20.03.90.
Christoph Feck [Sat, 28 Mar 2020 22:29:48 +0000 (23:29 +0100)]
GIT_SILENT Upgrade release service version to 20.03.90.

5 years agoGIT_SILENT: ignore .cmake generated by qtc
Laurent Montel [Sat, 28 Mar 2020 14:32:08 +0000 (15:32 +0100)]
GIT_SILENT: ignore .cmake generated by qtc

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Fri, 27 Mar 2020 01:41:34 +0000 (02:41 +0100)]
GIT_SILENT made messages (after extraction)

5 years agoMerge branch 'release/20.04'
Nate Graham [Wed, 25 Mar 2020 15:35:24 +0000 (09:35 -0600)]
Merge branch 'release/20.04'

5 years agoUpdate dragCursor while dragging
Tranter Madi [Wed, 25 Mar 2020 15:23:30 +0000 (09:23 -0600)]
Update dragCursor while dragging

Summary:
While dragging, the user could want to change the modifier, so we should call event->acceptProposedAction() to do update the dragCursor.

FIXED-IN: 20.04.0

Test Plan: While dragging files, change modifiers between Ctrl/Shift/Alt... and move the mouse at least 1px to see the cursor changes.

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

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

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

5 years agoMerge remote-tracking branch 'origin/release/20.04'
Laurent Montel [Thu, 19 Mar 2020 13:00:15 +0000 (14:00 +0100)]
Merge remote-tracking branch 'origin/release/20.04'

5 years agoAdd missing includes
Laurent Montel [Thu, 19 Mar 2020 12:59:55 +0000 (13:59 +0100)]
Add missing includes

5 years agoSelect new duplicated items
Elvis Angelaccio [Tue, 17 Mar 2020 21:58:58 +0000 (22:58 +0100)]
Select new duplicated items

Summary: This should have been part of commit 405dd624fb

Test Plan: Duplicate item and make sure it gets selected.

Reviewers: ngraham

Reviewed By: ngraham

Subscribers: kfm-devel

Tags: #dolphin

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

5 years agoFix minor typo
Yuri Chornoivan [Tue, 17 Mar 2020 14:56:45 +0000 (16:56 +0200)]
Fix minor typo

5 years agoMerge branch 'release/20.04'
Yuri Chornoivan [Tue, 17 Mar 2020 09:34:28 +0000 (11:34 +0200)]
Merge branch 'release/20.04'

5 years agoAdd the 'Duplicate Here' feature description
Yuri Chornoivan [Tue, 17 Mar 2020 09:33:48 +0000 (11:33 +0200)]
Add the 'Duplicate Here' feature description

5 years agoMerge branch 'release/20.04'
Elvis Angelaccio [Mon, 16 Mar 2020 22:01:54 +0000 (23:01 +0100)]
Merge branch 'release/20.04'

5 years agoSwitch to generated MainWindow dbus interface
Elvis Angelaccio [Mon, 23 Dec 2019 10:06:54 +0000 (11:06 +0100)]
Switch to generated MainWindow dbus interface

Summary: This allows compile-time checks for the main window dbus methods.

Test Plan: Same test plan as in D21691, D21666 and D25510.

Reviewers: #dolphin

Subscribers: kfm-devel

Tags: #dolphin

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

5 years agoExclude daemonized processes from Dolphin::attachToExistingInstance()
Elvis Angelaccio [Tue, 24 Dec 2019 17:28:26 +0000 (18:28 +0100)]
Exclude daemonized processes from Dolphin::attachToExistingInstance()

Summary:
`dolphin --daemon` does not have the `/dolphin/Dolphin_1` dbus path,
because it doesn't have any DolphinMainWindow.

Instead of working around this issue (as we did in D21666 and D25510),
just exclude these processes from the list of dbus instances checked by
`Dolphin::attachToExistingInstance()`.

CCBUG: 408244

Test Plan: Same test plan as in D21666 and D25510

Reviewers: #dolphin

Subscribers: kfm-devel

Tags: #dolphin

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

5 years agoAdd Duplicate feature
Nathaniel Graham [Fri, 20 Dec 2019 17:07:25 +0000 (10:07 -0700)]
Add Duplicate feature

Summary: Adds a Duplicate feature to Dolphin, showing up as a menu item in the File menu that appears when one or more items are selected and the directory is writable. Duplicated items receive the names of the original files with " copy" appended before the file extension, if any.

Test Plan:

{F5201386} {F5201393}

Test cases:

- Try to duplicate when nothing is selected: **PASS**: menu item is grayed out
- Try to duplicate anything on a read-only local volume: **PASS**:  menu item is grayed out
- Try to duplicate anything on a read-only samba share: **PASS**: menu item is grayed out
- Duplicate single local file on R/W volume: **PASS**: item is duplicated and named correctly
- Duplicate multiple local files on R/W volume: **PASS**: 3 items are duplicated, named correctly, and selected
- Duplicate single local directory on  R/W volume: **PASS**: item is duplicated and named correctly, but a rename operation is not initiated
- Duplicate multiple local directories on R/W volume: **PASS**: 3 items are duplicated, named correctly, and selected
- Duplicate single file on R/W samba share: **PASS**: item is duplicated and correctly
- Duplicate multiple files on R/W samba share: **PASS**: 3 items are duplicated, named correctly, and selected
- Duplicate single directory on R/W samba share: **PASS**: item is duplicated and named correctly
- Duplicate multiple directory on R/W samba share: **PASS**: 3 items are duplicated, named correctly, and selected
- Try to undo a successful duplication: **PASS**: operation is undone

This is my first attempt at a big change like this and I'm sure it's full of issues. I will accept any and all suggestions for improvement. :)

Reviewers: #dolphin, #kde_applications, elvisangelaccio, dfaure, broulik, davidedmundson

Subscribers: kfm-devel, meven, markg, fazevedo, cfeck, #dolphin

Tags: #dolphin

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

5 years agoAdd Duplicate feature
Nathaniel Graham [Fri, 20 Dec 2019 17:07:25 +0000 (10:07 -0700)]
Add Duplicate feature

Summary: Adds a Duplicate feature to Dolphin, showing up as a menu item in the File menu that appears when one or more items are selected and the directory is writable. Duplicated items receive the names of the original files with " copy" appended before the file extension, if any.

Test Plan:

{F5201386} {F5201393}

Test cases:

- Try to duplicate when nothing is selected: **PASS**: menu item is grayed out
- Try to duplicate anything on a read-only local volume: **PASS**:  menu item is grayed out
- Try to duplicate anything on a read-only samba share: **PASS**: menu item is grayed out
- Duplicate single local file on R/W volume: **PASS**: item is duplicated and named correctly
- Duplicate multiple local files on R/W volume: **PASS**: 3 items are duplicated, named correctly, and selected
- Duplicate single local directory on  R/W volume: **PASS**: item is duplicated and named correctly, but a rename operation is not initiated
- Duplicate multiple local directories on R/W volume: **PASS**: 3 items are duplicated, named correctly, and selected
- Duplicate single file on R/W samba share: **PASS**: item is duplicated and correctly
- Duplicate multiple files on R/W samba share: **PASS**: 3 items are duplicated, named correctly, and selected
- Duplicate single directory on R/W samba share: **PASS**: item is duplicated and named correctly
- Duplicate multiple directory on R/W samba share: **PASS**: 3 items are duplicated, named correctly, and selected
- Try to undo a successful duplication: **PASS**: operation is undone

This is my first attempt at a big change like this and I'm sure it's full of issues. I will accept any and all suggestions for improvement. :)

Reviewers: #dolphin, #kde_applications, elvisangelaccio, dfaure, broulik, davidedmundson

Subscribers: kfm-devel, meven, markg, fazevedo, cfeck, #dolphin

Tags: #dolphin

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

5 years agoGIT_SILENT Upgrade release service version to 20.03.80.
Albert Astals Cid [Sun, 15 Mar 2020 18:54:17 +0000 (19:54 +0100)]
GIT_SILENT Upgrade release service version to 20.03.80.

5 years agoGIT_SILENT Upgrade release service version to 20.07.70.
Albert Astals Cid [Sun, 15 Mar 2020 18:32:46 +0000 (19:32 +0100)]
GIT_SILENT Upgrade release service version to 20.07.70.

5 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Mon, 2 Mar 2020 04:36:51 +0000 (05:36 +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"

5 years agoMerge branch 'release/19.12'
Alexander Saoutkin [Sun, 1 Mar 2020 17:22:46 +0000 (17:22 +0000)]
Merge branch 'release/19.12'

5 years agoFix typo in comment
Alexander Saoutkin [Sun, 1 Mar 2020 17:20:54 +0000 (17:20 +0000)]
Fix typo in comment

5 years agoFix files not being highlighted if directory of file is already open
Alexander Saoutkin [Sun, 1 Mar 2020 16:31:02 +0000 (16:31 +0000)]
Fix files not being highlighted if directory of file is already open

Summary:
In DolphinTabWidget::openFiles it assumes openDirectories will open new tabs, so it
only marks the URL selection for the newly opened tabs. This assumption is incorrect
 as Dolphin might reuse tabs when the folder is already open.

Even then, markUrlsAsSelected does nothing when the folder is already opened.
The selection seems to only be used when the folder finishes loading, calls made after
that only change a variable without updating the actual selection.

A call to DolphinView::updateViewState() is required to restore the intended behaviour, so long as DolphinView::clearSelection() has been called on the relevant tab, otherwise updateViewState() is a no-op.

BUG: 417230
FIXED-IN: 19.12.3

Test Plan:
1. In any application that has an "open containing folder" select that option
2. and then do the same for another file in the same folder

Reviewers: broulik

Reviewed By: broulik

Subscribers: kfm-devel

Tags: #dolphin

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

5 years agoGIT_SILENT Update Appstream for new release
Christoph Feck [Sun, 1 Mar 2020 09:31:18 +0000 (10:31 +0100)]
GIT_SILENT Update Appstream for new release

5 years agoGIT_SILENT Upgrade KDE Applications version to 19.12.3.
Christoph Feck [Sat, 29 Feb 2020 22:22:25 +0000 (23:22 +0100)]
GIT_SILENT Upgrade KDE Applications version to 19.12.3.

5 years agoFix issues found by ebn
Carl Schwan [Fri, 21 Feb 2020 14:42:41 +0000 (15:42 +0100)]
Fix issues found by ebn

Summary:
http://ebn.kde.org/sanitizer/reports/kde-4.x/applications/dolphin/index.html

I ignored the Prefer 'folder' over 'directory' issue, since it was a false positive.

Test Plan: meinproc5 still work and no visual change.

Reviewers: yurchor

Reviewed By: yurchor

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

Tags: #dolphin, #documentation

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

5 years agoFixes multiple KVersionControlPlugin::fileName() calls on entering or updating directory.
Nikolai Krasheninnikov [Tue, 18 Feb 2020 20:17:53 +0000 (13:17 -0700)]
Fixes multiple KVersionControlPlugin::fileName() calls on entering or updating directory.

Summary:
BUG: 415698
FIXED-IN: 20.04

On each VCS plugin creation corresponding file name is saved (cached) so when we search which VCS plugin is appropriate for current directory we don't need to call KVersionControlPlugin::fileName() again.

Reviewers: #dolphin, meven, elvisangelaccio, ngraham

Reviewed By: #dolphin, meven, ngraham

Subscribers: kfm-devel

Tags: #dolphin

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

5 years agoPort deprecated signal (qt5.15)
Laurent Montel [Sun, 16 Feb 2020 13:44:38 +0000 (14:44 +0100)]
Port deprecated signal (qt5.15)

5 years agoRestore former position of "Create New" menu item in viewport context menu
Nate Graham [Sun, 9 Feb 2020 15:58:10 +0000 (08:58 -0700)]
Restore former position of "Create New" menu item in viewport context menu

Summary:
I've seem various complaints from users about the fact that the {nav Create New...} menu
item in the viewport context menu is now below {nav Open With} item. All the other
changes to menus seem to have been well-received but this one has garnered criticism.
Looking through D23757 and D11884, I can't actually see that this was intentional, so
it might even be a bug.

Either way, this patch restores the old position of the {nav Create New} menu items at
the top of the Viewport context menu.

BUG: 417640
FIXED-IN: 20.04.0

Test Plan: {F8093605}

Reviewers: #vdg, #dolphin, elvisangelaccio, ndavis

Reviewed By: #vdg, ndavis

Subscribers: asturmlechner, markuss, kfm-devel

Tags: #dolphin

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

5 years agoSwap "Open in New Window" and "Open in New Tab" in context menus
Ilya Bizyaev [Tue, 11 Feb 2020 11:36:19 +0000 (14:36 +0300)]
Swap "Open in New Window" and "Open in New Tab" in context menus

Summary:
Since Dolphin's default behaviour became opening in new tabs rather than in new windows
(a very positive change, in my opinion), I always find myself accidentally opening folders
in new windows from the context menu. This is because in most browsers with tab workflow
(e.g. Firefox, Chromium, Falkon) the top context menu action is opening in a new tab, and
my muscle memory plays a bad trick :) I'm aware of middle-clicking, but I find it
inconvenient with my touchpad.

I suspect I'm probably not alone in that, so I think it makes sense to swap these actions
in Dolphin to match widely used apps.

Test Plan:
Open Dolphin, right click folders in the main view and in the Places panel, ensure the
actions are indeed swapped

Reviewers: #vdg, ndavis, #dolphin, ngraham

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

Subscribers: ngraham, ndavis, kfm-devel

Tags: #dolphin

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

5 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Thu, 6 Feb 2020 04:34:55 +0000 (05:34 +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"

5 years agoGIT_SILENT Update Appstream for new release
Christoph Feck [Mon, 3 Feb 2020 23:10:08 +0000 (00:10 +0100)]
GIT_SILENT Update Appstream for new release

5 years agoGIT_SILENT Upgrade KDE Applications version to 19.12.2.
Christoph Feck [Sun, 2 Feb 2020 13:57:53 +0000 (14:57 +0100)]
GIT_SILENT Upgrade KDE Applications version to 19.12.2.

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Sun, 2 Feb 2020 01:30:18 +0000 (02:30 +0100)]
GIT_SILENT made messages (after extraction)

5 years agoAdd natural sorting and case-insensitive sorting for all role-types
George Vogiatzis [Tue, 28 Jan 2020 15:50:06 +0000 (08:50 -0700)]
Add natural sorting and case-insensitive sorting for all role-types

Summary:
 Add natural sorting and case-insensitive sorting, for all role-types
that benefit from.

BUG: 406296
FIXED-IN: 19.12.2

Test Plan:
Sort by any role type specified in `isRoleValueNatural()`
Before: Sorting is always case sensitive
After: Sorting according to 'Sorting mode' in configuration.

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

Reviewed By: #dolphin, meven, elvisangelaccio, ngraham

Subscribers: cfeck, meven, kfm-devel

Tags: #dolphin

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

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

5 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.

5 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

5 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

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

5 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