Commit graph

6496 commits

Author SHA1 Message Date
Christoph Feck 36d4460976 GIT_SILENT Upgrade release service version to 20.07.90. 2020-07-31 23:07:44 +02:00
Timothée Ravier 6faaf3e9e8
Icon: Update with latest breeze icon 2020-07-26 12:11:13 +02:00
l10n daemon script e25d3c9bba GIT_SILENT made messages (after extraction) 2020-07-23 02:35:24 +02:00
Nate Graham bb7bdbc911 Merge branch 'release/20.08' 2020-07-19 12:23:25 -06:00
Antonio Rojas ce981c3e4a Fix "Show folders, tabs, and window state from last time" feature
We were using the DBus interface before declaring it, oops.

BUG: 422300
FIXED-IN: 20.08.0
2020-07-19 08:03:56 -06:00
Alexander Lohnau 00e4571e3c Fix deprecated knsrc file location
This fixes the `kf.newstuff.core: Using a deprecated location for the knsrc file "servicemenu.knsrc"` warning.
2020-07-18 16:43:43 +02:00
Alexander Lohnau be182ae30b Fix deprecated knsrc file location
This fixes the `kf.newstuff.core: Using a deprecated location for the knsrc file "servicemenu.knsrc"` warning.
2020-07-17 19:31:03 +02:00
l10n daemon script 1995668f8e 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"
2020-07-15 05:52:19 +02:00
Laurent Montel 675699dfc0 Use camelcase includes (scripted) 2020-07-13 14:03:00 +02:00
Ismael Asensio bf2eb0d69d Fix selection rect after porting from QFontMetrics::width()
After porting from QFontMetrics::width() to QFontMetrics::boundigRect().width() in system/dolphin!10 we have a visual bug on selection rects, that can be seen on details and compact modes.

While from https://kdepepo.wordpress.com/2019/08/05/about-deprecation-of-qfontmetricswidth/ the use of `boundingRect()` would seem the right option to use (and I struggle to get the difference between the two methods when applied to a whole string and not a single char), in this case the `horizontalAdvance()` seems to return the value we need.

BUG: 421973
FIXED-IN: 20.07.70
2020-07-12 23:30:14 +02:00
Ismael Asensio 76a46fd909 Fix selection rect after porting from QFontMetrics::width()
After porting from QFontMetrics::width() to QFontMetrics::boundigRect().width() in system/dolphin!10 we have a visual bug on selection rects, that can be seen on details and compact modes.

While from https://kdepepo.wordpress.com/2019/08/05/about-deprecation-of-qfontmetricswidth/ the use of `boundingRect()` would seem the right option to use (and I struggle to get the difference between the two methods when applied to a whole string and not a single char), in this case the `horizontalAdvance()` seems to return the value we need.

BUG: 421973
FIXED-IN: 20.07.70
2020-07-12 21:28:02 +00:00
Ismael Asensio 2fc117703f Add support to tags: scheme in DolphinQuery
It allows to start a search from a `tags:/mytag/` view.
The use case is to refine a search on additional terms (another tags,
ratings, etc)
2020-07-11 18:33:58 +00:00
Albert Astals Cid 2463a35f3e GIT_SILENT Upgrade release service version to 20.11.70. 2020-07-11 12:20:59 +02:00
Albert Astals Cid ee6e1e0308 GIT_SILENT Upgrade release service version to 20.07.80. 2020-07-11 11:48:48 +02:00
Elvis Angelaccio 85241a9246 Port away from QLinkedList
`QLinkedList` has been deprecated and should not be used in new code. Port
to `std::list` instead.
2020-07-06 07:16:27 +00:00
Ismael Asensio ee97db4dfc [search] Fix corner cases when using quotes in filenames
The `filename` term in a search query is enclosed into quotes.
As the user can have additional quotes in the search term, there were several
corner cases where the parsing would fail to correctly split the terms

New test cases have been added to cover this possibility
Previous tests still passes to avoid regressions

BEFORE:
```
(filename/quoted) Compared values are not the same
Actual   (query.text()): "xyz\"\""
Expected (expectedText): "\"abc xyz\""

(filename/mixed) Compared values are not the same
Actual   (query.text()): "xyz\" tuv\""
Expected (expectedText): "\"abc xyz\" tuv"

(content+filename/quoted) Compared values are not the same
Actual   (query.text()): "abc xyz xyz\"\""
Expected (expectedText): "abc xyz filename:\"\"abc xyz\"\""
```
2020-07-05 17:15:31 +00:00
Ismael Asensio ec03435022 [search] Do not update text input when it has focus
When the user is entering a search term, a delayed search will be
emmited after a few seconds. This means updating the search URL, which
in turn gets parsed and reflected back on the search input.

To avoid interrupting the user input flow and unexpectedly move the
cursor to the end, let's update the input search box only when it
doesn't have the focus.

It's still updated on other interactions such as changing the search
options or clicking a saved search on the places panel.

BUG: 423328
FIXED-IN: 20.08
2020-07-05 17:14:19 +00:00
Elvis Angelaccio 275d7b537d Merge branch 'release/20.04' 2020-07-05 17:26:52 +02:00
Wolfgang Bauer 7a6956da99 Write correct value for "Open in application" script execution setting
KIO actually uses "alwaysAsk", "execute", and "open" as possible values.

When reading the setting, map unknown values to "open" like KIO does.
That also provides compatibility with older dolphin versions.

BUG: 421294
FIXED-IN: 20.04.3
2020-07-05 15:22:47 +00:00
Christoph Feck bbae04bc4e GIT_SILENT Update Appstream for new release
(cherry picked from commit a91d1db062)
2020-07-03 22:53:42 +02:00
Christoph Feck a91d1db062 GIT_SILENT Update Appstream for new release 2020-07-03 22:53:42 +02:00
Christoph Feck 6847701661 GIT_SILENT Upgrade release service version to 20.04.3. 2020-07-03 22:29:05 +02:00
Yann Holme-Nielsen 86e3b82efb ## Summary
* Adds a "Copy location" item, after the "Copy" Context item and Edit Menu, which will attempt to copy the path of the fist item into clipboard.

## Reasoning
Most File Managers have this option through one or another way.
Also using the default Copy option often results in different behaviour depending on the target software, Konsole will take the path. Other Programs will use the URI. Which ultimately could lead to non optimal User Experience.

## Notes
* Should the target file **not** be on a local hard drive, this fallback to using the remote URL, feedback is wanted on that matter.

FEATURE: 407004
2020-06-29 22:27:33 +00:00
Alexander Lohnau d1baf3398e Merge branch 'release/20.04' 2020-06-23 17:42:06 +02:00
Alexander Lohnau 37df39b93b Fix file preview for desktop files with absolute icon paths
BUG: 423326
2020-06-23 08:22:42 +02:00
Ismael Asensio f57ee4b64d Expand DolphinQuery to support different Url schemes 2020-06-22 12:33:29 +00:00
Kai Uwe Broulik f2c09faf00 Generalize Player protocol support
In preparation for AFC support in KFilePlacesModel.
This needs to go into stable since otherwise once Solid announces
AFC devices Dolphin would see them but try to open them as MTP URL
2020-06-22 09:51:35 +00:00
l10n daemon script db408cf09d 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"
2020-06-18 08:34:48 +02:00
l10n daemon script 5a9a644fb8 GIT_SILENT made messages (after extraction) 2020-06-18 07:20:24 +02:00
l10n daemon script aea6128fe6 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"
2020-06-18 05:48:38 +02:00
l10n daemon script af93215bfd GIT_SILENT made messages (after extraction) 2020-06-18 02:28:52 +02:00
l10n daemon script d5c1ac07db 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"
2020-06-17 16:57:19 +02:00
l10n daemon script 418b225f89 GIT_SILENT made messages (after extraction) 2020-06-17 15:40:57 +02:00
l10n daemon script 9c43e3de7d 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"
2020-06-17 14:16:01 +02:00
l10n daemon script d6f95521b3 GIT_SILENT made messages (after extraction) 2020-06-17 11:41:34 +02:00
Méven Car c81927651a Places: Use Solid::Device::DisplayName for DisplayRole
Summary:
BUG: 415281
FIXED-IN: 20.08
Counter-part of D26113

Test Plan:
Before:
{F8215025}
After:
{F8215027}

Reviewers: ngraham, #dolphin

Reviewed By: ngraham, #dolphin

Subscribers: broulik, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26114
2020-06-16 19:37:18 +02:00
l10n daemon script 799c532d23 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"
2020-06-13 05:34:06 +02:00
l10n daemon script 85f5156a33 GIT_SILENT made messages (after extraction) 2020-06-13 02:21:10 +02:00
Yuri Chornoivan 9406ce29ca doc: Document 'Skip local previews' option 2020-06-10 08:50:08 +03:00
Gastón Haro 0f0d14d4c2 Provide ability to configure size cut-off for local file previews
Summary:
FileWidgets read from kdeglobals the property "MaximumSize" under "PreviewSettings" to decide if a preview will be generated for that file.
There is no current GUI to change that file size limit. On the other hand Dolphin ignores it.

This patch aims to fix that by adding new configuration options to Dolphin. That is a new spinbox in Dolphin settings under General -> Previews tab.

Test Plan:
1 - Set up a local folder with 2 jpg images of less and more than 1 MB respectively.
2 - Go to Dolphin Preferences. General -> Previews and check "JPEG Images" from
    the list. And set "Skip previews for files above:" to 1MB.
3 - Navigate to the afore mentioned folder. Only the image of size less than 1 MB should
    show a preview.

BUG: 331240

Reviewers: ngraham, #dolphin, meven, elvisangelaccio

Reviewed By: ngraham, #dolphin, meven, elvisangelaccio

Subscribers: cfeck, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28402
2020-06-09 11:05:55 -06:00
Christoph Feck ecc8b18b2a GIT_SILENT Update Appstream for new release
(cherry picked from commit 9e3c8a06ee)
2020-06-08 19:47:52 +02:00
Christoph Feck 9e3c8a06ee GIT_SILENT Update Appstream for new release 2020-06-08 19:47:51 +02:00
Christoph Feck a84c0f4944 GIT_SILENT Upgrade release service version to 20.04.2. 2020-06-08 19:25:55 +02:00
Méven Car bf4388c755 Status bar: Hide the space free bar when size is unknown
Summary:
BUG: 420027
BUG: 422226
FIXED-IN: 20.08

Test Plan: {F8312398}

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

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

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29213
2020-06-08 07:49:45 +02:00
Ismael Asensio f7a3318fa5 Detect animated format using mimeType instead of file path
This allows to extend the functionality to non-local files and avoids a warning
on such files (`QFSFileEngine::open: No file name specified`)
2020-06-06 18:40:03 +02:00
Nate Graham f987a1c404 Merge branch 'release/20.04' 2020-06-03 11:51:01 -06:00
Nate Graham 70b3f61e1e Show progress when duplicating items
For unknown reasons, when I implemented this feature, I turned off
progress notifications. I don't think this makes any sense, and we just
got a bug report about it.

Accordingly, this patches turns on progress notifications.

BUG: 422335
FIXED-IN: 20.04.2
2020-06-01 09:58:25 -06:00
Elvis Angelaccio c16f777b28 Fix FIFO usage
`m_propriorityQueue` and `m_queue` are used as FIFO queues, so we need
to use `takeFirst()` instead of `takeLast()` when removing elements
from the queue.

While at it, add a comment so that we will remember these are FIFO
queues.
2020-05-31 23:45:07 +02:00
Ahmad Samir 664f97ff0d [DolphinStatusBar] Fix free space info height with bigger fonts
When the font height is more than the zoom slider height, use the former
to set the fixed height of the free space widget on the status bar.
Otherwise the text is cut-off.

This works with Breeze, Oxygen and Fusion styles.
2020-05-31 21:30:22 +00:00
Méven Car 770d083182 Prevents warnings
Warnings such as :
kf5.kio.core: Invalid URL: QUrl("")

It happened for instance with recentlyused:/ ioslave
2020-05-31 21:19:09 +00:00