Commit graph

6048 commits

Author SHA1 Message Date
Laurent Montel 98dec73ecc Don't use nullptr for flag. Just use default argument here 2020-01-06 13:30:12 +01:00
Christoph Feck a41d0affc0 GIT_SILENT Upgrade KDE Applications version to 19.12.1. 2020-01-05 05:33:19 +01:00
Ismael Asensio c331d70685 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
2019-12-29 21:05:45 +01:00
Ismael Asensio 732697d0d6 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
2019-12-26 19:30:08 +01:00
Ismael Asensio 4dc362db1e 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
2019-12-26 19:25:55 +01:00
Laurent Montel 984e8686e8 Don't use nullptr/0 as flags (deprecated in qt5.15) 2019-12-26 14:23:45 +01:00
Elvis Angelaccio 61edac1842 Use non-deprecated install dir variables from ECM 2019-12-24 19:30:44 +01:00
Elvis Angelaccio 224028d931 Rename variables to improve readability of Dolphin::attachToExistingInstance
Services and interfaces are not the same thing. Also clarify the name of
dbus replies.
2019-12-24 17:33:55 +01:00
Kai Uwe Broulik 151a17e048 [DolphinContextMenu] Use contains check for scheme again
Regression introduced in 8b0c12a59c
There's "filenamesearch" and "baloosearch".

Differential Revision: https://phabricator.kde.org/D26169
2019-12-23 11:44:58 +01:00
Piotr Henryk Dabrowski 6cb4d81a02 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
2019-12-21 12:28:06 -07:00
Nate Graham 0804983685 Merge branch 'release/19.12' 2019-12-21 11:54:53 -07:00
Nate Graham 403de19d9c 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 90beb4a5e3, 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
2019-12-21 11:54:46 -07:00
Ismael Asensio 616d4e6bdd 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
2019-12-21 19:17:18 +01:00
l10n daemon script 8c386bdb47 GIT_SILENT made messages (after extraction) 2019-12-20 02:29:14 +01:00
Laurent Montel 377484aa00 GIT_SILENT: Port deprecated QSet::toList method 2019-12-19 14:39:43 +01:00
Yuri Chornoivan 49ab4e06b1 Fix spacing 2019-12-16 09:56:59 +02:00
l10n daemon script 837936dd9b 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"
2019-12-16 05:22:38 +01:00
Ismael Asensio 8e80c1d6dc [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
2019-12-15 17:28:38 +01:00
Nate Graham f622956208 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
2019-12-15 14:17:49 +01:00
Jonathan Riddell 7bf48cbb4d Change KDE_APPLICATIONS_VERSION to RELEASE_SERVICE_VERSION https://phabricator.kde.org/T11933
GIT_SILENT
2019-12-10 16:39:11 +00:00
Antonio Rojas 8ffc72e87f Merge branch 'release/19.12' 2019-12-09 23:23:07 +01:00
Antonio Rojas 588965fecc Merge branch 'release/19.12' of git://anongit.kde.org/dolphin into release/19.12 2019-12-09 23:22:48 +01:00
Antonio Rojas faa37a6138 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
2019-12-09 23:21:51 +01:00
Nate Graham 9c7e196bdd Merge branch 'release/19.12' 2019-12-06 12:42:31 -07:00
Nate Graham 2310e33b7a Correct invalid homepage URL
BUG: 414901
FIXED-IN: 19.12.1
2019-12-06 12:41:33 -07:00
Laurent Montel 31dd81bb0c Make it compile against last kf5 version without deprecated methods 2019-12-06 13:31:43 +01:00
Nate Graham 69838a1cdd 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
2019-12-05 15:53:19 -07:00
Christoph Feck 5b3ecd2766 Update Appstream for new release 2019-12-05 21:59:20 +01:00
Christoph Feck 5ed5b11666 GIT_SILENT Upgrade KDE Applications version to 19.12.0. 2019-12-05 20:43:17 +01:00
Méven Car 8b0c12a59c 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
2019-12-02 13:24:36 +01:00
David Faure 89d53b98c7 GIT_SILENT remove unused include 2019-12-02 00:44:30 +01:00
Elvis Angelaccio 26f0e55f84 Merge branch 'release/19.12' 2019-11-28 22:36:44 +01:00
Ismael Asensio 6776fbc947 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
2019-11-28 22:08:13 +01:00
Elvis Angelaccio 089a05b4ed 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
2019-11-28 21:52:16 +01:00
Albert Astals Cid a08d498182 GIT_SILENT Upgrade KDE Applications version to 19.11.90. 2019-11-26 23:23:31 +01:00
Yuri Chornoivan fc4fd11c4d Fix link: ui.html -> menus.html 2019-11-25 22:00:41 +02:00
Nicolas Fella ff9ae28445 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
2019-11-25 20:54:12 +01:00
Elvis Angelaccio 82e366f024 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
2019-11-24 19:06:36 +01:00
David Faure e0085fb280 Merge remote-tracking branch 'origin/release/19.12' 2019-11-23 15:14:30 +01:00
David Faure f0122038f9 GIT_SILENT remove unused include 2019-11-23 15:14:19 +01:00
Noah Davis c33808b125 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
2019-11-19 16:26:47 -05:00
Laurent Montel 373c3ebc56 Port deprecated methods 2019-11-19 14:02:30 +01:00
Elvis Angelaccio 6bcdb62429 Merge branch 'release/19.12' 2019-11-17 18:54:40 +01:00
Elvis Angelaccio 77e705ef3c Fix dolphin homepage in the appstream metadata 2019-11-17 18:53:44 +01:00
Piotr Henryk Dabrowski 537dc7864a [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
2019-11-17 18:15:26 +01:00
Yuri Chornoivan 808339bff6 Use URLs with transport encryption 2019-11-16 18:53:28 +02:00
Ismael Asensio 0ba9e8bbc0 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
2019-11-14 22:51:22 +01:00
Ismael Asensio adfc098aa7 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
2019-11-13 22:53:18 +01:00
Elvis Angelaccio fc5546d03b 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.
2019-11-13 22:41:48 +01:00
Ismael Asensio 8d92c8be7f 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
2019-11-13 22:21:07 +01:00