]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
5 years agoMerge branch 'release/20.08' into master
Elvis Angelaccio [Sat, 5 Sep 2020 20:55:59 +0000 (22:55 +0200)]
Merge branch 'release/20.08' into master

5 years agoRevert "Set a better defaultDropAction for dragging"
Elvis Angelaccio [Sat, 5 Sep 2020 20:50:48 +0000 (22:50 +0200)]
Revert "Set a better defaultDropAction for dragging"

This reverts commit 4440e961a07aaee5b5da7c8967ff05de14808ad4.

BUG: 425757
BUG: 426196
FIXED-IN: 20.08.2

5 years agoClear services model after KNS entries changed
Alexander Lohnau [Sat, 5 Sep 2020 17:32:48 +0000 (17:32 +0000)]
Clear services model after KNS entries changed

We can not know if a service got deleted, so we clear
the model and reload the services. The issue that the entries are
not uninstalled has already been solved, this is just a patch to
fix the state of the UI.

CCBUG: 420312

5 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Thu, 3 Sep 2020 04:10:45 +0000 (06:10 +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"

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Thu, 3 Sep 2020 00:33:12 +0000 (02:33 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 2 Sep 2020 00:39:58 +0000 (02:39 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Tue, 1 Sep 2020 08:13:23 +0000 (10:13 +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"

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Tue, 1 Sep 2020 06:46:02 +0000 (08:46 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Tue, 1 Sep 2020 04:25:15 +0000 (06:25 +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"

5 years agoPort away from deprecated Qt::MidButton
Laurent Montel [Mon, 31 Aug 2020 19:24:03 +0000 (21:24 +0200)]
Port away from deprecated Qt::MidButton

5 years agoGIT_SILENT Update Appstream for new release
Christoph Feck [Mon, 31 Aug 2020 18:52:32 +0000 (20:52 +0200)]
GIT_SILENT Update Appstream for new release

5 years agoGIT_SILENT Update Appstream for new release
Christoph Feck [Mon, 31 Aug 2020 18:52:32 +0000 (20:52 +0200)]
GIT_SILENT Update Appstream for new release

(cherry picked from commit 6ffa7f460e397b48af7dc1651351e29f23883a58)

5 years agoGIT_SILENT Upgrade release service version to 20.08.1.
Christoph Feck [Mon, 31 Aug 2020 18:33:01 +0000 (20:33 +0200)]
GIT_SILENT Upgrade release service version to 20.08.1.

5 years agoDo not build KNS installer and KNS button on Windows
Alexander Lohnau [Wed, 26 Aug 2020 07:59:26 +0000 (09:59 +0200)]
Do not build KNS installer and KNS button on Windows

5 years agoAllow Open Terminal action on Windows
Alexander Lohnau [Wed, 26 Aug 2020 08:58:56 +0000 (10:58 +0200)]
Allow Open Terminal action on Windows

5 years agoMerge branch 'release/20.08'
Alexander Lohnau [Sun, 30 Aug 2020 16:49:22 +0000 (18:49 +0200)]
Merge branch 'release/20.08'

5 years agoFix file preview for desktop files with absolute icon paths
Alexander Lohnau [Tue, 23 Jun 2020 06:22:42 +0000 (08:22 +0200)]
Fix file preview for desktop files with absolute icon paths

BUG: 423326
FIXED-IN: 20.08.1

5 years agoText style fixes
Nikita Churaev [Wed, 26 Aug 2020 00:37:31 +0000 (03:37 +0300)]
Text style fixes

5 years agoMerge branch 'release/20.08' into master
Elvis Angelaccio [Tue, 25 Aug 2020 22:49:00 +0000 (00:49 +0200)]
Merge branch 'release/20.08' into master

5 years agoFix nullptr crash on Windows
Alexander Lohnau [Tue, 25 Aug 2020 14:15:31 +0000 (16:15 +0200)]
Fix nullptr crash on Windows

5 years agoOutput of licensedigger + manual cleanup afterwards.
Elvis Angelaccio [Tue, 25 Aug 2020 17:07:38 +0000 (17:07 +0000)]
Output of licensedigger + manual cleanup afterwards.

Unfortunately licensedigger does not strip the trailing * characters.
While at it, use a common style for all source files.

5 years agoChange group spacing from 18px to 12px
Nate Graham [Mon, 24 Aug 2020 18:35:08 +0000 (12:35 -0600)]
Change group spacing from 18px to 12px

This is the value used in QML-based software, so now Dolphin's form
layout settings dialogs look consistent.

5 years agoMerge branch 'release/20.08' into master
Elvis Angelaccio [Sun, 23 Aug 2020 21:54:23 +0000 (23:54 +0200)]
Merge branch 'release/20.08' into master

5 years agoFix 'show space' setting not being re-applied
Nazar Kalinowski [Sun, 23 Aug 2020 18:10:23 +0000 (21:10 +0300)]
Fix 'show space' setting not being re-applied

BUG: 425542

5 years agoPort KRun to OpenUrlJob
Ahmad Samir [Tue, 18 Aug 2020 08:43:58 +0000 (08:43 +0000)]
Port KRun to OpenUrlJob

In DolphinMainWindow, since KRun allows running executables by default, use
setRunExecutables(true) so as not to change the behaviour.

Remove the now redundant slotHandleUrlStatFinished, that whole StatJob
logic is now handled by OpenUrlJob.

Bump KF required version to 5.73, since that's where
OpenUrlJob::setShowOpenOrExecuteDialog was introduced.

5 years agoPort away from QWheelEvent::orientation()
Elvis Angelaccio [Thu, 28 May 2020 16:53:31 +0000 (18:53 +0200)]
Port away from QWheelEvent::orientation()

We are supposed to use QWheelEvent::angleDelta() instead. Upon an
horizontal/vertical scroll event, its `x()`/`y()` method will return a
value different from zero.

5 years agoMerge branch 'release/20.08'
Yuri Chornoivan [Sat, 8 Aug 2020 12:57:02 +0000 (15:57 +0300)]
Merge branch 'release/20.08'

5 years agoFix i18n
Yuri Chornoivan [Sat, 8 Aug 2020 12:34:17 +0000 (15:34 +0300)]
Fix i18n

5 years agoMerge branch 'master' of invent.kde.org:system/dolphin
Christoph Feck [Wed, 5 Aug 2020 07:43:32 +0000 (09:43 +0200)]
Merge branch 'master' of invent.kde.org:system/dolphin

5 years agoGIT_SILENT Update Appstream for new release
Christoph Feck [Wed, 5 Aug 2020 07:42:51 +0000 (09:42 +0200)]
GIT_SILENT Update Appstream for new release

(cherry picked from commit a499df21bcf6b636a0396aeb0d911dd1b8d2229d)

5 years agoGIT_SILENT Update Appstream for new release
Christoph Feck [Wed, 5 Aug 2020 07:42:51 +0000 (09:42 +0200)]
GIT_SILENT Update Appstream for new release

5 years agoGIT_SILENT Upgrade release service version to 20.08.0.
Christoph Feck [Wed, 5 Aug 2020 07:14:52 +0000 (09:14 +0200)]
GIT_SILENT Upgrade release service version to 20.08.0.

5 years agoMerge branch 'release/20.08'
Ismael Asensio [Tue, 4 Aug 2020 20:39:11 +0000 (22:39 +0200)]
Merge branch 'release/20.08'

5 years ago[search] Close tags menu after click when there is only one tag
Ismael Asensio [Fri, 31 Jul 2020 21:59:21 +0000 (23:59 +0200)]
[search] Close tags menu after click when there is only one tag

It stays open otherwise to allow checking/unchecking several tags at a time

BUG: 424873
FIXED-IN: 20.08

5 years agoMerge branch 'release/20.08' into master
Antonio Rojas [Sun, 2 Aug 2020 16:51:03 +0000 (18:51 +0200)]
Merge branch 'release/20.08' into master

5 years agoRemove MaximumSize entry from kdeglobals when settings the preview file size limit...
Antonio Rojas [Sat, 1 Aug 2020 16:42:36 +0000 (18:42 +0200)]
Remove MaximumSize entry from kdeglobals when settings the preview file size limit to "No limit"

Instead of setting it to 0, which KIO's PreviewJob interprets as "No previews", breaking previews in konsole and Plasma desktop

BUG: 424403

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Sun, 2 Aug 2020 05:59:53 +0000 (07:59 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Sun, 2 Aug 2020 00:29:12 +0000 (02:29 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoGIT_SILENT Upgrade release service version to 20.07.90.
Christoph Feck [Fri, 31 Jul 2020 21:07:44 +0000 (23:07 +0200)]
GIT_SILENT Upgrade release service version to 20.07.90.

5 years agoIcon: Update with latest breeze icon
Timothée Ravier [Sat, 11 Jul 2020 11:01:30 +0000 (13:01 +0200)]
Icon: Update with latest breeze icon

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Thu, 23 Jul 2020 00:35:24 +0000 (02:35 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoMerge branch 'release/20.08'
Nate Graham [Sun, 19 Jul 2020 18:23:25 +0000 (12:23 -0600)]
Merge branch 'release/20.08'

5 years agoFix "Show folders, tabs, and window state from last time" feature
Antonio Rojas [Sun, 19 Jul 2020 14:02:02 +0000 (08:02 -0600)]
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

5 years agoFix deprecated knsrc file location
Alexander Lohnau [Fri, 17 Jul 2020 17:31:03 +0000 (19:31 +0200)]
Fix deprecated knsrc file location

This fixes the `kf.newstuff.core: Using a deprecated location for the knsrc file "servicemenu.knsrc"` warning.

5 years agoFix deprecated knsrc file location
Alexander Lohnau [Fri, 17 Jul 2020 17:31:03 +0000 (19:31 +0200)]
Fix deprecated knsrc file location

This fixes the `kf.newstuff.core: Using a deprecated location for the knsrc file "servicemenu.knsrc"` warning.

5 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Wed, 15 Jul 2020 03:52:19 +0000 (05:52 +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"

5 years agoUse camelcase includes (scripted)
Laurent Montel [Mon, 13 Jul 2020 12:02:48 +0000 (14:02 +0200)]
Use camelcase includes (scripted)

5 years agoFix selection rect after porting from QFontMetrics::width()
Ismael Asensio [Sun, 12 Jul 2020 21:28:02 +0000 (21:28 +0000)]
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

5 years agoFix selection rect after porting from QFontMetrics::width()
Ismael Asensio [Sun, 12 Jul 2020 21:28:02 +0000 (21:28 +0000)]
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

5 years agoAdd support to tags: scheme in DolphinQuery
Ismael Asensio [Sun, 14 Jun 2020 11:41:29 +0000 (13:41 +0200)]
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)

5 years agoGIT_SILENT Upgrade release service version to 20.11.70.
Albert Astals Cid [Sat, 11 Jul 2020 10:20:59 +0000 (12:20 +0200)]
GIT_SILENT Upgrade release service version to 20.11.70.

5 years agoGIT_SILENT Upgrade release service version to 20.07.80.
Albert Astals Cid [Sat, 11 Jul 2020 09:48:48 +0000 (11:48 +0200)]
GIT_SILENT Upgrade release service version to 20.07.80.

5 years agoPort away from QLinkedList
Elvis Angelaccio [Sun, 5 Jul 2020 16:21:20 +0000 (18:21 +0200)]
Port away from QLinkedList

`QLinkedList` has been deprecated and should not be used in new code. Port
to `std::list` instead.

5 years ago[search] Fix corner cases when using quotes in filenames
Ismael Asensio [Sat, 4 Jul 2020 14:23:24 +0000 (16:23 +0200)]
[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\"\""
```

5 years ago[search] Do not update text input when it has focus
Ismael Asensio [Sat, 4 Jul 2020 13:42:55 +0000 (15:42 +0200)]
[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

5 years agoMerge branch 'release/20.04'
Elvis Angelaccio [Sun, 5 Jul 2020 15:26:52 +0000 (17:26 +0200)]
Merge branch 'release/20.04'

5 years agoWrite correct value for "Open in application" script execution setting
Wolfgang Bauer [Tue, 30 Jun 2020 18:01:39 +0000 (18:01 +0000)]
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

5 years agoGIT_SILENT Update Appstream for new release
Christoph Feck [Fri, 3 Jul 2020 20:53:42 +0000 (22:53 +0200)]
GIT_SILENT Update Appstream for new release

(cherry picked from commit a91d1db06293f00382b88150a29594642d5217c8)

5 years agoGIT_SILENT Update Appstream for new release
Christoph Feck [Fri, 3 Jul 2020 20:53:42 +0000 (22:53 +0200)]
GIT_SILENT Update Appstream for new release

5 years agoGIT_SILENT Upgrade release service version to 20.04.3.
Christoph Feck [Fri, 3 Jul 2020 20:29:05 +0000 (22:29 +0200)]
GIT_SILENT Upgrade release service version to 20.04.3.

5 years ago## Summary
Yann Holme-Nielsen [Mon, 29 Jun 2020 22:27:33 +0000 (22:27 +0000)]
## 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

5 years agoMerge branch 'release/20.04'
Alexander Lohnau [Tue, 23 Jun 2020 15:42:06 +0000 (17:42 +0200)]
Merge branch 'release/20.04'

5 years agoFix file preview for desktop files with absolute icon paths
Alexander Lohnau [Tue, 23 Jun 2020 06:22:42 +0000 (08:22 +0200)]
Fix file preview for desktop files with absolute icon paths

BUG: 423326

5 years agoExpand DolphinQuery to support different Url schemes
Ismael Asensio [Mon, 22 Jun 2020 12:33:29 +0000 (12:33 +0000)]
Expand DolphinQuery to support different Url schemes

5 years agoGeneralize Player protocol support
Kai Uwe Broulik [Mon, 8 Jun 2020 20:45:27 +0000 (22:45 +0200)]
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

5 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Thu, 18 Jun 2020 06:34:48 +0000 (08:34 +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"

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Thu, 18 Jun 2020 05:20:24 +0000 (07:20 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Thu, 18 Jun 2020 03:48:38 +0000 (05:48 +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"

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Thu, 18 Jun 2020 00:28:52 +0000 (02:28 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Wed, 17 Jun 2020 14:57:19 +0000 (16:57 +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"

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 17 Jun 2020 13:40:57 +0000 (15:40 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Wed, 17 Jun 2020 12:16:01 +0000 (14:16 +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"

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 17 Jun 2020 09:41:34 +0000 (11:41 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoPlaces: Use Solid::Device::DisplayName for DisplayRole
Méven Car [Tue, 16 Jun 2020 17:37:08 +0000 (19:37 +0200)]
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

5 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Sat, 13 Jun 2020 03:34:06 +0000 (05:34 +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"

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Sat, 13 Jun 2020 00:21:10 +0000 (02:21 +0200)]
GIT_SILENT made messages (after extraction)

5 years agodoc: Document 'Skip local previews' option
Yuri Chornoivan [Wed, 10 Jun 2020 05:50:08 +0000 (08:50 +0300)]
doc: Document 'Skip local previews' option

5 years agoProvide ability to configure size cut-off for local file previews
Gastón Haro [Tue, 9 Jun 2020 17:03:30 +0000 (11:03 -0600)]
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

5 years agoGIT_SILENT Update Appstream for new release
Christoph Feck [Mon, 8 Jun 2020 17:47:51 +0000 (19:47 +0200)]
GIT_SILENT Update Appstream for new release

(cherry picked from commit 9e3c8a06ee2f30ae68c36c018f817ce2e481cbb9)

5 years agoGIT_SILENT Update Appstream for new release
Christoph Feck [Mon, 8 Jun 2020 17:47:51 +0000 (19:47 +0200)]
GIT_SILENT Update Appstream for new release

5 years agoGIT_SILENT Upgrade release service version to 20.04.2.
Christoph Feck [Mon, 8 Jun 2020 17:25:55 +0000 (19:25 +0200)]
GIT_SILENT Upgrade release service version to 20.04.2.

5 years agoStatus bar: Hide the space free bar when size is unknown
Méven Car [Tue, 12 May 2020 06:26:11 +0000 (08:26 +0200)]
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

5 years agoDetect animated format using mimeType instead of file path
Ismael Asensio [Sat, 6 Jun 2020 16:40:03 +0000 (18:40 +0200)]
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`)

5 years agoMerge branch 'release/20.04'
Nate Graham [Wed, 3 Jun 2020 17:51:01 +0000 (11:51 -0600)]
Merge branch 'release/20.04'

5 years agoShow progress when duplicating items
Nate Graham [Mon, 1 Jun 2020 15:58:25 +0000 (09:58 -0600)]
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

5 years agoFix FIFO usage
Elvis Angelaccio [Sun, 31 May 2020 21:43:46 +0000 (23:43 +0200)]
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.

5 years ago[DolphinStatusBar] Fix free space info height with bigger fonts
Ahmad Samir [Sun, 31 May 2020 07:04:07 +0000 (09:04 +0200)]
[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.

5 years agoPrevents warnings
Méven Car [Fri, 29 May 2020 17:35:02 +0000 (19:35 +0200)]
Prevents warnings

Warnings such as :
kf5.kio.core: Invalid URL: QUrl("")

It happened for instance with recentlyused:/ ioslave

5 years agoPrevents showing StatJob Progress info
Méven Car [Sat, 30 May 2020 11:54:44 +0000 (13:54 +0200)]
Prevents showing StatJob Progress info

BUG: 422121
Was introduced in ac234a9c55aed509b385ef03835a6d0f563e6a22

5 years agoPort away from deprecated QFontMetrics::width()
Elvis Angelaccio [Thu, 28 May 2020 20:40:57 +0000 (22:40 +0200)]
Port away from deprecated QFontMetrics::width()

While the documention says to port to QFontMetrics::horizontalAdvance(),
what we actually need is not the horizontal advance, but the width of
the text. So we need to port to QFontMetrics::boundingRect().width().

Quoting from https://kdepepo.wordpress.com/2019/08/05/about-deprecation-of-qfontmetricswidth/:

"Since it was not clear from the confusingly named function QFontMetrics::width()
that it actually returned the horizontal advance, instead of the bounding width,
this method is now obsolete.
You must port to either QFontMetrics::horizontalAdvance() or QFontMetrics::boundingRect().width().

Please make sure you are aware of the difference, and do not port
blindly. I am pretty sure that in most cases
QFontMetrics::boundingRect() is what you want, unless you are writing
custom text shaping/layouting code. Using the wrong function can cause
clipped text or text that suddenly wraps to the next line despite
calculating the width that it needs."

5 years agoNon-functional change: consistent indentation
Adriaan de Groot [Thu, 28 May 2020 21:42:23 +0000 (23:42 +0200)]
Non-functional change: consistent indentation

Use 4-space indents consistently, rather than a mix of 2- and 4-.

5 years agoMake ruby, and Gem:test-unit, optional
Adriaan de Groot [Thu, 28 May 2020 21:39:52 +0000 (23:39 +0200)]
Make ruby, and Gem:test-unit, optional

While this reduces test-coverage in cases where the user doesn't have
Ruby or the testing gem installed, it at least allows us to get
through configure and build without disabling **all** testing.

5 years agoPort to non-deprecated variant of QPixmapCache::find()
Elvis Angelaccio [Thu, 28 May 2020 21:04:04 +0000 (23:04 +0200)]
Port to non-deprecated variant of QPixmapCache::find()

We need to pass the pixmap by address, not by reference.

5 years agoAdd some missing const qualifiers
Elvis Angelaccio [Thu, 28 May 2020 20:42:40 +0000 (22:42 +0200)]
Add some missing const qualifiers

5 years agoDrop incorrect emit keywork
Elvis Angelaccio [Thu, 28 May 2020 20:09:03 +0000 (22:09 +0200)]
Drop incorrect emit keywork

This is not a signal.

5 years agoFix clazy-range-loop warning
Elvis Angelaccio [Thu, 28 May 2020 20:02:03 +0000 (22:02 +0200)]
Fix clazy-range-loop warning

5 years agoPort away from deprecated qrand()
Elvis Angelaccio [Thu, 28 May 2020 19:59:39 +0000 (21:59 +0200)]
Port away from deprecated qrand()

5 years agoUpdate README.md: fixed typo in subheading (upper case)
hormet yiltiz [Wed, 27 May 2020 05:04:55 +0000 (05:04 +0000)]
Update README.md: fixed typo in subheading (upper case)

5 years agoKDirectoryContentsCounter: scan first path not in cache
Méven Car [Mon, 25 May 2020 15:31:51 +0000 (15:31 +0000)]
KDirectoryContentsCounter: scan first path not in cache

Use a secondary QLinkedList to store the priority path.

5 years agoMerge branch 'release/20.04'
Nate Graham [Sun, 24 May 2020 14:26:34 +0000 (08:26 -0600)]
Merge branch 'release/20.04'