]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
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

6 years agoHide search extra options when not available
Ismael Asensio [Sun, 13 Oct 2019 15:21:11 +0000 (17:21 +0200)]
Hide search extra options when not available

Summary:
Hide the search extra options when they are not available, because the current location is not indexed or Baloo is not enabled.
The button is disabled and shows a tooltip to provide feedback of why it's not available.
Depends on D24478

{F7531893}

CCBUG: 396898
FEATURE: 318580
FEATURE: 408680
FIXED-IN: 19.11.80

Test Plan:
 - `Ctrl-F` on a non-indexed location
 - `balooctl disable` and `Ctrl-F` on an indexed location

On both cases the extra options are not shown, the button is disabled and the reason is shown in the tooltip
The user selection is remembered between indexed locations.

Reviewers: #dolphin, elvisangelaccio, meven, ngraham

Reviewed By: meven

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoAdd actions for switching to a specific tab
Alex Miranda [Sun, 13 Oct 2019 14:37:00 +0000 (16:37 +0200)]
Add actions for switching to a specific tab

Summary:
Add actions to switch to each of the first 9 tabs and another action to
switch to the last tab.

This feature makes it much easier to quickly switch between tabs just
like you normally would be able to when using a web browser or other
applications.

Reviewers: #vdg, #dolphin, ngraham, elvisangelaccio

Reviewed By: #vdg, #dolphin, ngraham

Subscribers: meven, ngraham, elvisangelaccio, kfm-devel

Tags: #dolphin

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

6 years agoRefactoring: add shouldClearSearchIfInputTimeReached to KItemListKeyboardSearchManager
Méven Car [Thu, 10 Oct 2019 07:28:25 +0000 (09:28 +0200)]
Refactoring: add shouldClearSearchIfInputTimeReached to KItemListKeyboardSearchManager

6 years agoUpdate documentation mentionning Recent places group
Méven Car [Wed, 9 Oct 2019 07:33:53 +0000 (09:33 +0200)]
Update documentation mentionning Recent places group

6 years ago[dolphin/search] Add method isIndexEnabled()
Ismael Asensio [Tue, 8 Oct 2019 19:42:11 +0000 (21:42 +0200)]
[dolphin/search] Add method isIndexEnabled()

Summary: Extracts the logic for checking if the current path is indexed to its own method.

Test Plan: No behavior changes

Reviewers: elvisangelaccio, ngraham, meven

Reviewed By: ngraham, meven

Subscribers: meven, kfm-devel

Tags: #dolphin

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

6 years ago[dolphin/search] Avoid unnecesary reloads on setSearchPath
Ismael Asensio [Mon, 7 Oct 2019 19:50:59 +0000 (21:50 +0200)]
[dolphin/search] Avoid unnecesary reloads on setSearchPath

Summary:
Check in `setSearchPath()` if the `url` passed is already the `searchPath`
This was causing an effect where reloading the same search URL results on buttons `From Here/Everywhere` toggling.
See D24422

Test Plan:
On your home folder press `Ctrl-F` several times
Buttons `From Here/Everywhere` should now not toggle each time

Reviewers: #dolphin, elvisangelaccio, meven, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

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

6 years ago[dolphin/search] Add missing parsing for type 'Folder'
Ismael Asensio [Mon, 7 Oct 2019 19:44:34 +0000 (21:44 +0200)]
[dolphin/search] Add missing parsing for type 'Folder'

Summary:
Add missing parsing for type 'Folder'
See D24422

Test Plan:
dolphin --new-window 'baloosearch:?json=%7B%22type%22:[%22Folder%22]%7D'
- `Folders` is selected in search options

Reviewers: #dolphin, elvisangelaccio, meven, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoMerge branch 'Applications/19.08'
Elvis Angelaccio [Sun, 6 Oct 2019 09:51:34 +0000 (11:51 +0200)]
Merge branch 'Applications/19.08'

6 years agoFix crash when lauching dolphin with a search scheme
Ismael Asensio [Sun, 6 Oct 2019 09:34:30 +0000 (11:34 +0200)]
Fix crash when lauching dolphin with a search scheme

Summary: Widget objects are initialized in `DolphinSearchBox::init()`, which is called on `QEvent::Polish`, so we must set it visible before calling `fromSearchUrl`.

Test Plan: `dolphin --new-window baloosearch://`

Reviewers: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.08.2.
Christoph Feck [Sun, 6 Oct 2019 03:06:01 +0000 (05:06 +0200)]
GIT_SILENT Upgrade KDE Applications version to 19.08.2.

6 years agoUpdate dolphin tests following place changes D7446
Méven Car [Wed, 2 Oct 2019 16:14:18 +0000 (18:14 +0200)]
Update dolphin tests following place changes D7446

Summary:
Adapt tests corresponding to changes in D7446
The placesitemmodeltest were not run due to KIO_VERSION not existing

Test Plan: LANG="en" ctest

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoUpdate searchbox on URL changes (Fix D24369)
Ismael Asensio [Thu, 3 Oct 2019 20:00:24 +0000 (22:00 +0200)]
Update searchbox on URL changes (Fix D24369)

Summary:
In D24369 I introduced a regression: Where now the searchbox is updated on url changes for search urls, it is not updated anymore for regular folders. The effect is that not-indexed folders can have the extra options enabled or vice-versa. This patch fixes it, moving back the updating logic to `setSearchModeEnable`.

Test Plan: - Searchbox updates properly when changing between search urls and regular folders, either indexed or nor-indexed.

Reviewers: #dolphin, elvisangelaccio

Subscribers: kfm-devel, elvisangelaccio

Tags: #dolphin

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

6 years agoUpdate searchbox on URL changes (Fix D24369)
Ismael Asensio [Thu, 3 Oct 2019 20:00:24 +0000 (22:00 +0200)]
Update searchbox on URL changes (Fix D24369)

Summary:
In D24369 I introduced a regression: Where now the searchbox is updated on url changes for search urls, it is not updated anymore for regular folders. The effect is that not-indexed folders can have the extra options enabled or vice-versa. This patch fixes it, moving back the updating logic to `setSearchModeEnable`.

Test Plan: - Searchbox updates properly when changing between search urls and regular folders, either indexed or nor-indexed.

Reviewers: #dolphin, elvisangelaccio

Subscribers: kfm-devel, elvisangelaccio

Tags: #dolphin

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

6 years agoFix missing setDefaultShortcuts call
David Hallas [Tue, 1 Oct 2019 15:24:53 +0000 (17:24 +0200)]
Fix missing setDefaultShortcuts call

Summary:
The commit eec49bc38f4e256b66bf16ee5428c5f5d7e97e25 cased a warning to
be emitted when starting Dolphin:

KXMLGUIFactoryPrivate::saveDefaultActionProperties(): Shortcut for action  "go_forward" "&Forward" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.

The fix is to call
actionCollection()->setDefaultShortcuts(m_forwardAction, m_forwardAction->shortcuts());
so that the default shortcuts are setup.

Reviewers: elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoMerge branch 'Applications/19.08'
Elvis Angelaccio [Wed, 2 Oct 2019 21:03:27 +0000 (23:03 +0200)]
Merge branch 'Applications/19.08'

6 years agoUpdate searchbar parameters on URL change
Ismael Asensio [Wed, 2 Oct 2019 20:57:32 +0000 (22:57 +0200)]
Update searchbar parameters on URL change

Summary:
Searchbar options (text and options) were only updated when toggling the search on, $
Main use case is when changing between stored search urls in Places panel.

Test Plan:
- Store two search urls in Places panel
- Navigate between them
- The searchbar text and parameters change accordingly

BEFORE:
{F7500811}
AFTER:
{F7500813}

Reviewers: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoDon't set Qt::WindowContextHelpButtonHint on Windows as it basically converts the...
Hannah von Reth [Tue, 1 Oct 2019 21:48:41 +0000 (23:48 +0200)]
Don't set Qt::WindowContextHelpButtonHint on Windows as it basically converts the window in to a dialog

Reviewers: ngraham, mlaurent, dfaure

Reviewed By: ngraham

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoFix another crash if HAVE_TERMINAL is not defined
Elvis Angelaccio [Tue, 1 Oct 2019 20:28:20 +0000 (22:28 +0200)]
Fix another crash if HAVE_TERMINAL is not defined

Inspired by 29778152ad.

6 years agoDon't crash if we don't have a terminal
Hannah von Reth [Tue, 1 Oct 2019 09:23:12 +0000 (11:23 +0200)]
Don't crash if we don't have a terminal

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoAdd new option on executable treatment to the docs
Yuri Chornoivan [Mon, 30 Sep 2019 14:56:52 +0000 (17:56 +0300)]
Add new option on executable treatment to the docs

6 years agoKItemListHeaderWidget: drop unnecessary remove() call
Elvis Angelaccio [Sun, 29 Sep 2019 16:42:52 +0000 (18:42 +0200)]
KItemListHeaderWidget: drop unnecessary remove() call

If a key is not in the hash, there is nothing to be removed.

6 years agoExpose full set of script execution options in settings window
Nate Graham [Thu, 26 Sep 2019 18:31:05 +0000 (12:31 -0600)]
Expose full set of script execution options in settings window

Summary:
Right now the script execution setting is a checkbox, capable only of handling boolean
input. This is not appropriate because there are actually three options available.

Accordingly, this patch replaces the checkbox with a combobox (to save space compared
to radio buttons) that clearly exposes all three options.

BUG: 371837
FIXED-IN: 19.12.0

Test Plan:
{F7440559}

- All three options do what they say they'll do
- All options get saved properly
- The combobox displays the correct option when the window is loaded
- The {nav Defaults} button resets it to "always ask" as expected

Reviewers: elvisangelaccio, #dolphin, #vdg

Reviewed By: elvisangelaccio, #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Maniphest Tasks: T9932

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

6 years agoAdd navigation history to forward/back buttons
David Hallas [Thu, 11 Apr 2019 17:21:41 +0000 (19:21 +0200)]
Add navigation history to forward/back buttons

Summary:
Adds navigation history to forward/back buttons in the toolbar. This
changes the forward/back buttons in the toolbar to use the
KToolBarPopupAction class which provides access to a drop down menu.

Test Plan:
Browse some folders
Click the back drop down menu and navigate somewhere
Click the forward drop down menu and navigate somewhere

FEATURE: 157819
FIXED-IN: 19.12.0

Reviewers: #dolphin, ngraham, elvisangelaccio, #vdg

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

Subscribers: felixernst, nerdopolist, mart, richardl, ognarb, david.fontanals, abetts, kfm-devel

Tags: #dolphin

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

6 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Wed, 25 Sep 2019 03:15:10 +0000 (05:15 +0200)]
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] Animate gifs on preview
Ismael Asensio [Sat, 21 Sep 2019 14:15:04 +0000 (16:15 +0200)]
[dolphin] Animate gifs on preview

Summary:
Adds the capability to view animated images on the preview in the information panel.
This was a request from a user back in 2009 (https://bugs.kde.org/show_bug.cgi?id=182257), but I think nowadays with stickers/memes and what not, it's even more useful.
It keeps the size default transition of the preview viewer before starting the animation, so that the visual integration is smoother.

{F7289110}

FEATURE: 182257
FIXED-IN: 19.11.80

Test Plan: Open the information panel and hover over some animated images (gif/webp/mng)

Reviewers: #dolphin, #vdg, ngraham, elvisangelaccio

Reviewed By: #vdg, ngraham

Subscribers: pino, fuksitter, meven, broulik, kfm-devel

Tags: #dolphin

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

6 years agoWe depend against 5.61
Laurent Montel [Fri, 20 Sep 2019 04:51:17 +0000 (06:51 +0200)]
We depend against 5.61

6 years ago[KStandardItemListWidget] Request the pixmap size we want and let the icon loader...
Kai Uwe Broulik [Mon, 16 Sep 2019 06:52:05 +0000 (08:52 +0200)]
[KStandardItemListWidget] Request the pixmap size we want and let the icon loader scale it

I noticed that depending on the configured icon size it would spend a significant amount of time in KPixmapModifier::scale.
I don't see a point in requesting a fixed icon size and then scale it down manually as opposed to having the KIconLoader do the scaling for us.
Especially for SVGs it could then even serve us a properly rendered SVG for this size rather than a scaled down pixmap version.

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

6 years agoFix failing testWindowTitle() on the KDE CI
Elvis Angelaccio [Sun, 15 Sep 2019 18:59:08 +0000 (20:59 +0200)]
Fix failing testWindowTitle() on the KDE CI

Forgot that the default places panel no longer ships the Root place.

GIT_SILENT

6 years agoFix wrong window titles
Nazar Kalinowski [Sun, 15 Sep 2019 18:36:05 +0000 (20:36 +0200)]
Fix wrong window titles

Summary:
BUG: 389135
FIXED-IN: 19.11.80

Currently dolphin shows a folder's name instead of a "place" name if the current path has trailing slash and place's name doesn't, or vice versa.
This patch fixes this behavior, so that dolphin always shows a "place" name.

The QUrl::FullyEncoded string conversion is required because that's how
the places model stores the places URLs in the XML bookmarks file.

Test Plan:
Test configuration: https://imgur.com/a/U4zBp8c
Before (wrong window titles are in red): https://imgur.com/a/dB4xRwo
After (all window titles are correct): https://imgur.com/a/W7virBn

Reviewers: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, ngraham, kfm-devel

Tags: #dolphin

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

6 years agoIntroduce test for window titles
Elvis Angelaccio [Sun, 15 Sep 2019 09:51:03 +0000 (11:51 +0200)]
Introduce test for window titles

6 years agoClean up hamburger menu and viewport and single-folder context menus
Nate Graham [Fri, 6 Sep 2019 16:08:58 +0000 (10:08 -0600)]
Clean up hamburger menu and viewport and single-folder context menus

Summary:
Dolphin's hamburger and context menus have grown organically over time,
becoming a bit messy and somewhat visually overwhelming. This makes them
harder to parse and more intimidating to use.

This patch cleans up the hamburger menu and viewport and single-folder context
menus to group items more logically, and remove items that aren't actually relevant
to the context.

The hamburger menu part of the patch is fairly significant, and draws from the
principle of only showing actions with a global scope that are not already accessible
from another visible method (e.g. via the default toolbar). In the end, it manages to be
shorter than the current hamburger menu with expose actions that are more relevant.

A visible method to display context-specific actions should be explored separately
(see https://bugs.kde.org/show_bug.cgi?id=411500).

Depends on D23945

Test Plan:
Before, hamburger menu: {F7334178}
After, hamburger menu: {F7350958}

Before, viewport: {F7324802}
After, viewport: {F7330109}

Before, one folder selected: {F7324798}
After, one folder selected: {F7341163}

No change for the context menus shown when selecting a single item, multiple items, or multiple folders

Reviewers: #vdg, #dolphin, meven, elvisangelaccio, GB_2

Reviewed By: #vdg, #dolphin, meven, elvisangelaccio, GB_2

Subscribers: GB_2, mmustac, elvisangelaccio, meven, ndavis, kfm-devel

Tags: #dolphin

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

6 years agoBring back placesitemmodeltest
Méven Car [Sun, 15 Sep 2019 08:25:16 +0000 (10:25 +0200)]
Bring back placesitemmodeltest

KIO_VERSION is not defined, KF5_VERSION is.

6 years agoBring back placesitemmodeltest
Méven Car [Sun, 15 Sep 2019 08:25:16 +0000 (10:25 +0200)]
Bring back placesitemmodeltest

KIO_VERSION is not defined, KF5_VERSION is.

6 years agoSync docs with interface
Yuri Chornoivan [Sun, 15 Sep 2019 05:25:21 +0000 (08:25 +0300)]
Sync docs with interface

6 years agoImprove icons and text for some actions
Nate Graham [Sat, 14 Sep 2019 14:40:06 +0000 (08:40 -0600)]
Improve icons and text for some actions

Summary: Split out from D23757

Reviewers: #dolphin, #vdg, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

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