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

6 years agoFix unused variable warning
Elvis Angelaccio [Sat, 14 Sep 2019 14:10:07 +0000 (16:10 +0200)]
Fix unused variable warning

Should have been removed by 60d6a3bdbcd44360e1c6ae1c82239ecf6d60ded7

GIT_SILENT

6 years agoThis is not unused
Ismael Asensio [Sat, 14 Sep 2019 13:31:45 +0000 (15:31 +0200)]
This is not unused

GIT_SILENT

6 years agoDolphinTabWidget: cleanup index-by-URL API usage
Elvis Angelaccio [Tue, 10 Sep 2019 23:09:30 +0000 (01:09 +0200)]
DolphinTabWidget: cleanup index-by-URL API usage

Summary:
Follow-up of D23655 where we didn't have time to polish the code:

- add a couple of variables to make the code more clear.
- remove the `get` prefix which we usually don't use in Qt code.
- make the function private since it's very tied to implementation.
- add a new isUrlOpen public method as wrapper.

Reviewers: feverfew

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoWe depend against 5.61 which depends against qt 5.11
Laurent Montel [Sat, 14 Sep 2019 07:41:37 +0000 (09:41 +0200)]
We depend against 5.61 which depends against qt 5.11

6 years agoUse directly "isEmpty()"
Laurent Montel [Sat, 14 Sep 2019 07:40:09 +0000 (09:40 +0200)]
Use directly "isEmpty()"

6 years agoAdd Reset Zoom Level action inside View menu
Nate Graham [Sun, 1 Sep 2019 15:29:00 +0000 (09:29 -0600)]
Add Reset Zoom Level action inside View menu

Summary:
FEATURE: 409591
FIXED-IN: 19.12.0

Test Plan: {F7096397}

Reviewers: elvisangelaccio, shubham, #dolphin

Reviewed By: elvisangelaccio, #dolphin

Subscribers: broulik, cfeck, kfm-devel, kde-doc-english

Tags: #dolphin, #documentation

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

6 years agoMerge branch 'Applications/19.08'
Nate Graham [Mon, 9 Sep 2019 13:17:40 +0000 (07:17 -0600)]
Merge branch 'Applications/19.08'

6 years agoFix ascending/descending choosers getting unchecked when re-selecting the same sort...
Nate Graham [Sat, 24 Aug 2019 20:33:00 +0000 (14:33 -0600)]
Fix ascending/descending choosers getting unchecked when re-selecting the same sort order

Summary:
When you select the same sort order that's already selected, the currently-checked
sort order description (the human-readable ascending/descending items) gets unchecked
in `slotSortTriggered()` yet the ascending/descending items items only get checked in
`slotSortOrderChanged()`. Because the order hasn't gotten changed, neither one gets
checked again.

This patch fixes the problem by not unchecking them in the first place.

BUG: 411223
FIXED-IN: 19.08.2

Test Plan:
1. Right-click > Sort By > Click the currently-selected sort order
2. Right-click > Sort By > See that the item for the current ascending/descending setting has not been changed

Reviewers: elvisangelaccio, #dolphin

Reviewed By: elvisangelaccio, #dolphin

Subscribers: broulik, meven, kfm-devel

Tags: #dolphin

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

6 years agoGIT_SILENT: minor qstring optimization
Laurent Montel [Sun, 8 Sep 2019 07:33:41 +0000 (09:33 +0200)]
GIT_SILENT: minor qstring optimization

6 years agoUse large colorful category icons in Dolphin settings
Björn Feber [Fri, 6 Sep 2019 12:09:02 +0000 (14:09 +0200)]
Use large colorful category icons in Dolphin settings

Summary:
{F7324074}
Ref task T10165
Depends on D23749

Test Plan: Open the Dolphin settings dialog.

Reviewers: #dolphin, #vdg, ndavis, ngraham

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

Subscribers: ngraham, ndavis, kfm-devel, #vdg, #dolphin

Tags: #dolphin

Maniphest Tasks: T10165

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

6 years agoChange terminal panel icon to dialog-scripts
Noah Davis [Thu, 5 Sep 2019 15:30:06 +0000 (11:30 -0400)]
Change terminal panel icon to dialog-scripts

Summary: The old icon was a color icon, which does not match the style of other toolbar/menu buttons

Test Plan: {F7321334, size=full}{F7321319}

Reviewers: #dolphin, #vdg, ngraham

Reviewed By: #dolphin, #vdg, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

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

6 years agoUse better-named visible and hidden icons
Nate Graham [Wed, 4 Sep 2019 15:04:13 +0000 (09:04 -0600)]
Use better-named visible and hidden icons

6 years agoUnbreak context menu showing when right clicking on an empty area
Luca Beltrame [Wed, 4 Sep 2019 09:36:42 +0000 (11:36 +0200)]
Unbreak context menu showing when right clicking on an empty area

In D22149, a request was made to remove a variable assignment ("action",
on line 389 in src/dolphincontextmenu.cpp. However the change went too
far, and it actually removed the exec() call, not just the assignment
which should have stayed.

This resulted in the context menu not being shown at all.

Adding back exec(m_pos) at least allows for the context menu to show.

CCMAIL: nate@kde.org

6 years agoMerge branch 'Applications/19.08'
Elvis Angelaccio [Mon, 2 Sep 2019 21:18:33 +0000 (23:18 +0200)]
Merge branch 'Applications/19.08'

6 years agoFixing bugs in new folders in tabs feature
Alexander Saoutkin [Mon, 2 Sep 2019 21:15:08 +0000 (23:15 +0200)]
Fixing bugs in new folders in tabs feature

Summary:
Fixing bug where urls in secondary view containers would not be considered
for the open new folders in tabs feature.

Test Plan: Manual testing. Testing for no regressions. Testing that URL is found if in secondary view container

Reviewers: elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: kfm-devel, ngraham

Tags: #dolphin

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

6 years agoMaking sure that DBus objects are all created before the service
Alexander Saoutkin [Mon, 2 Sep 2019 21:13:52 +0000 (23:13 +0200)]
Making sure that DBus objects are all created before the service

Summary:
Currently the DBus service is created before the MainWindow DBus object is
created. This can cause hangs if another service makes calls to a a method
in an object that's not been initialised, when the service is already published.
This patch defers the creation of the service until all DBus objects are
created.

Test Plan:
Tested in KDevelop. Have "open new folders in tabs" feature enabled.
Open several folders with Dolphin at once. Before this patch
there would be noticeable hanging. With this patch all tabs instantly open with
no hanging.

Reviewers: elvisangelaccio, ngraham

Reviewed By: elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoFix places text when the URL has a trailing slash
Elvis Angelaccio [Sun, 1 Sep 2019 20:32:35 +0000 (22:32 +0200)]
Fix places text when the URL has a trailing slash

Summary: QUrl::fileName() returns an empty string if the URL ends with a slash.

Test Plan:
1. Run `dolphin /tmp` from command line
2. Right-click from viewport and click 'Add to Places'

Reviewers: ngraham

Subscribers: kfm-devel

Tags: #dolphin

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

6 years ago[Tab Bar] Resolve tab icon only if visible
Kai Uwe Broulik [Mon, 2 Sep 2019 07:13:56 +0000 (09:13 +0200)]
[Tab Bar] Resolve tab icon only if visible

Calling KIO::iconNameForUrl will determine mime type of the file potentially blocking.
Don't needless do it when the tab bar isn't visible.

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