Commit graph

6233 commits

Author SHA1 Message Date
Ahmad Samir aa12f9ec1d Don't trigger rubberband with back/foward mouse buttons
Right now the back/foward mouse buttons work, but also if you hold either
of them and move the mouse the rubberband selection is triggered.

This is the correct fix (instead of commit d0c71a1435), to match the
original code before the touch events patches,  we need to check the
back/foward buttons after mouseButtonPressed is emitted and before
triggering the rubberbad selection.
2020-10-04 19:41:40 +00:00
Nate Graham 6cf628cbd0 Don't warn when closing multiple tabs if restoring window state
When we're using the "restore window state" feature, there's no need to
warn when closing multiple tabs, because they're saved and you can just
re-open the window.
2020-10-03 09:39:16 -06:00
Christoph Feck 3d8bb6c385 GIT_SILENT Update Appstream for new release
(cherry picked from commit 38f32d5232)
2020-10-03 14:10:20 +02:00
Christoph Feck 38f32d5232 GIT_SILENT Update Appstream for new release 2020-10-03 14:10:19 +02:00
l10n daemon script e779e6af1a GIT_SILENT made messages (after extraction) 2020-10-02 08:21:10 +02:00
l10n daemon script f1a1711ec6 GIT_SILENT made messages (after extraction) 2020-10-02 02:29:19 +02:00
Elvis Angelaccio 041d6a4bd8 Fix build failure after last commit 2020-09-26 17:12:39 +02:00
Steffen Hartleib 81cf9f0375 Allow interaction with folder/files with the stylus again
This Patch works for Wayland and X.

BUG: 426582
2020-09-26 14:53:57 +00:00
l10n daemon script 71bc4498a3 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-09-24 10:10:10 +02:00
Jonathan Marten b02046c548 Select/Unselect dialogue: Retain a history of entries made there
It's a very useful facilitity, and having a history of entries and being
able to recall earlier ones makes it even more useful for repetitive
operations.
2020-09-23 11:07:29 +00:00
l10n daemon script 06d629ec6e 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-09-23 06:39:00 +02:00
Nate Graham 15928112ce Make "Show hidden files" action follow HIG
The action is a toggle action, for which the HIG prescribes that the
text should describe the action's checked state, and neither the text
nor the icon should change when the action is checked. Other toggle
actions in Dolphin follow these rules, but this one does not.

This commit makes the action follow those rules.
2020-09-22 20:22:43 +00:00
Ahmad Samir 9b83378c08 Check protocol Class before creating a StatJob
StatJob::mostLocalUrl only works with ":local" protocols, adjust the code
accordingly.

Make the code async.

Remove activeContainerLocalPath() method as it isn't needed anymore.

Drive-by change: minimum required version of Qt should be 5.12 because
that's what KF >= 5.73 already requires.
2020-09-20 21:29:23 +00:00
Ahmad Samir d0c71a1435 Fix mouse back/forward buttons
We need to emit mouseButtonPressed (now in the onPress method) before the
check needed to not select items on back/foward mouse button press events.
2020-09-20 18:38:29 +02:00
Alexander Lohnau 827b79f5c8 Exclude trash settings from windows 2020-09-20 10:11:37 +02:00
l10n daemon script a32cb1c915 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-09-20 09:20:49 +02:00
Ayushmaan jangid bb85b6267a Fix unused variable warning 2020-09-18 17:21:37 +00:00
l10n daemon script 65c2d95a7d 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-09-14 09:58:23 +02:00
l10n daemon script 1d47e96913 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-09-14 06:15:19 +02:00
l10n daemon script 7d3e9f726b GIT_SILENT made messages (after extraction) 2020-09-14 02:33:22 +02:00
Ahmad Samir b3c815d615 Fix style, not space between method name and (; improve wording
GIT_SILENT
2020-09-13 22:14:34 +02:00
Steffen Hartleib d7b33b76a1 Improve Touch support
With this patch dolphin now supports the following touch gestures:

* Tap gesture to interact/open with directories, files and so on
* TapAndHold and release gesture for access to the context menu (main window, panel folder, places and information)
* TapAndHold and moving gesture for drag and drop action (main windows, panel folder and places)
* pinch gesture for zoom in main window
* kinetic scrolling (QScroller) for main window, panel folder, panel places, panel information, setting preview and service
* two fingers swipe gesture to left, right and up as shortcut to navigate back, forward and up
* two finger tap gesture to toggle item selection, similar to Ctrl and left mouse click

FEATURE: 385066
FIXED-IN: 20.11.80

 You are currently rebasing branch 'touch' on '85241a924'.
2020-09-13 18:53:32 +00:00
Ayushmaan jangid d899c2b401 Fix wreorder warning 2020-09-13 17:52:09 +00:00
Ahmad Samir 2abf1c9ddb TerminalPanel: StatJob::mostLocalUrl only works with ":local" protocols
StatJob::mostLocalUrl was changed to cancel the job automatically if the
protocol Class isn't ":local", mostLocalUrl only makes sense with ioslaves
that actually set UDS_LOCAL_PATH (which should have calss ":local").

I tested that kio-fuse still works, when having the terminal panel open and
changing direcotries in Dolphin, with an sftp:// server.
2020-09-13 16:49:43 +02:00
Carl Schwan ef68a41250 Update org.kde.dolphin.appdata.xml homepage url 2020-09-13 06:53:44 +00:00
Alexander Lohnau c31b08cf61 Do not build KCMs on windows 2020-09-10 22:37:21 +00:00
l10n daemon script 214b017266 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-09-10 10:12:36 +02:00
l10n daemon script ae5ac1dbb8 GIT_SILENT made messages (after extraction) 2020-09-10 08:53:28 +02:00
l10n daemon script 98acc7f193 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-09-10 06:35:50 +02:00
l10n daemon script 736c9958e7 GIT_SILENT made messages (after extraction) 2020-09-10 02:35:51 +02:00
Carl Schwan e8386a80ea Port to modern SPDX identifier 2020-09-09 21:39:03 +00:00
l10n daemon script ddccf4f320 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-09-09 06:36:13 +02:00
l10n daemon script f73917872a GIT_SILENT made messages (after extraction) 2020-09-09 02:44:30 +02:00
Nate Graham 67ebd66f94 Merge branch 'release/20.08' into master 2020-09-08 13:38:38 -06:00
Nate Graham 9fffa4b253 Fix untranslated spinbox suffix strings
BUG: 426286
FIXED-IN: 20.08.2
2020-09-08 10:59:34 -06:00
Elvis Angelaccio 576a97d8eb Merge branch 'release/20.08' into master 2020-09-05 22:55:59 +02:00
Elvis Angelaccio aee26d29f1 Revert "Set a better defaultDropAction for dragging"
This reverts commit 4440e961a0.

BUG: 425757
BUG: 426196
FIXED-IN: 20.08.2
2020-09-05 22:51:36 +02:00
Alexander Lohnau 8e2f0a1d5b 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
2020-09-05 17:32:48 +00:00
l10n daemon script a1d5d75bea 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-09-03 06:10:45 +02:00
l10n daemon script 745fdeece3 GIT_SILENT made messages (after extraction) 2020-09-03 02:33:12 +02:00
l10n daemon script 49b07b3c5c GIT_SILENT made messages (after extraction) 2020-09-02 02:39:58 +02:00
l10n daemon script 4b438da3cb 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-09-01 10:13:23 +02:00
l10n daemon script d624af1091 GIT_SILENT made messages (after extraction) 2020-09-01 08:46:02 +02:00
l10n daemon script f15f74e241 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-09-01 06:25:15 +02:00
Laurent Montel 7479fef799 Port away from deprecated Qt::MidButton 2020-08-31 21:24:03 +02:00
Christoph Feck 6ffa7f460e GIT_SILENT Update Appstream for new release 2020-08-31 20:52:32 +02:00
Christoph Feck eafaca44da GIT_SILENT Update Appstream for new release
(cherry picked from commit 6ffa7f460e)
2020-08-31 20:52:32 +02:00
Alexander Lohnau e8c4500459 Do not build KNS installer and KNS button on Windows 2020-08-31 16:57:03 +00:00
Alexander Lohnau 8d7775b174 Allow Open Terminal action on Windows 2020-08-31 08:21:59 +00:00
Alexander Lohnau 5360bc3ab3 Merge branch 'release/20.08' 2020-08-30 18:49:22 +02:00
Alexander Lohnau 004734e832 Fix file preview for desktop files with absolute icon paths
BUG: 423326
FIXED-IN: 20.08.1
2020-08-30 18:46:32 +02:00
Nikita Churaev 7c2559dd0b Text style fixes 2020-08-26 03:37:31 +03:00
Elvis Angelaccio 6072005ddc Merge branch 'release/20.08' into master 2020-08-26 00:49:00 +02:00
Alexander Lohnau e42f42fa27 Fix nullptr crash on Windows 2020-08-25 19:36:03 +02:00
Elvis Angelaccio 954e8c4790 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.
2020-08-25 17:07:38 +00:00
Nate Graham a47d8c0e97 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.
2020-08-24 12:35:08 -06:00
Elvis Angelaccio 438620f2b7 Merge branch 'release/20.08' into master 2020-08-23 23:54:23 +02:00
Nazar Kalinowski 771b9c8fc2 Fix 'show space' setting not being re-applied
BUG: 425542
2020-08-23 23:52:13 +02:00
Ahmad Samir 257eeebf4b 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.
2020-08-18 08:43:58 +00:00
Elvis Angelaccio 864b59fcf1 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.
2020-08-17 20:19:44 +00:00
Yuri Chornoivan 97a14db70d Merge branch 'release/20.08' 2020-08-08 15:57:02 +03:00
Yuri Chornoivan df85f24ecb Fix i18n 2020-08-08 15:34:17 +03:00
Christoph Feck 5c41350eec Merge branch 'master' of invent.kde.org:system/dolphin 2020-08-05 09:43:32 +02:00
Christoph Feck e9e74dcad9 GIT_SILENT Update Appstream for new release
(cherry picked from commit a499df21bc)
2020-08-05 09:42:52 +02:00
Christoph Feck a499df21bc GIT_SILENT Update Appstream for new release 2020-08-05 09:42:51 +02:00
Ismael Asensio 73cac464c5 Merge branch 'release/20.08' 2020-08-04 22:39:11 +02:00
Ismael Asensio f9fd0e7be3 [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
2020-08-04 22:34:05 +02:00
Antonio Rojas 7bbae2940d Merge branch 'release/20.08' into master 2020-08-02 18:51:03 +02:00
Antonio Rojas 48158d7079 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
2020-08-02 16:45:15 +00:00
l10n daemon script 52a7af86c5 GIT_SILENT made messages (after extraction) 2020-08-02 07:59:53 +02:00
l10n daemon script 4c3924d923 GIT_SILENT made messages (after extraction) 2020-08-02 02:29:12 +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
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
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
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
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
Méven Car 8aa7cde289 Prevents showing StatJob Progress info
BUG: 422121
Was introduced in ac234a9c55
2020-05-30 15:01:56 +02:00
Elvis Angelaccio b65576a131 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."
2020-05-29 23:23:55 +00:00
Adriaan de Groot 7df39255a6 Non-functional change: consistent indentation
Use 4-space indents consistently, rather than a mix of 2- and 4-.
2020-05-28 23:42:23 +02:00
Adriaan de Groot d3963a7765 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.
2020-05-28 23:39:52 +02:00
Elvis Angelaccio 0d679da0a3 Port to non-deprecated variant of QPixmapCache::find()
We need to pass the pixmap by address, not by reference.
2020-05-28 23:04:04 +02:00
Elvis Angelaccio cbb35681f5 Add some missing const qualifiers 2020-05-28 22:42:40 +02:00
Elvis Angelaccio 46c4b902c1 Drop incorrect emit keywork
This is not a signal.
2020-05-28 22:09:38 +02:00
Elvis Angelaccio c886d3736d Fix clazy-range-loop warning 2020-05-28 22:02:03 +02:00
Elvis Angelaccio 51441cd3c2 Port away from deprecated qrand() 2020-05-28 21:59:39 +02:00
Méven Car f6afbbc240 KDirectoryContentsCounter: scan first path not in cache
Use a secondary QLinkedList to store the priority path.
2020-05-25 15:31:51 +00:00
Nate Graham b6700f77dd Merge branch 'release/20.04' 2020-05-24 08:26:34 -06:00
Piotr Henryk Dabrowski 29e6cf01df use KSycoca for updating OpenPreferredSearchTool action
Summary:
Remove all random updates of OpenPreferredSearchTool action, and
use KSycoca for updating it as discussed in https://phabricator.kde.org/D22594#663847

Enhancement for D29441 for bug #420911 caused by D22594.
The bug was fixed by D29442.

CCBUG: 420911

Test Plan:
```
$ cd ${KDE_INSTALL_DIR}/usr/share/applications

$ sudo mv org.kde.kfind.desktop org.kde.kfind.desktop_
$ kbuildsycoca5

$ sudo mv org.kde.kfind.desktop_ org.kde.kfind.desktop
$ kbuildsycoca5
```

Reviewers: broulik, elvisangelaccio, ngraham, #dolphin

Reviewed By: elvisangelaccio, #dolphin

Subscribers: anthonyfieroni, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29568
2020-05-24 08:26:25 -06:00
Méven Car eda05b12fb KDirectoryContentsCounter: don't schedule scanning a folder already in the Queue
Use a QLinkedList to check for presence in the queue.

merge request !2
2020-05-20 07:45:58 +02:00
Elvis Angelaccio a3052c3942 DolphinView: rename new methods to copy/move urls
DolphinView doesn't know anything about split views and it shouldn't.
Rename these new methods to what they actually do (just copy or move to a
given QUrl).
2020-05-19 00:30:47 +02:00
Nate Graham 1ee665bac8 Move search and filter bar close buttons to the right
Summary:
Close buttons for windows, tabs, and pretty much everything else in KDE are on the right,
not the left. This patch makes Dolphin's search and filter bars follow that.

BUG: 421372
FIXED-IN: 20.08.0

Test Plan: {F8314176}

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

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

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29693
2020-05-18 07:30:12 -06:00
Méven Car a058c64eba Merge branch 'release/20.04' 2020-05-18 08:17:01 +02:00
Méven Car 99cf24c03d Left-elide file/folders while keeping their extension visible
Summary:
Tweak behavior introduced in D19471.

BUG: 404955

Test Plan:
Before:
{F8325282}
After:
{F8325283}
{F8325284}

Reviewers: ngraham, #dolphin, elvisangelaccio, #vdg

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

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29794
2020-05-18 08:14:47 +02:00
Nikolai Krasheninnikov 9b7fc506aa Added VCS plugins signals connections for outOfVersionControl() actions.
Summary:
Plugins can now do out of version control actions (D29041), so we need them to inform of their state.
This change connects every plugin signal to Dolphin on plugin instantiation.

Test Plan:
1. Try SVN Update of inaccessible repository: see SVN error message shows up.
2. Try pull inaccessible git repository: see GIT error message shows up.
3. Try SVN Commit: see SVN message.

Reviewers: #dolphin, meven, elvisangelaccio

Reviewed By: #dolphin, meven

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29488
2020-05-15 23:09:05 +03:00
Antonio Prcela a291c59990 Allow to copy or move selection to the other split view
Summary:
FEATURE: 276167

Default keyboard shortcuts set to `SHIFT+F5` for `copy`, `SHIFT+F6` for `move`

Reviewers: #dolphin, elvisangelaccio, ngraham, meven, dfaure

Reviewed By: #dolphin, elvisangelaccio, ngraham, meven, dfaure

Subscribers: yurchor, kde-doc-english, dfaure, meven, kfm-devel

Tags: #dolphin, #documentation

Differential Revision: https://phabricator.kde.org/D29006
2020-05-14 16:20:14 -06:00
l10n daemon script 57d9eee900 GIT_SILENT made messages (after extraction) 2020-05-13 09:20:03 +02:00
l10n daemon script 8cb3521cb7 GIT_SILENT made messages (after extraction) 2020-05-13 02:40:37 +02:00
Christoph Feck 2afd02f5ee GIT_SILENT Update Appstream for new release 2020-05-11 23:07:46 +02:00
Elvis Angelaccio 42148dd356 DolphinView: rename cutSelectedItems to cutSelectedItemsToClipboard
For consistency with d1a70c0b62.
2020-05-11 22:54:08 +02:00
Alexander Lohnau 2b58f0457e Dolphin: Cleanup service settings page
Summary:
Just some little things :-)
- Refactor foreach
- Fix minor formatting issues
- Use auto keyword where appropiate

Test Plan: Compiles

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29560
2020-05-11 20:02:23 +02:00
Elvis Angelaccio d1a70c0b62 DolphinView: rename copySelectedItems to copySelectedItemsToClipboard
This makes it explicit that this is just a copy to clipboard, so that
we can use the name for an actual KIO::copy().
2020-05-11 19:31:29 +02:00
l10n daemon script 5ad49db96d GIT_SILENT made messages (after extraction) 2020-05-10 09:03:41 +02:00
l10n daemon script 2c7c8b83f2 GIT_SILENT made messages (after extraction) 2020-05-10 02:45:11 +02:00
Albert Astals Cid 3017f115a8 is use -> is used
CCMAIL: meven29@gmail.com
2020-05-10 00:36:54 +02:00
Méven Car 5936492ab6 Prevent crash in Windows
Summary: https://phabricator.kde.org/D25335#664304

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29470
2020-05-08 13:21:37 +02:00
Ahmad Samir e3c03e466e Port QRegExp to QRegularExpression
Summary:
Port QRegExp::exactMatch() with QRegularExpression::anchoredPattern().
Port QRegExp::Wildcard with QRegularExpression::wildcardToRegularExpression().
Note that QRegularExpression::wildcardToRegularExpression() returns an anchored
pattern.

Test Plan:
Using the filter bar in dolphin works as before.

All unit tests pass, except:
- kfileitemmodeltest (which is unrelated AFAICS); it fails on master too
- placesitemmodeltest, which fails on master too

Reviewers: #dolphin, elvisangelaccio, meven

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26215
2020-05-06 11:37:38 +02:00
Kai Uwe Broulik 37deaaef2c Merge branch 'release/20.04' 2020-05-06 10:52:38 +02:00
Kai Uwe Broulik 801fdf4c59 Don't update preferred search action on window activation
I don't see why this is necessary and causes a blocking(!) StatJob every single time the window is focussed,
worse, ends up in an infinite loop when the window loses focus on an auth prompt.

CCBUG: 420911

Differential Revision: https://phabricator.kde.org/D29441
2020-05-06 10:52:09 +02:00
Christian Christiansen 1d72710039 Keep name readable on drag to matching background
Summary:
Previously, when a single item was selected and dragged, the
name would become unreadable when the text colour matched the
background colour it was dragged onto.

This is now fixed by not deselecting the item (and hence keeping
the highlighting around the text) before creating the pixmap for
dragging.

BUG: 405266

Test Plan: Tested with Breeze and Breeze Dark.

Reviewers: #dolphin, elvisangelaccio, meven

Reviewed By: #dolphin, elvisangelaccio, meven

Subscribers: meven, elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29378
2020-05-06 09:40:55 +10:00
Alexander Lohnau 3e1cb2c7fb Dolphin: Implement package kit for deb/rpm/pacman service packages
Summary: The deb/rpm/pacman packages are now installed/uninstalled using packagekit.

Test Plan: Try to install deb package from kde store (search for `jetbrains`). Then uninstall it.

Reviewers: #dolphin, ngraham, elvisangelaccio, meven

Reviewed By: #dolphin, ngraham, elvisangelaccio, meven

Subscribers: cblack, anthonyfieroni, asturmlechner, meven, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29119
2020-05-05 17:26:13 +02:00
Kai Uwe Broulik ecede34048 Merge branch 'release/20.04' 2020-05-05 12:05:49 +02:00
Kai Uwe Broulik 9f268f5f76 Don't use local URL for KMoreTool
This method is called a billion times and spawns a blocking(!) StatJob.
KFind can search local URLs, too, so I don't see why this is necessary.
Either way, I'd rather have a non-KDE search tool broken than the app.
Ideally, I'd like this entire thing redone to use an async StatJob, if any.
Fwiw the KMoreTools in the free space bar doesn't use a local URL either.

BUG: 420911
FIXED-IN: 20.04.1

Differential Revision: https://phabricator.kde.org/D29442
2020-05-05 12:05:18 +02:00
Méven Car 91ea1e29ee Sort by file size according to DetailsModeSettings::directorySizeCount
Test Plan: Sort by file size in details view.

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29424
2020-05-05 07:31:57 +02:00
Méven Car 31f5dc7f7c Fix Windows Build
Summary: Due to D25335

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29425
2020-05-05 07:31:22 +02:00
Nikolai Krasheninnikov 2c72b18661 Fixes Dolphin crash on "Defocus Terminal Panel" menu click if no Konsole is installed.
Summary:
Dolphin crashes if no Konsole is installed and user clicks menu action "Defocus Terminal Panel".
This fix is pretty straight forward.

Steps to reproduce:
1. Run Dolphin without Konsole available.
2. Press F4 to open console window.
3. Click in service menu "Focus Terminal Panel".
4. Click in service menu "Defocus Terminal Panel". Observe the crash.

Test Plan:
1. Run Dolphin without Konsole available.
2. Press F4 to open console window.
3. Click in service menu "Focus Teminal Panel".
4. Click in service menu "Defocus Terminal Panel".
5. Click in service menu "Focus Terminal Panel".
6. Press F4 to close console window.

Reviewers: #dolphin, meven, elvisangelaccio, ngraham

Reviewed By: #dolphin, meven, elvisangelaccio, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29345
2020-05-04 22:40:06 +03:00
Nikolai Krasheninnikov a9e2f01add Fixes Dolphin crash on "Defocus Terminal Panel" menu click if no Konsole is installed.
Summary:
Dolphin crashes if no Konsole is installed and user clicks menu action "Defocus Terminal Panel".
This fix is pretty straight forward.

Steps to reproduce:
1. Run Dolphin without Konsole available.
2. Press F4 to open console window.
3. Click in service menu "Focus Terminal Panel".
4. Click in service menu "Defocus Terminal Panel". Observe the crash.

Test Plan:
1. Run Dolphin without Konsole available.
2. Press F4 to open console window.
3. Click in service menu "Focus Teminal Panel".
4. Click in service menu "Defocus Terminal Panel".
5. Click in service menu "Focus Terminal Panel".
6. Press F4 to close console window.

Reviewers: #dolphin, meven, elvisangelaccio, ngraham

Reviewed By: #dolphin, meven, elvisangelaccio, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29345
2020-05-04 22:36:51 +03:00
Alexander Lohnau fd827e412e Dolphin: Cleanup kcms
Summary: Refactor forearch, adjust formatting, remove unnecessary version checks.

Test Plan: Compiles

Reviewers: #dolphin, ngraham, elvisangelaccio, meven

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29377
2020-05-04 20:36:15 +02:00
Antonio Prcela ddcca5fb91 Replace the list with the simplified list, instead of concatenate.
Summary: Replace the list m_selectedUrls with a simplified list, instead of concatenating the simplified list to the current one.

Reviewers: dfaure, meven

Reviewed By: dfaure

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29399
2020-05-04 08:00:07 -06:00
Méven Car e6ea3ab4c4 [Details mode] Allow to fill the column size of directories with actual size
Summary:
Allow to compute the recursive size of directories to fill the details view size column.
A setting allow to set a limit to the recursive level, allowing the user to have some power over the setting.

When sorting by size and the feature is on, we get progressive ordering as the directory size are gathered.

KDirectoryContentsCounter uses a cache internally to keep results so that it can display directory size faster, but counts the dir size of directories each time it is asked to count the size a directory nevertheless and when the size has changed, it is updated.
KDirectoryContentsCounter uses one worker per instance only, meaning one process per view makes the disk spin.

FIXED-IN: 20.08
BUG: 190580
BUG: 158090

Test Plan:
With some recursion allowed:
{F8267580}

Without any recursion allowed (default):
{F8267581}

Reviewers: elvisangelaccio, ngraham, #dolphin

Reviewed By: elvisangelaccio, ngraham, #dolphin

Subscribers: feverfew, anthonyfieroni, iasensio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25335
2020-05-04 07:26:59 +02:00
Alexander Lohnau d34559d1c1 Dolphin Service Menu Installer: Launch certain scripts in Konsole
Summary:
In general the issue with installers/uninstallers for the dolphin plugin is
that a lot of the scripts are intended to be run manually in a terminal.
For instance if a script uses `sudo make install` the user can't type in the password.

With this patch scripts that are executed without arg variants are
executed in konsole (if available).

Test Plan:
Tests still pass. Try to install the "Jetbrains Dolphin Plugin" tar.gz file from the kde store.
If you have the required dependencies etc. the konsole window should close.
If the install script fails (type in wrong admin password a couple of times) you
should have a shell opened.

Reviewers: #dolphin, ngraham, nicolasfella, elvisangelaccio, meven

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29089
2020-05-03 20:22:11 +02:00
Elvis Angelaccio 32308843f9 ServicesSettingsPage: add missing connection receiver 2020-05-03 19:05:32 +02:00
Alexander Lohnau e6d4afa927 Dolphin Services: Add search box
Summary:
You can now filter the list of installed services.
This is especially useful if you install additional service menus
from the kde store, because one instalaton can add a lot of services.
For instance the ReImage plugin.

Test Plan:
Compiles, search for a service menu.
Only services matching the query will show up.

Reviewers: ngraham, elvisangelaccio, meven

Reviewed By: meven

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29375
2020-05-03 12:50:24 +02:00
Méven Car e076d8668f filenamesearch:/ define a title for the query
Summary: CCBUG: 420354

Reviewers: ngraham, elvisangelaccio, #dolphin, #frameworks, iasensio

Reviewed By: elvisangelaccio, #dolphin, iasensio

Subscribers: iasensio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29198
2020-05-03 12:46:00 +02:00
Méven Car dcd8c646a5 Information Panel: show early icons for folders
Summary:
Folders previews can be long to generate.
This can be noticeable by the user.

This diff displays folder icons after a 100ms timer.

BUG: 420340
FIXED-IN: 20.08

Test Plan:
rm -r ~/.cache/thumbnails/
In dolphin open trash
Click on download (or any directory with a long to generate preview).

Reviewers: #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29204
2020-05-01 07:51:28 +02:00
Nikolai Krasheninnikov 67a5ec53ef For VCS-plugin interface added pure virtual function outOfVersionControlActions()
Summary: This commit changes VCS-plugin interface in order to provide actions for unversioned items (for example clone or checkout repository), updates to dolphin-plugins comes in the separate commit D29042.

Reviewers: #dolphin, meven, elvisangelaccio

Reviewed By: #dolphin, meven, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29041
2020-04-30 16:56:24 +03:00
René Bertin d3813ee65e prevent a QFileInfo warning
DolphinSearchBox::init() can generate a terminal warning depending on
the user's search history:

QFileInfo::absolutePath: Constructed with empty filename

The warning can seem to appear randomly if you don't use the search
feature often, because of its dependency on previous search activity.

Prevent this warning by adding a simple check if the current
m_searchPath is valid or not. This check has no effect on the value
returned by DolphinSearchBox::isIndexingEnabled() and is in line with
the fact that m_searchPath == QUrl() indicates that no search path has
been set.

Differential Revision: https://phabricator.kde.org/D29194
2020-04-27 10:32:34 +02:00
Nate Graham caf2fe1c43 Add an option to show tabs from last time when Dolphin starts
Summary:
All modern web browsers offer a function to show tabs from last time when a browser starts, and many apps today
restore their prior state when they're launched. This patch implements thatfunctionality as an option and turns it on by default.

The settings window is accordingly adjusted to be clear about what applies when:

{F7681752}

FEATURE: 413564
FIXED-IN: 20.08.0

Depends on D25106
Depends on D25219

Test Plan:
With the new setting turned off:
- No behavioral changes at all

With the new setting turned on:
- When launched from the GUI or CLI without any URLs, dolphin restores session
- When rebooting with Dolphin open, it restores session normally after the system comes back (i.e. no behavioral change here)
- When launched with URLs, Dolphin window is opened showing those URLs instead of restoring session
- When Dolphin is already running and a new window is opened, that new window shows a single tab with the same URL as was visible in the previously-open Dolphin instance (i.e. no behavioral change here)
- "Open Containing folder" functionality in other apps works regardless of whether or not Dolphin is running

Reviewers: #dolphin, #vdg, feverfew, meven, elvisangelaccio, ndavis

Reviewed By: #dolphin, #vdg, feverfew, elvisangelaccio, ndavis

Subscribers: davidedmundson, ndavis, intika, feverfew, kfm-devel, ngraham, broulik, #dolphin

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D11382
2020-04-26 12:14:56 -06:00
Méven Car b0ad83eeee Information Panel: hide phonon widget when starting a search
Summary: BUG: 420512

Test Plan:
Select on hove over a video file
Type Ctrl + F
Type some test + enter

Reviewers: ngraham, #dolphin, elvisangelaccio

Reviewed By: ngraham, #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29158
2020-04-25 08:05:11 +02:00
Méven Car 72705e4cf8 Information Panel: show the phonon when we can use phonon
Summary: Similar to D29158

Test Plan:
Select a video file
Type CTRL + F and some text
Hit ALt + left or previous button

Before:
The video controls are not visible for selected video file

After:
Video controls are visible again.

Reviewers: ngraham, elvisangelaccio, #dolphin

Reviewed By: ngraham, #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29160
2020-04-25 08:04:10 +02:00
Alexander Lohnau e78fe03294 Merge branch 'release/20.04' 2020-04-21 21:32:46 +02:00
Alexander Lohnau 5bbdf66fce Dolphin Service Installer: Run uninstall scripts, rename methods
Summary:
Now scripts starting with `uninstall` are being executed.
Addtionally the `runInstallerScriptOnce` method has been renamed, because it is used to run the install/uninstall scripts.
Same for `runInstallerScript`.
Depends on D28801

Test Plan: Compile, run tests. Try to uninstall a dolphin service which has a uninstall.sh script.

Reviewers: #dolphin, ngraham, nicolasfella, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: cfeck, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28836
2020-04-21 21:29:06 +02:00
Méven Car cb085066ae Information Panel: Make icons as big as previews
Summary:
Make icons match the preview size.
It prevents a user that had a wide information panel,
seeing a size difference between a preview and an icon despite they can look similar (i.e folder preview).

Test Plan:
Before:
{F8248373, size=full}

After:
{F8248370, size=full}

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29002
2020-04-21 09:20:31 +02:00
Nate Graham bb48d4f171 Use new "Show/Hide Hidden Files" standard shortcut
Summary:
Note that we lose the F8 shortcut since the KStandardShortcut added in XXXX can only
accommodate toew default shortcuts, and I thought Ctrl+H and Alt+. were the more important
ones. Hopefully that's not too high a price to pay.

Depends on D28802

Test Plan:
- Apply D28802 to kconfig
- Apply this patch to Dolphin, compile, and launch Dolphin
- Hit Ctrl+H or Alt+. and see that hidden files are shown or hidden as approproiate

Reviewers: #dolphin, dfaure, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28804
2020-04-20 15:41:25 -06:00
Méven Car b274b6145b Allow statusbar and information panel to stat with KIO::StatRecursiveSize
Summary: Needed after D28901 to ensure we get the UDS_RECURSIVE_SIZE out of the stat calls.

Test Plan: Trash size is visible in status bar and information panel again.

Reviewers: ngraham, dfaure, #dolphin

Reviewed By: dfaure

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28950
2020-04-18 19:16:52 +02:00
Shlomi Fish 196f4553e6 Move from the searchbox to the results with the down arrow key
Summary:
Move from the searchbox to the search results listbox/view using the
down arrow key in addition to the existing methods using the tab key,
return key, or the mouse.

Test Plan:
use ctrl+f to search in a directory tree, press down arrow key
to go to the results

Reviewers: ngraham, #dolphin

Reviewed By: ngraham, #dolphin

Subscribers: meven, elvisangelaccio, ngraham, iasensio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26362
2020-04-18 10:37:01 -06:00
David Faure ec2c69726a DolphinPart: port dolphin's last use of KRun::run to CommandLauncherJob.
Summary:
I chose CommandLauncherJob rather than ApplicationLauncherJob
because that would require either looking up org.kde.kfind.desktop
(with a risk of failure) or duplicating the icon name...

Test Plan:
commented out the if() block of the slot, to make sure we end
up launching kfind with this code. Then konqueror /, and Ctrl+F.

Reviewers: broulik

Reviewed By: broulik

Differential Revision: https://phabricator.kde.org/D28810
2020-04-18 13:07:08 +02:00
Alexander Lohnau 8fa3e7c145 Merge branch 'release/20.04' 2020-04-17 15:10:07 +02:00
Alexander Lohnau 76f9d9a5f5 Dolphin Service Menu installer cleanup
Summary:
This patch contains some smaller formatting/coding style changes
to avoid unrelated changes in other patches.

- Use {} instead of QStringList{} consistently
- Use parehthesese in `UncompressCommand({})` consistently
- Use `QStringList name = {}` instead of `auto name = QStringList{}`
- Add one qAsConst, remove qAsConst if value is already const

Test Plan: Compile, install and run tests

Reviewers: #dolphin, ngraham, nicolasfella

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28801
2020-04-17 15:05:36 +02:00
Antonio Prcela 26f8e68864 Do not display full path in the title of the tab
Summary:
Displays the full path only in the window title, not in the tab title.

Screenshot for comparison: ( Dolphin on the right is without D28815 , Dolphin on left has both D28815 and this patch)

{F8240079}

Reviewers: #vdg, #dolphin, ngraham, meven

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

Subscribers: ngraham, elvisangelaccio, meven, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28857
2020-04-15 09:47:57 -06:00
Christoph Feck 4788820bec GIT_SILENT Update Appstream for new release 2020-04-15 10:59:54 +02:00
Christoph Feck 24c9666dad GIT_SILENT Update Appstream for new release
(cherry picked from commit 4788820bec)
2020-04-15 10:59:54 +02:00
David Faure 30257697e2 Port KRun::run usage to run another Dolphin process, to ApplicationLauncherJob
Test Plan: Opening a new window works

Reviewers: elvisangelaccio, ngraham, meven

Reviewed By: elvisangelaccio, meven

Subscribers: meven, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28807
2020-04-15 00:44:58 +02:00
Nate Graham a205210508 Merge branch 'release/20.04' 2020-04-14 09:50:06 -06:00
Nate Graham a995a80302 Sort services list alphabetically
BUG: 419938
FIXED-IN: 20.04.0
2020-04-14 09:49:12 -06:00
Nate Graham 03bff8361a Merge branch 'release/20.04' 2020-04-14 09:15:32 -06:00
Antonio Prcela 8de24d5802 Display readable titlebar text while using search and full paths in titlebar
Summary:
BUG: 406624
FIXED-IN: 20.08

Reviewers: #vdg, #dolphin, iasensio, elvisangelaccio, ngraham, meven

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

Subscribers: meven, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28815
2020-04-14 09:15:08 -06:00
Méven Car ac234a9c55 Allow to display UDS_RECURSIVE_SIZE in status bar
Summary: Useful for trash:/ in particular

Test Plan: {F8233980}

Reviewers: #dolphin, dfaure, elvisangelaccio, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28794
2020-04-14 07:42:39 +02:00
Alexander Lohnau fa3f3a475d Merge branch 'release/20.04' 2020-04-13 21:25:52 +02:00
Alexander Lohnau 514d9c8fc9 Dolphin Services: Launch Deb/Rpm archives with QDesktopServices
Summary:
When you are inside the services store and you choose to install a deb/rpm package
they open in the default application (mostlikely a package installer utility like discover).

PS: I have written some ideas/questions, maybe you can comment on them :-) ?

Test Plan:
Tests still pass, try out what was described in the summary.
A product which has a deb/rpm package is for example: `Jetbrains Dolphin Plugin`

Reviewers: #dolphin, elvisangelaccio, ngraham, aspotashev

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28795
2020-04-13 21:23:52 +02:00
Martin T. H. Sandsmark 35b4c6d4df Fix crashing on starting and quitting
QCollator (especially with Qt 5.14 and ICU 65.1) is very unhappy with
threads.

To avoid having to lock and unlock the mutex everywhere (and ensure it
is unlocked before calling other things that might lock it, etc.), we do
it as locally as possible. Even if for some reason Qt and ICU make
QCollator threadsafe in the future locking here should have minimal
impact.

BUG: 419585

Differential Revision: https://phabricator.kde.org/D28659
2020-04-12 12:15:03 +02:00
Alexander Saoutkin 5351db95c6 Sync terminal with KIOFuse mount when browing remote directories
Summary:
Adds the capability to sync the terminal with a KIOFuse mount if the URL is remote.
Partly based on the existence of another DBus currenly in review:
https://invent.kde.org/kde/kio-fuse/-/merge_requests/21

Syncing works in both "directions". Changing the URL to a remote URLin the
DolphinView will change the URL in the terminal to the KIOFuse local path equivalent.
Conversely changing the URL in the terminal to one that happens to be in a KIOFuse
mount will change the URL in the DolphinView to the remote URL equivalent.

Test Plan:
Manual testing (see video in comments).
1. Checking that changing directory in DolphinView from remote/local to local doesn't
cause any regressions.
2. Checking that changing directory in terminal from local to local (but not in
KIOFUse mount) doesn't cause any regressions.
3. Checking that changing directory in DolphinView from remote/local to remote
correctly changes URL in terminal to KIOFuse equivalent.
4. Checking that changing directory in terminal from local to KIOFuse path
correctly changes the URL in the DolphinView to the remote equivalent.
5. Checking the KIOFuse not being installed doesn't cause any regressions.
6. Changing directories very quickly does not cause any slowdown.

Reviewers: #dolphin, fvogt, elvisangelaccio

Reviewed By: #dolphin, fvogt, elvisangelaccio

Subscribers: elvisangelaccio, fvogt, kfm-devel, ngraham

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28290
2020-04-07 18:29:22 +01:00
Aleix Pol d868568d81 Revert "Port deprecated signal (qt5.15)"
This reverts commit e545efee73.

(Cherry-picked from c01d1b4c0e)
2020-04-06 22:36:16 +02:00
Nate Graham de9a05966e Merge branch 'release/20.04' 2020-04-05 16:49:57 -06:00
Nate Graham 9b82b08fb1 Use same logic for "no extension" case with Duplicate feature
Summary:
In the "no extension" case, we weren't separating out the path and the original filename,
breaking the feature for languages where the word "copy" would be at the beginning of the
filename, not after it (e.g. "copia de foo" in Spanish, and similar in other romance
languages). This patch fixes that by separating the original path and filename in the no
extension case as is done for the other case, which should solve the issue.

BUG: 419070
FIXED-IN: 20.04.0

Test Plan:
No changes in English; should fix the issue in Spanish once new translations are done
(see https://bugs.kde.org/show_bug.cgi?id=419070 for details)

Reviewers: #dolphin, elvisangelaccio, arojas, meven, pino, #localization

Reviewed By: #dolphin, elvisangelaccio

Subscribers: aacid, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28227
2020-04-05 16:48:51 -06:00
David Faure 40035fe5bf Dolphin: port to CommandLauncherJob
Summary: git master already requires 5.69 anyway, due to KBookmarkMenu API change

Test Plan: Builds, Tools / Compare Files works.

Reviewers: broulik, elvisangelaccio, meven

Reviewed By: elvisangelaccio, meven

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28589
2020-04-05 20:33:30 +02:00
Aleix Pol c01d1b4c0e Revert "Port deprecated signal (qt5.15)"
This reverts commit e545efee73.
2020-03-31 15:35:33 +02:00
Nicolas Fella 885916b7b4 Port away from deprecated KBookmarksmenu API
Summary:
Needs to wait until we can depend on 5.65

See D25660 for context

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25665
2020-03-30 15:50:07 +02:00
l10n daemon script 35a8912c52 GIT_SILENT made messages (after extraction) 2020-03-30 08:47:40 +02:00
Tranter Madi 4440e961a0 Set a better defaultDropAction for dragging
Summary: Because we use KIO::DropJob to determine the dropAction, so changing this one does not change anything else except the default cursor from the copy icon to the closed-hand one.

Test Plan: Drag files without holding any modifier key and see the cursor.

Reviewers: #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28370
2020-03-30 09:54:38 +07:00
l10n daemon script 13d56d51e0 GIT_SILENT made messages (after extraction) 2020-03-30 02:36:14 +02:00
l10n daemon script ba03222e8d GIT_SILENT made messages (after extraction) 2020-03-27 02:41:34 +01:00
Nate Graham 975adedb59 Merge branch 'release/20.04' 2020-03-25 09:35:24 -06:00
Tranter Madi b96c48b44e Update dragCursor while dragging
Summary:
While dragging, the user could want to change the modifier, so we should call event->acceptProposedAction() to do update the dragCursor.

FIXED-IN: 20.04.0

Test Plan: While dragging files, change modifiers between Ctrl/Shift/Alt... and move the mouse at least 1px to see the cursor changes.

Reviewers: #dolphin, meven, ngraham, davidedmundson, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28017
2020-03-25 09:23:50 -06:00
Laurent Montel 299e5f2859 Merge remote-tracking branch 'origin/release/20.04' 2020-03-19 14:00:15 +01:00
Laurent Montel 2bb54ffc6c Add missing includes 2020-03-19 13:59:59 +01:00
Elvis Angelaccio b6e13f9d57 Select new duplicated items
Summary: This should have been part of commit 405dd624fb

Test Plan: Duplicate item and make sure it gets selected.

Reviewers: ngraham

Reviewed By: ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28084
2020-03-17 22:58:58 +01:00
Yuri Chornoivan 234c827631 Fix minor typo 2020-03-17 16:56:45 +02:00
Elvis Angelaccio 869b8d7e30 Switch to generated MainWindow dbus interface
Summary: This allows compile-time checks for the main window dbus methods.

Test Plan: Same test plan as in D21691, D21666 and D25510.

Reviewers: #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26214
2020-03-16 22:43:08 +01:00
Elvis Angelaccio fa806d48da Exclude daemonized processes from Dolphin::attachToExistingInstance()
Summary:
`dolphin --daemon` does not have the `/dolphin/Dolphin_1` dbus path,
because it doesn't have any DolphinMainWindow.

Instead of working around this issue (as we did in D21666 and D25510),
just exclude these processes from the list of dbus instances checked by
`Dolphin::attachToExistingInstance()`.

CCBUG: 408244

Test Plan: Same test plan as in D21666 and D25510

Reviewers: #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26213
2020-03-16 22:38:40 +01:00
Nathaniel Graham 405dd624fb Add Duplicate feature
Summary: Adds a Duplicate feature to Dolphin, showing up as a menu item in the File menu that appears when one or more items are selected and the directory is writable. Duplicated items receive the names of the original files with " copy" appended before the file extension, if any.

Test Plan:

{F5201386} {F5201393}

Test cases:

- Try to duplicate when nothing is selected: **PASS**: menu item is grayed out
- Try to duplicate anything on a read-only local volume: **PASS**:  menu item is grayed out
- Try to duplicate anything on a read-only samba share: **PASS**: menu item is grayed out
- Duplicate single local file on R/W volume: **PASS**: item is duplicated and named correctly
- Duplicate multiple local files on R/W volume: **PASS**: 3 items are duplicated, named correctly, and selected
- Duplicate single local directory on  R/W volume: **PASS**: item is duplicated and named correctly, but a rename operation is not initiated
- Duplicate multiple local directories on R/W volume: **PASS**: 3 items are duplicated, named correctly, and selected
- Duplicate single file on R/W samba share: **PASS**: item is duplicated and correctly
- Duplicate multiple files on R/W samba share: **PASS**: 3 items are duplicated, named correctly, and selected
- Duplicate single directory on R/W samba share: **PASS**: item is duplicated and named correctly
- Duplicate multiple directory on R/W samba share: **PASS**: 3 items are duplicated, named correctly, and selected
- Try to undo a successful duplication: **PASS**: operation is undone

This is my first attempt at a big change like this and I'm sure it's full of issues. I will accept any and all suggestions for improvement. :)

Reviewers: #dolphin, #kde_applications, elvisangelaccio, dfaure, broulik, davidedmundson

Subscribers: kfm-devel, meven, markg, fazevedo, cfeck, #dolphin

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D8208
2020-03-15 13:13:08 -06:00
l10n daemon script b10a84c770 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-03-02 05:36:51 +01:00
Alexander Saoutkin 7a2885853a Merge branch 'release/19.12' 2020-03-01 17:22:46 +00:00
Alexander Saoutkin af45eb0af5 Fix typo in comment 2020-03-01 17:20:54 +00:00
Alexander Saoutkin fef7eebc6e Fix files not being highlighted if directory of file is already open
Summary:
In DolphinTabWidget::openFiles it assumes openDirectories will open new tabs, so it
only marks the URL selection for the newly opened tabs. This assumption is incorrect
 as Dolphin might reuse tabs when the folder is already open.

Even then, markUrlsAsSelected does nothing when the folder is already opened.
The selection seems to only be used when the folder finishes loading, calls made after
that only change a variable without updating the actual selection.

A call to DolphinView::updateViewState() is required to restore the intended behaviour, so long as DolphinView::clearSelection() has been called on the relevant tab, otherwise updateViewState() is a no-op.

BUG: 417230
FIXED-IN: 19.12.3

Test Plan:
1. In any application that has an "open containing folder" select that option
2. and then do the same for another file in the same folder

Reviewers: broulik

Reviewed By: broulik

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D27389
2020-03-01 17:17:20 +00:00
Christoph Feck 270ab975fb GIT_SILENT Update Appstream for new release 2020-03-01 10:31:18 +01:00
Nikolai Krasheninnikov d0cbcf9718 Fixes multiple KVersionControlPlugin::fileName() calls on entering or updating directory.
Summary:
BUG: 415698
FIXED-IN: 20.04

On each VCS plugin creation corresponding file name is saved (cached) so when we search which VCS plugin is appropriate for current directory we don't need to call KVersionControlPlugin::fileName() again.

Reviewers: #dolphin, meven, elvisangelaccio, ngraham

Reviewed By: #dolphin, meven, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26962
2020-02-18 14:55:24 -07:00
Laurent Montel e545efee73 Port deprecated signal (qt5.15) 2020-02-16 14:44:38 +01:00
Nate Graham 4c923a531f Restore former position of "Create New" menu item in viewport context menu
Summary:
I've seem various complaints from users about the fact that the {nav Create New...} menu
item in the viewport context menu is now below {nav Open With} item. All the other
changes to menus seem to have been well-received but this one has garnered criticism.
Looking through D23757 and D11884, I can't actually see that this was intentional, so
it might even be a bug.

Either way, this patch restores the old position of the {nav Create New} menu items at
the top of the Viewport context menu.

BUG: 417640
FIXED-IN: 20.04.0

Test Plan: {F8093605}

Reviewers: #vdg, #dolphin, elvisangelaccio, ndavis

Reviewed By: #vdg, ndavis

Subscribers: asturmlechner, markuss, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D27267
2020-02-14 08:52:36 -07:00
Ilya Bizyaev 402f7f3041 Swap "Open in New Window" and "Open in New Tab" in context menus
Summary:
Since Dolphin's default behaviour became opening in new tabs rather than in new windows
(a very positive change, in my opinion), I always find myself accidentally opening folders
in new windows from the context menu. This is because in most browsers with tab workflow
(e.g. Firefox, Chromium, Falkon) the top context menu action is opening in a new tab, and
my muscle memory plays a bad trick :) I'm aware of middle-clicking, but I find it
inconvenient with my touchpad.

I suspect I'm probably not alone in that, so I think it makes sense to swap these actions
in Dolphin to match widely used apps.

Test Plan:
Open Dolphin, right click folders in the main view and in the Places panel, ensure the
actions are indeed swapped

Reviewers: #vdg, ndavis, #dolphin, ngraham

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

Subscribers: ngraham, ndavis, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D27318
2020-02-12 18:58:47 +03:00
l10n daemon script 2c29c7ed28 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-02-06 05:34:55 +01:00
Christoph Feck e4c1f4f1fc GIT_SILENT Update Appstream for new release 2020-02-04 00:10:08 +01:00
l10n daemon script 7002dc4e8a GIT_SILENT made messages (after extraction) 2020-02-02 02:30:18 +01:00
George Vogiatzis 9e3418bd55 Add natural sorting and case-insensitive sorting for all role-types
Summary:
 Add natural sorting and case-insensitive sorting, for all role-types
that benefit from.

BUG: 406296
FIXED-IN: 19.12.2

Test Plan:
Sort by any role type specified in `isRoleValueNatural()`
Before: Sorting is always case sensitive
After: Sorting according to 'Sorting mode' in configuration.

Reviewers: #dolphin, nicolasfella, meven, elvisangelaccio, ngraham

Reviewed By: #dolphin, meven, elvisangelaccio, ngraham

Subscribers: cfeck, meven, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25741
2020-01-28 08:52:58 -07:00
Nate Graham c2fa8ae9ab Merge branch 'release/19.12' 2020-01-27 09:49:44 -07:00
George Vogiatzis 178eb5927c Change drop indicator color
Summary:
Change drop indicator color form highlight to text.
This makes more visible, when indicator is adjacent to a highlight
item, of a list.

BUG: 415010

Test Plan:
Before vs After
{F7974679}

Reviewers: #dolphin, #vdg, elvisangelaccio, ngraham

Reviewed By: #dolphin, #vdg, ngraham

Subscribers: meven, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26936
2020-01-27 09:49:09 -07:00
Nikolai Krasheninnikov 305085b581 Fixes multiple VCS plugin calls on single directory update.
Summary:
Fixes multiple VCS plugin beginRetrival()/endRetrival()/itemVersion() calls on single directory update.
When VCS pluging finished gathering directory information VersionControlObserver::slotThreadFinished() calls KFileItemModel::setData() on each entry with appropriate item VCS information.
This in turn emits KFileItemModel::itemsChanged() which is connected with VersionControlObserver::delayedDirectoryVerification() which is starting to gather VCS directory information again.
This commits breaks the vicious circle.

BUG: 415698
FIXED-IN: 20.04.0

Reviewers: #dolphin, meven, ngraham, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26721
2020-01-26 17:09:18 +01:00
Méven Car 17e1a48c68 Use QDesktopServices to open urls not supported by dolphin
Summary:

This improves portability.
QDesktopServices uses standard mimetype base resolution to find the app to use.

BUG: 372642
FIXED-IN: 20.04

Test Plan:
 * Open http://google.com, opened default web browser
 * Open mms:// (on my test system opened vlc)

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, elvisangelaccio, ngraham

Subscribers: nicolasfella, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26732
2020-01-20 16:50:14 +01:00
Ismael Asensio 5778099ece (search) Fix searching tags with spaces
Summary:
Tags containing blank spaces were not handled properly in the search widget.
Now we enclose them in quotes and strip the quotes before setting them to the widget.

{F7854247}

Test Plan:
No artifacts when searching tags containing spaces
Added test cases to `bin/dolphinquerytest`

Reviewers: #dolphin, elvisangelaccio, ngraham, meven

Reviewed By: #dolphin, elvisangelaccio, ngraham

Subscribers: meven, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26369
2020-01-19 23:17:26 +01:00
Nate Graham 897ce8480c Use more conventional "Add to Places" text for that action
Summary:
I originally implemented this to show "Add <current folder> to Places" to make the menu
item more clear when invoked from the file menu or the viewport context menu because I
thought it wasn't totally clear that the action would be referring to the folder for the
visible view.

However I think in retrospect that this was a mistake. No other items in the file menu
or the viewport context menu name the current folder like this, so clearly there wasn't
a problem. And then the item's text doesn't match the text for other items.

Thie patch removes that behavior and makes the name match the style of all the other menu
item text.

BUG: 416064
FIXED-IN: 20.04.0

Reviewers: #dolphin, #vdg, meven

Reviewed By: #dolphin, meven

Subscribers: elvisangelaccio, meven, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26590
2020-01-13 08:11:43 -07:00
l10n daemon script ba751e653e GIT_SILENT made messages (after extraction) 2020-01-13 08:15:22 +01:00
l10n daemon script 2fd2f621b7 GIT_SILENT made messages (after extraction) 2020-01-13 02:34:58 +01:00
Ismael Asensio a8dd699840 Get rid of -Wdeprecated-copy warning
Summary:
Remove the explicit copy constructor of `KItemListStyleOption`, since it does not
add any logic to what the implicit copy constructor does, but triggers a compiler
warning if we don't overload `operator=` too.

Test Plan:
Compiles without `-Wdeprecated-copy` warning
No behavior changes

Reviewers: elvisangelaccio, #dolphin

Reviewed By: elvisangelaccio, #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26585
2020-01-12 19:00:25 +01:00
Robert Hoffmann 17e127edcd Add only canonical paths to dirWatcher
Summary: KDirWatch only works correctly with canonical paths, i.e. symbolic links resolved.

Test Plan:
1. Create dirs:
$ mkdir test1
$ mkdir test1/subdir
$ ln -s test1 test2

2. Start dolphin, navigate to test2/subdir, then in terminal:
$ echo test > test2/subdir/test

Without the patch, test2/subdir/test won't be shown automatically, only after reload (F5).
With the patch applied, test2/subdir/test will be shown automatically.

3. Restart dolphin, navigate to test2/subdir, then in terminal:
$ echo test >> test2/subdir/test

Without the patch, the increased size of test2/subdir/test won't be shown automatically,
only after reload (F5). With the patch applied, it will be shown automatically.

4. Restart dolphin, navigate to test2/subdir, then in terminal:
$ rm test2/subdir/test

Without the patch, test2/subdir/test stays visible, will only disappear after reload (F5).
With the patch applied, it will disappear automatically.

Reviewers: dfaure, #dolphin, elvisangelaccio

Reviewed By: dfaure, #dolphin, elvisangelaccio

Subscribers: ngraham, elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25732
2020-01-11 21:59:12 +01:00
Nate Graham 09e215be46 "Use newly-upstreamed rename dialog from KIO""
This reverts commit 41105103b0.

KIO's version was just bumped to 5.67, so this can land now without
breaking the CI.
2020-01-11 13:21:52 -07:00
Elvis Angelaccio 10d6556373 Merge branch 'release/19.12' 2020-01-11 16:15:14 +01:00
Piotr Henryk Dabrowski f729f6f5b1 Hide tooltip instantly on filter change
Summary:
Instantly hide tooltip shown over an element when filter bar changes.

Currently the tooltip stays even when filtering causes the file under the mouse to change or disappears entirely.
The tooltip also continues to cover much of the window - hiding the new filtering results from user.

This is an enhancement to D22512

Test Plan:
1. place the mouse pointer over a file to show the tooltip
2. press "/" to activate filter bar
3. type in filter phrase

Reviewers: #dolphin, elvisangelaccio, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26576
2020-01-11 16:13:08 +01:00
Nate Graham 41105103b0 Revert "Use newly-upstreamed rename dialog from KIO"
This reverts commit bae6620f22.

Frameworks 5.67 doesn't exist yet; this needs to wait another month.
2020-01-06 14:34:36 -07:00
Nate Graham bae6620f22 Use newly-upstreamed rename dialog from KIO
Summary:
With the rename dialog upstreamed in D17595, we can use it from there.

This will require the KF5 dep to be bumped to 5.67, which should be feasible given that we're at the very beginning of a new Applications cycle.

Depends on D17595

Test Plan:
1. Dolphin Settings > uncheck "rename inline"
2. Rename one or more files. Observe that it still works

Tests still pass.

Reviewers: #dolphin, elvisangelaccio, meven

Reviewed By: elvisangelaccio, meven

Subscribers: meven, broulik, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D17597
2020-01-06 14:25:44 -07:00
Ismael Asensio 296082b2b9 (search) Keep menu open when selecting tags
Summary:
Keeps the `Tags` menu open while selecting and deselecting tags in the
search panel, saving many mouse clicks for multiple tags.
It cannot be done natively on `QMenu` (https://bugreports.qt.io/browse/QTBUG-6635)
but it is a one-liner and I haven't seen any bad behavior so far.

Test Plan:
{F7853717}

- `Tags` menu does not close when selecting/deselecting tags
- Tag search is consistent
- Clicking anywhere else will close the menu

Reviewers: #dolphin, elvisangelaccio, ngraham, #vdg

Reviewed By: #dolphin, elvisangelaccio, #vdg

Subscribers: #vdg, broulik, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26343
2020-01-06 16:03:46 +01:00
Christoph Feck 771f78276d Update Appstream for new release 2020-01-06 14:49:19 +01:00
Laurent Montel 98dec73ecc Don't use nullptr for flag. Just use default argument here 2020-01-06 13:30:12 +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 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
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
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
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
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
René Bertin 83dc0afe46 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
2019-11-12 17:47:35 +01:00
Méven Car e2e43c9073 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
2019-11-12 13:50:18 +01:00
Méven Car 89a7b316d1 [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
2019-11-12 08:20:58 +01:00
l10n daemon script 3984e607bb 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-11-11 09:42:43 +01:00
l10n daemon script b9a2df09fc 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-11-11 05:17:33 +01:00
David Faure d8f9ca49d3 Port away from deprecated API in KWindowSystem >= 5.62 2019-11-10 14:19:17 +01:00
Elvis Angelaccio 2e9f6a7abf 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
2019-11-10 10:03:25 +01:00
Elvis Angelaccio 16a3aea6a6 Remove unnecessary semicolons after Q_UNUSED
GIT_SILENT
2019-11-09 22:09:16 +01:00
Elvis Angelaccio 3512293b98 Fix clazy writing-to-temporary warning 2019-11-09 22:09:16 +01:00
Elvis Angelaccio 273fc202fd 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`.
2019-11-09 22:09:16 +01:00
Elvis Angelaccio b2d4e3322a Fix clazy inefficient-qlist-soft warning 2019-11-09 22:09:16 +01:00
Méven Car 31bc909c3b [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
2019-11-09 22:00:35 +01:00
Ismael Asensio 7949aee2d2 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
2019-11-07 01:51:25 +01:00
Ismael Asensio 54bd267eb9 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
2019-11-03 23:00:36 +01:00
l10n daemon script 5338054145 GIT_SILENT made messages (after extraction) 2019-10-30 02:32:30 +01:00
Nate Graham 686a03550f Replace old deleted nepomuk icon with baloo icon 2019-10-29 08:11:52 -06:00
Yuri Chornoivan 96ebcb03df Fix minor issues found by EBN 2019-10-28 16:33:08 +02:00
l10n daemon script e6dc4739c3 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-10-28 05:14:09 +01:00