]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
6 years agoMerge branch 'Applications/19.08'
Alexander Potashev [Sun, 21 Jul 2019 14:53:36 +0000 (17:53 +0300)]
Merge branch 'Applications/19.08'

6 years agoservicemenuinstaller: Fix placeholders in i18n string
Alexander Potashev [Sat, 20 Jul 2019 20:56:35 +0000 (23:56 +0300)]
servicemenuinstaller: Fix placeholders in i18n string

Test Plan: it compiles

Reviewers: #dolphin, aacid

Reviewed By: aacid

Subscribers: aacid, ltoscano, kde-i18n-doc, kfm-devel, #localization

Tags: #dolphin

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

6 years agoFix rubber band not going away after right-click
Jackson Reed McNeill [Wed, 17 Jul 2019 19:35:51 +0000 (21:35 +0200)]
Fix rubber band not going away after right-click

Summary: Fix rubber band not going away after right-click in the folder view

Test Plan:
Hold left click
Drag to make rubber band
Right click

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham

Subscribers: elvisangelaccio, ngraham, kfm-devel

Tags: #dolphin

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

6 years agoMerge branch 'Applications/19.08'
Alexander Potashev [Tue, 16 Jul 2019 12:06:34 +0000 (15:06 +0300)]
Merge branch 'Applications/19.08'

6 years agoservicemenuinstaller: Run installation scripts with cwd in their parent directories
Alexander Potashev [Mon, 15 Jul 2019 19:17:03 +0000 (22:17 +0300)]
servicemenuinstaller: Run installation scripts with cwd in their parent directories

Summary:
Otherwise, if cwd is set to the unpacked dir root, some service menus
fail to install.

Test Plan:
 - Successfully Installed and uninstalled the "Color Folder" service menu from "Configure Dolphin..." -> service menus -> KNewStuff.
 - ./test_run.rb still passes all its tests.

Reviewers: elvisangelaccio, sitter

Reviewed By: sitter

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoservicemenuinstaller: Use QMimeDatabase instead of running xdg-mime
Alexander Potashev [Sun, 14 Jul 2019 23:21:35 +0000 (02:21 +0300)]
servicemenuinstaller: Use QMimeDatabase instead of running xdg-mime

Test Plan: ./test_run.rb still passes all tests.

Reviewers: elvisangelaccio, sitter, ngraham

Reviewed By: elvisangelaccio, ngraham

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.11.70.
Albert Astals Cid [Mon, 15 Jul 2019 19:39:44 +0000 (21:39 +0200)]
GIT_SILENT Upgrade KDE Applications version to 19.11.70.

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.07.80.
Albert Astals Cid [Mon, 15 Jul 2019 19:17:55 +0000 (21:17 +0200)]
GIT_SILENT Upgrade KDE Applications version to 19.07.80.

6 years agoFix a regression preventing previews to be resized
Méven Car [Mon, 15 Jul 2019 14:19:09 +0000 (16:19 +0200)]
Fix a regression preventing previews to be resized

Summary: e6c1b97d67f6b6c6d4ad935db14241b041b3fca4 introduced a regression preventing previews to be properly resized.

Test Plan: Manual : resizing the information panel and the window

Reviewers: #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoi18n: drop servicemenuinstaller messages from main po file
Pino Toscano [Mon, 15 Jul 2019 06:08:23 +0000 (08:08 +0200)]
i18n: drop servicemenuinstaller messages from main po file

They are extracted in an own pot file, so no need to duplicate them in
dolphin.pot

6 years agoRewrite servicemenu helper utility in C++
Alexander Potashev [Sun, 14 Jul 2019 21:14:51 +0000 (00:14 +0300)]
Rewrite servicemenu helper utility in C++

Summary:
     - Also support MIME type "application/x-compressed-tar".
     - Update tests in Ruby, remove SimpleCov.

BUG: 399229

Test Plan: Ruby tests passed

Reviewers: sitter, elvisangelaccio, ngraham

Reviewed By: elvisangelaccio

Subscribers: cfeck, kfm-devel

Tags: #dolphin

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

6 years agoUse more human-readable sort order descriptions
Nicolas Fella [Sat, 22 Jun 2019 15:52:35 +0000 (17:52 +0200)]
Use more human-readable sort order descriptions

Summary:
Anecdotal evidence shows that ascending/descending regularly takes people longer to process than necessary. This patch implements more human-friendly sort order descriptions, in particular:

A-Z/Z-A for text
Newest first/oldest-first for time
Lowest first/highest first for rating
smallest first/largest first for sizes

If there is no string for a particular role defined it will fall back to Ascending/Descending.

I'm aware that not every language uses A-Z. In this case the translator can pick any string that represents the concept of text sorting

Test Plan: Sort view in various ways

Reviewers: #dolphin, #vdg, ngraham

Reviewed By: #dolphin, #vdg, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

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

6 years agoAdd docs about the new 'Open new folders in tabs' option
Yuri Chornoivan [Wed, 26 Jun 2019 07:48:17 +0000 (10:48 +0300)]
Add docs about the new 'Open new folders in tabs' option

6 years agoFix crash without baloo
Kai Uwe Broulik [Tue, 25 Jun 2019 13:26:59 +0000 (15:26 +0200)]
Fix crash without baloo

6 years agoFix minor typos
Yuri Chornoivan [Mon, 24 Jun 2019 05:40:39 +0000 (08:40 +0300)]
Fix minor typos

6 years agoAdd "What's This?" to nearly everything in the main window
Felix Ernst [Sun, 23 Jun 2019 19:19:49 +0000 (21:19 +0200)]
Add "What's This?" to nearly everything in the main window

Summary:
This commit adds "What's This?" help to nearly everything in the
Dolphin main window (panels, views, buttons, ...). It adds the "?"
to the title bar so this help can easily be called.

For links in those help texts to work the WhatsThisClickedEvents are
handled in the main window class. This doesn't work for menus because
events from them aren't forwarded to the main window for some
reason so EventFilters are installed for the Control button menus.

Modifying the "Help" menu of KXmlGui is deprecated so no EventFilter
can be installed in the menubar. Therefore help texts without links
are provided for the menubar.

Test Plan:
Check if the event handling might make any problems.
Check for any big mistakes in the help messages.

Reviewers: #dolphin, elvisangelaccio

Subscribers: broulik, elvisangelaccio, yurchor, kfm-devel

Tags: #dolphin

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

6 years agoAllow dolphin to auto-play previewed media file, click on preview to play/pause video...
Méven Car [Sun, 14 Apr 2019 14:54:54 +0000 (16:54 +0200)]
Allow dolphin to auto-play previewed media file, click on preview to play/pause videos or audio

Summary:
It is based on D19844.

I did my best to avoid glitches hence the amount of code touched.

Retry after @pekkah D7539
Moved the setting to the information panel context menu, no more timer

Settings screenshot :
{F6700220}

This would mach the same feature in the open/save dialog (although not equivalent)
{F6696456}

FEATURE: 378613
FIXED-IN: 19.08.0
GUI: New information panel context menu option

Test Plan:
Without auto play
  - in dolphin with the information panel opened, and the auto media play feature is disabled (right on the information panel)
  - hover over media files
  - the behavior is the same as before the patch

With auto play
  - in dolphin with the information panel opened, and the auto media play feature is enabled
  - hover over media files
  - media is played automatically
  - hover over another media file, the new media is previewed

Use audio or video file as media.

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, elvisangelaccio, ngraham

Subscribers: ngraham, broulik, kfm-devel, pekkah

Tags: #dolphin

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

6 years agoFix tests relating to the removal of the Root Place in D15739
Méven Car [Tue, 18 Jun 2019 11:08:00 +0000 (13:08 +0200)]
Fix tests relating to the removal of the Root Place in D15739

Summary: See D15739

Test Plan: ctest

Reviewers: elvisangelaccio, ngraham

Reviewed By: elvisangelaccio, ngraham

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoAdding option to open externally called folder in a new tab
Alexander Saoutkin [Sun, 23 Jun 2019 11:22:41 +0000 (13:22 +0200)]
Adding option to open externally called folder in a new tab

Summary:
Adds an option to open externally called folder in a new tab.

By default this option is enabled

Test Plan:
If option selected:
1. All valid arguments passed to Dolphin should be opened in tabs of an instance(s) (if it exists). Duplicate tabs just change activation to current tab.

If option not selected:
1. All calls to Dolphin result in a new instance being opened

This option does not require Dolphin to be restarted to take effect.

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: broulik, ngraham, kfm-devel

Tags: #dolphin

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

6 years agoImprove README documentation
Nate Graham [Sun, 23 Jun 2019 10:27:06 +0000 (12:27 +0200)]
Improve README documentation

Summary:
Previously, README contained nothing but a link to userbase. A separate HACKING.md
file had non-technical developer documentation, but nothing technical to guide
people in the right direction.

This patch consolidates all information in the README file and adds technical
information about how to develop Dolphin.

BUG: 408967

Test Plan: Just read it :)

Reviewers: #documentation, #dolphin, yurchor

Reviewed By: #documentation, yurchor

Subscribers: yurchor, kfm-devel

Tags: #dolphin

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

6 years agoOpen new instance of Dolphin if no URLs are given
Alexander Saoutkin [Sat, 22 Jun 2019 13:44:11 +0000 (15:44 +0200)]
Open new instance of Dolphin if no URLs are given

Summary:
BUG: 408387
BUG: 408244
FIXED-IN: 19.08.0

Currently Dolphin only opens a new instance of itself in the following two scenarios:
1. No other Dolphin instances ( D21666 deals with not matching daemonized instances) are currently running.
2. A new instance is explicitly asked for via:  `dolphin --new-window`

A third scenario is needed to fix this bug:
3. If no URLs are passed in as arguments then open a new instance.

This patch adds this third scenario.

Test Plan:
STEPS TO REPRODUCE
1. Open Dolphin
2. Right-click on Dolphin's Task Manager Entry and click "Start New Instance"
3. A new instance is created.

As my system stuff is not built on master I am unable to replicate the bug (and can't confirm whether this fixes it), hence I'll rely on @ngraham to confirm whether this patch fixes the issue.

Reviewers: ngraham, elvisangelaccio

Reviewed By: ngraham, elvisangelaccio

Subscribers: elvisangelaccio, ngraham, kfm-devel

Tags: #dolphin

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

6 years agoFix ECM version comparison
Elvis Angelaccio [Sun, 16 Jun 2019 10:02:42 +0000 (12:02 +0200)]
Fix ECM version comparison

CCMAIL: montel@kde.org

6 years agoInstall in new logging directory when we use kf5 5.59.0
Laurent Montel [Thu, 13 Jun 2019 05:07:25 +0000 (07:07 +0200)]
Install in new logging directory when we use kf5 5.59.0

6 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Tue, 11 Jun 2019 03:13:47 +0000 (05:13 +0200)]
SVN_SILENT made messages (.desktop file) - always resolve ours

In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"

6 years agoDo not match daemonized dolphin instances
Elvis Angelaccio [Mon, 10 Jun 2019 20:13:12 +0000 (22:13 +0200)]
Do not match daemonized dolphin instances

Summary:
`dolphin --daemon` does not have the `/dolphin/Dolphin_1` dbus path,
because it doesn't have any DolphinMainWindow.

Checking if the QDBusInterface is valid is not enough, we also need to look for dbus errors.

BUG: 408244

Test Plan:
1. Make sure there is a `dolphin --deamon` process around.
2. Start another dolphin process.

Reviewers: broulik, ngraham, feverfew

Reviewed By: feverfew

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoFix container detaching
Elvis Angelaccio [Sat, 8 Jun 2019 11:11:47 +0000 (13:11 +0200)]
Fix container detaching

6 years agoMake Bookmarks item work properly as a toolbar item
Nate Graham [Fri, 7 Jun 2019 15:50:53 +0000 (09:50 -0600)]
Make Bookmarks item work properly as a toolbar item
- Make its menu open on click, not click-and-hold
- Give it a proper icon

BUG: 408346
FIXED-IN: 19.08.0

6 years ago[DolphinContextMenu] Restore check for whether place already exists
Kai Uwe Broulik [Fri, 7 Jun 2019 08:37:06 +0000 (10:37 +0200)]
[DolphinContextMenu] Restore check for whether place already exists

Now that we have a places singleton it adds no real overhead.

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

6 years agoScroll when pressing PageUp/PageDown
Tranter Madi [Tue, 4 Jun 2019 08:49:39 +0000 (15:49 +0700)]
Scroll when pressing PageUp/PageDown

Summary:
Add `PageUp/PageDown` to the `navigationPressed` variable.
Remove the `m_view->firstVisibleIndex()` and `m_view->lastVisibleIndex()` tests because sometimes it does not work correctly.

BUG: 407118

Test Plan:
Press PageUp/PageDOwn: it scrolls
Press Up/DOwn: it always scrolls

Reviewers: #dolphin, Zren, cfeck, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

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

6 years agoMerge branch 'Applications/19.04'
Kai Uwe Broulik [Tue, 4 Jun 2019 06:59:02 +0000 (08:59 +0200)]
Merge branch 'Applications/19.04'

6 years ago[Places Panel] Pass iconName to KFilePlaceEditDialog
Kai Uwe Broulik [Tue, 4 Jun 2019 06:58:28 +0000 (08:58 +0200)]
[Places Panel] Pass iconName to KFilePlaceEditDialog

Ensures that editing an entry with a custom icon doesn't have its icon discarded.

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

6 years agoTighter match own service when trying to find suitable window to open path in.
Thomas Posch [Mon, 3 Jun 2019 19:52:10 +0000 (21:52 +0200)]
Tighter match own service when trying to find suitable window to open path in.

Summary:
Current implementation matches org.kde.dolphin-.*PID while trying to exclude itself from the list of running instances.
With this fix applied only org.kde.dolphin-PID is matched.

Test Plan: Open dolphin twice. Observe only one window.

Reviewers: feverfew, #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

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

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.04.2.
Christoph Feck [Fri, 31 May 2019 10:26:13 +0000 (12:26 +0200)]
GIT_SILENT Upgrade KDE Applications version to 19.04.2.

6 years agoOpen externally called files/directories in new tabs
Alexander Saoutkin [Thu, 30 May 2019 20:22:43 +0000 (22:22 +0200)]
Open externally called files/directories in new tabs

Summary:
FEATURE: 183429
FIXED-IN: 19.08.0
GUI: new cli argument --new-window

Externally called files/directories are opened in a a new tab of an instance of Dolphin that already exists. If any of the given URIs are already open in a tab, then those tabs are activated instead of a new tab being opened.  If there is no instance then the files/directories are opened in a new window. The newly opened file/directory has its tab activated, and consequently, the window is also activated.

When the user clicks "Open In New Window" or "Detach Tab", the files/directories are opened in a new window.

Test Plan:
[Manual]
Before testing, set the default file manager in system settings as the newly built Dolphin executable.
One must also include the new dolphin executable in the $PATH, otherwise some functions will attempt to open the system dolphin instead of the new one.

Furthermore, running two different versions of Dolphin (in particular, where one does not have this patch included) can result in bugs appearing, in particular, new tabs not opening as old instances will not recognise the DBus commands sent to it. However, I see no reason why a user will have two different versions of Dolphin (apart from people like us :D).

Open directories with the help of auxillary programs (i.e. a browser). The files/directories should appear in a new window if an instance does not exist. If an existence already exists, then a new tab should be opened and activated in that instance and the window activated.
Use QDBusViewer to open folders/items by calling the ShowFolders/ShowItems methods in org.freedesktop.FileManager1 of the Dolphin instance.
When a user chooses to "Open In New Window"/"Detach Tab" then the files/directories should be opened in a new window.

Reviewers: #dolphin, elvisangelaccio

Subscribers: zzag, dfaure, fvogt, fikrim, magar, fbg13, davidedmundson, kwin, ngraham, elvisangelaccio, anthonyfieroni, kfm-devel

Tags: #dolphin

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

6 years agohandle maps with multiple or single entries from Baloo
Alexander Stippich [Tue, 21 May 2019 18:27:29 +0000 (20:27 +0200)]
handle maps with multiple or single entries from Baloo

Summary:
Handle maps which may contain multiple entries with the same key.
Bumps frameworks to 5.58. Equivalent to D20739.

Reviewers: #dolphin, elvisangelaccio, bruns

Reviewed By: #dolphin, elvisangelaccio, bruns

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoWhen filter bar is focused, switch to view when tab key is pressed
Nate Graham [Sun, 26 May 2019 03:32:13 +0000 (21:32 -0600)]
When filter bar is focused, switch to view when tab key is pressed

Summary:
Various people have requested that the tab key move keyboard focus from the filter bar's
text edit field to the main view. It already does this when the Enter and return keys
are pressed, but apparently this is not very intuitive and people expect Tab to work too.

This patch makes that behavior possible by moving the Lock button to the left of the
text edit field, and re-arranging the code so that the filter bar is initialized first.
This works because Qt assigns tab ordering by default according to the order of widget
construction. So if we simply construct the main view right after the filter bar, then
the tab ordering is set up this way automatically.

BUG: 403379
BUG: 403356
FIXED-IN: 19.08.0

Test Plan:
1. Activate Filter bar
2. Hit Tab key
3. View has become focused
4. Play around in Dolphin for a while and notice no regressions or crashes

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Fri, 24 May 2019 00:40:13 +0000 (02:40 +0200)]
GIT_SILENT made messages (after extraction)

6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Thu, 23 May 2019 05:22:07 +0000 (07:22 +0200)]
GIT_SILENT made messages (after extraction)

6 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Wed, 22 May 2019 03:14:39 +0000 (05:14 +0200)]
SVN_SILENT made messages (.desktop file) - always resolve ours

In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"

6 years agoAdd Documents shortcut detection
Andrew Crouthamel [Mon, 20 May 2019 22:20:28 +0000 (16:20 -0600)]
Add Documents shortcut detection

Summary:
This adds support for Documents detection when included as a default
as implemented in D16852. This is a work-in-progress and currently
does not succeed.

Assistance is welcome.

Test Plan: Run ctest within the dolphin build directory.

Reviewers: #dolphin

Subscribers: elvisangelaccio, kfm-devel, ngraham

Tags: #dolphin

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

6 years agoMerge branch 'Applications/19.04'
Nate Graham [Mon, 20 May 2019 13:15:05 +0000 (07:15 -0600)]
Merge branch 'Applications/19.04'

6 years agoElide tab titles left so key information at the end of the string doesn't get cut off
Nate Graham [Fri, 19 Apr 2019 16:24:52 +0000 (10:24 -0600)]
Elide tab titles left so key information at the end of the string doesn't get cut off

Summary:
Tab Titles currently elide right. Generally the more useful information is at the right
side of the string--even more so when full paths are being used.

BUG: 406569
FIXED-IN: 19.04.2

Test Plan:
- No change when tab titles don't get elided
- When tabs show the full path and titles are elided, they're now useful: {F6782447}
- When tabs don't show the full path and are elided, they're elided on the other side which seems maybe a tiny bit better, but at least no worse: {F6782448}

Reviewers: #dolphin, #vdg, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: ndavis, elvisangelaccio, kneckermcknacksack, filipf, kfm-devel

Tags: #dolphin

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

6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 15 May 2019 05:56:38 +0000 (07:56 +0200)]
GIT_SILENT made messages (after extraction)

6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 15 May 2019 00:39:28 +0000 (02:39 +0200)]
GIT_SILENT made messages (after extraction)

6 years agoSummary: Fixes crash when hiding devices
David Hallas [Mon, 22 Apr 2019 17:40:16 +0000 (19:40 +0200)]
Summary: Fixes crash when hiding devices

Summary:
Fixes crash when hiding devices. The crash is caused by
KStandardItem::setDataValue which calls the
KStandardItemModel::onItemChanged function, and that function will
delete the KStandardItem if the data value being set is the hidden
attribute being set to true. To fix this KStandardItem now derives
QObject so that we can use deleteLater.

Test Plan:
Right click a device in the places panel and select hide
Right click the places panel and select show hidden
Right click the hidden device and select show
Right click the same device and select hide

BUG: 403064

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoAdd Bookmark Handling
David Hallas [Wed, 20 Mar 2019 19:29:20 +0000 (20:29 +0100)]
Add Bookmark Handling

Summary:
Add Bookmark Handling. Adds complete bookmark support as provided by
other KDE applications like Konsole and Konqueror. This allows you to
bookmark individual folders, create bookmark folders and open them.

Test Plan:
Go -> Bookmark -> Add Bookmark
Go -> Bookmark -> [Open the bookmark you selected]

FEATURE: 171366

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, elvisangelaccio, ngraham

Subscribers: ognarb, meven, loh.tar, cfeck, hein, kfm-devel

Tags: #dolphin

Maniphest Tasks: T5408

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

6 years agoFix stale comment
Elvis Angelaccio [Sun, 12 May 2019 16:18:36 +0000 (18:18 +0200)]
Fix stale comment

GIT_SILENT

6 years agoFix indentation
Elvis Angelaccio [Sun, 12 May 2019 11:09:39 +0000 (13:09 +0200)]
Fix indentation

GIT_SILENT

6 years ago[Inline Rename] Move cursor to correct position on pressing Home and End
Chinmoy Ranjan Pradhan [Sun, 5 May 2019 13:00:19 +0000 (18:30 +0530)]
[Inline Rename] Move cursor to correct position on pressing Home and End

Summary:
When pressing home or end key on a wrapped file name the cursor should move to beginning or end of the whole file name
instead of the last line (which is the default behaviour of any textedit widget).

BUG: 363179

Reviewers: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoservices/test: Fix test
Alexander Potashev [Sat, 4 May 2019 04:00:30 +0000 (07:00 +0300)]
services/test: Fix test

Reviewers: #dolphin, elvisangelaccio, sitter

Reviewed By: sitter

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoGet rid of ugly static_cast usages in connect() calls
Elvis Angelaccio [Sun, 5 May 2019 15:20:44 +0000 (17:20 +0200)]
Get rid of ugly static_cast usages in connect() calls

6 years ago[PlacesItemModelTest] Rename variable
Elvis Angelaccio [Sun, 5 May 2019 15:05:46 +0000 (17:05 +0200)]
[PlacesItemModelTest] Rename variable

This variable is not the expected size of the groups list, but it's the
expected index of the 'Remote' group in the model.

6 years agoFix formatting in CMakeLists.txt
Alexander Potashev [Sat, 4 May 2019 03:59:30 +0000 (06:59 +0300)]
Fix formatting in CMakeLists.txt

Reviewers: elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoMerge branch 'Applications/19.04'
Elvis Angelaccio [Sun, 5 May 2019 15:02:59 +0000 (17:02 +0200)]
Merge branch 'Applications/19.04'

6 years ago[PlacesItemModelTest] Ignore user tag places
Elvis Angelaccio [Sun, 5 May 2019 14:52:16 +0000 (16:52 +0200)]
[PlacesItemModelTest] Ignore user tag places

Instead of listing the user tags (as tried in D21017), the test should not have
access to the user's baloo DB in the first place.

To do so, we use a QTemporaryDir as $HOME for the test process and for
its ioslave children (by setting KDE_FORK_SLAVES=yes).

While at it, drop the no-op removeTestUserData() function.

6 years agoMerge branch 'Applications/19.04'
Elvis Angelaccio [Sun, 5 May 2019 14:02:46 +0000 (16:02 +0200)]
Merge branch 'Applications/19.04'

6 years agoTry again to fix PlacesItemModelTest::testDefaultViewProperties()
Elvis Angelaccio [Sun, 5 May 2019 13:54:12 +0000 (15:54 +0200)]
Try again to fix PlacesItemModelTest::testDefaultViewProperties()

Commit bff373d598c031cb1 was not enough because the model takes into
account the global view properties setting (in PlacesItemModel::initializeDefaultViewProperties()).

This means we need to disable the setting before init() runs.

6 years agoFix create_symlink path to DESTDIR instead of root file system
Arfrever Frehtes Taifersar Arahesis [Sat, 4 May 2019 11:26:00 +0000 (13:26 +0200)]
Fix create_symlink path to DESTDIR instead of root file system

Test Plan: Builds fine again in a sandbox, with the symlink properly installed.

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: davidedmundson, elvisangelaccio, kfm-devel, ngraham

Tags: #dolphin

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

6 years agoFix wrong apidox
Elvis Angelaccio [Sat, 4 May 2019 11:24:16 +0000 (13:24 +0200)]
Fix wrong apidox

There is no KStandardItemView class in dolphin. This apidox has been
wrong since the beginning (see commit ae4d11d918938fd9087f2035dac).

GIT_SILENT

6 years agoMerge branch 'Applications/19.04'
Elvis Angelaccio [Sat, 4 May 2019 09:59:56 +0000 (11:59 +0200)]
Merge branch 'Applications/19.04'

6 years agoFix dolphin cannot be added as favourite in GNOME
Elvis Angelaccio [Sat, 4 May 2019 09:49:15 +0000 (11:49 +0200)]
Fix dolphin cannot be added as favourite in GNOME

The StartupWMClass entry is needed because gnome-shell gets confused by
the mismatch between the desktop file basename ('org.kde.dolphin') and
the WM_CLASS window property ('dolphin').

BUG: 407198
FIXED-IN: 19.04.1

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.04.1.
Christoph Feck [Thu, 2 May 2019 10:45:07 +0000 (12:45 +0200)]
GIT_SILENT Upgrade KDE Applications version to 19.04.1.

6 years ago[InformationPanel] Use the new inline configuration mode
Stefan Brüns [Sun, 14 Apr 2019 00:44:01 +0000 (02:44 +0200)]
[InformationPanel] Use the new inline configuration mode

Summary:
The current external configuration dialog has some issues:

- its layout is suboptimal, as its initial size is typically to small
- it is quite disassociated with the actual widget it configures, properties
  have a different order, and the property names can be quite abstract
  without the corresponding value.

Doing the visibility selection inline typically avoids the sizing problem,
as the containing application (dolphin) is often vertically maximized.
The selection becomes more obvious, as the item order is kept,
and the values are shown.

Depends on D20524

CCBUG: 389571

Reviewers: #dolphin, #baloo, #frameworks, ngraham, astippich, #vdg, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, meven, kfm-devel

Tags: #dolphin

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

6 years agoUse placeholder for search action
Carl Schwan [Thu, 14 Mar 2019 19:53:49 +0000 (20:53 +0100)]
Use placeholder for search action

Summary:
See https://hig.kde.org/style/writing/placeholder.html

Screenshot:

Old: {F6691712}
New: {F6698685}

Test Plan: Compile and run

Reviewers: #dolphin, #vdg, ngraham, elvisangelaccio

Reviewed By: #dolphin, #vdg, ngraham

Subscribers: GB_2, kde-doc-english, elvisangelaccio, ngraham, yurchor, kfm-devel

Tags: #dolphin, #documentation

Maniphest Tasks: T10258

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

6 years ago[InformationPanel] Remove obsolete intermediate wrapper widget/layout
Stefan Brüns [Mon, 22 Apr 2019 11:42:34 +0000 (13:42 +0200)]
[InformationPanel] Remove obsolete intermediate wrapper widget/layout

The Baloo::MetaDataWidget is now able to stretch in a meaningful way
by itself, remove the wrapper.

Summary: Depends on D20667

Reviewers: #dolphin, #baloo, #frameworks, ngraham, astippich, elvisangelaccio

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

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoMore coding style fixes
Elvis Angelaccio [Sat, 20 Apr 2019 14:28:38 +0000 (16:28 +0200)]
More coding style fixes

GIT_SILENT

6 years agoMerge branch 'Applications/19.04'
Elvis Angelaccio [Sat, 20 Apr 2019 14:26:55 +0000 (16:26 +0200)]
Merge branch 'Applications/19.04'

6 years agoFix missing update of file name label in information panel without preview
Stefan Brüns [Thu, 18 Apr 2019 12:37:09 +0000 (14:37 +0200)]
Fix missing update of file name label in information panel without preview

Summary:
The file name label was only updated when the preview was shown, after
the function was moved into a conditional section. This is a regression
caused by commit 405aa4878f75 ("[InformationPanel] Hide the video when the
preview is disabled, avoid computing the preview when it is disabled").

Test Plan:
Hide the preview in dolphin's information panel
Hover different files, the name label reflects the hovered file again

Reviewers: #dolphin, elvisangelaccio, meven, ngraham

Reviewed By: meven

Subscribers: kfm-devel

Tags: #dolphin

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

6 years ago[InformationPanelContent] Fix coding style
Elvis Angelaccio [Sun, 14 Apr 2019 20:47:47 +0000 (22:47 +0200)]
[InformationPanelContent] Fix coding style

GIT_SILENT

6 years agoMerge branch 'Applications/19.04'
Nate Graham [Thu, 18 Apr 2019 19:17:13 +0000 (13:17 -0600)]
Merge branch 'Applications/19.04'

6 years agoFix adding "Create New..." menu to toolbar
Nate Graham [Thu, 18 Apr 2019 13:43:09 +0000 (07:43 -0600)]
Fix adding "Create New..." menu to toolbar

Summary:
Access the object by its existing name rather than renaming it.

BUG: 405780
FIXED-IN: 19.04.1

Test Plan:
- Add {nav Create New} item to toolbar; it now works
- Verify that {nav Create New} menu and toolbar items are disabled when in the trash
- All tests still pass

Reviewers: elvisangelaccio, broulik, #dolphin, cfeck

Reviewed By: cfeck

Subscribers: cfeck, kfm-devel

Tags: #dolphin

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

6 years agoFix missing update of file name label in information panel without preview
Stefan Brüns [Thu, 18 Apr 2019 12:37:09 +0000 (14:37 +0200)]
Fix missing update of file name label in information panel without preview

Summary:
The file name label was only updated when the preview was shown, after
the function was moved into a conditional section. This is a regression
caused by commit 405aa4878f75 ("[InformationPanel] Hide the video when the
preview is disabled, avoid computing the preview when it is disabled").

Test Plan:
Hide the preview in dolphin's information panel
Hover different files, the name label reflects the hovered file again

Reviewers: #dolphin, elvisangelaccio, meven, ngraham

Reviewed By: meven

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoRemove last traces of KFileMetaDataWidget from information panel
Stefan Brüns [Sun, 14 Apr 2019 12:46:51 +0000 (14:46 +0200)]
Remove last traces of KFileMetaDataWidget from information panel

Summary:
The whole information panel is not included when Baloo is not found,
so there is no need for the HAVE_BALOO guards.
KFileMetaDataWidget and KFileMetaDataConfigurationWidget were never part
of KF5, see https://git.reviewboard.kde.org/r/113153/

Test Plan: ctest

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

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

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

6 years ago[Information Panel] Remove nullptr checks for MetaDataWidget member
Stefan Brüns [Sun, 14 Apr 2019 12:44:02 +0000 (14:44 +0200)]
[Information Panel] Remove nullptr checks for MetaDataWidget member

Summary:
The widget has the same livetime as the containing widget, no need to
do any extra checks.

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Fri, 12 Apr 2019 05:49:57 +0000 (07:49 +0200)]
GIT_SILENT made messages (after extraction)

6 years agoScroll to item if it's not visible on keyPress
Tranter Madi [Mon, 1 Apr 2019 03:59:04 +0000 (10:59 +0700)]
Scroll to item if it's not visible on keyPress

Summary: Always scroll to item if it's not visible on keyPress, even if it's the current index.

Test Plan: Select the last item, scroll up to make it not visible > press the `End` key > Dolphin now scrolls to that item.

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

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

6 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Fri, 12 Apr 2019 00:51:38 +0000 (02:51 +0200)]
GIT_SILENT made messages (after extraction)

6 years agoMerge branch 'Applications/19.04'
Nate Graham [Wed, 10 Apr 2019 02:22:23 +0000 (20:22 -0600)]
Merge branch 'Applications/19.04'

6 years agoDon't show "Open With" menu items for empty directories
Nate Graham [Mon, 8 Apr 2019 22:03:48 +0000 (16:03 -0600)]
Don't show "Open With" menu items for empty directories

Summary:
Any app that registers itself as able to open directories generally can't do anything
useful with an empty directory. So, don't show the {nav Open With} menu items for them.

Test Plan:
Before: {F6759793}

After: {F6759794}

The {nav Open With} items still appear for non-empty directories.

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: trmdi, kfm-devel

Tags: #dolphin

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

6 years agoMake buttons in seach bar nicer (icon, tooltip, autoselect)
Stefan Brüns [Sun, 7 Apr 2019 15:21:17 +0000 (17:21 +0200)]
Make buttons in seach bar nicer (icon, tooltip, autoselect)

Summary:
The "Everywhere" button actually selects the home directory, so use
an appropriate label ("Your files") and add a "user-home" icon.

Pre-select the right button when entering search, depending on the
location where the "Find ..." action was triggered.

Add tooltips for both buttons, stating where to look for files. Most
importantly, this includes the full path for "From here".

Canonicalize the path correctly (always strip trailing slash), otherwise
QUrl::fileName() will be an empty string, resulting in "From Here (/)"

Do not hide the buttons in case the url is non-local, as it is confusing:
1. The state depends on the previous search. When the user hits "Find"
    when browsing e.g an SMB share, the search was probably in the home dir.
2. The current search location was hidden
3. The user may want to do a local search, give the option to do so.

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham, elvisangelaccio

Subscribers: loh.tar, meven, elvisangelaccio, kfm-devel

Tags: #dolphin

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

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.04.0.
Christoph Feck [Mon, 8 Apr 2019 11:59:05 +0000 (13:59 +0200)]
GIT_SILENT Upgrade KDE Applications version to 19.04.0.

6 years agoMerge branch 'Applications/19.04'
Elvis Angelaccio [Sun, 7 Apr 2019 20:51:05 +0000 (22:51 +0200)]
Merge branch 'Applications/19.04'

6 years ago[DolphinMainWindowTest] Fix testNewFileMenuEnabled
Elvis Angelaccio [Sun, 7 Apr 2019 20:18:14 +0000 (22:18 +0200)]
[DolphinMainWindowTest] Fix testNewFileMenuEnabled

The newFileMenu enabled status is updated whenever the KDirLister emits
the `completed` signal: use QTRY_COMPARE so that we can wait for it.

6 years agoAdd HACKING file with 'Philosophy' paragraph from the Userbase page
Elvis Angelaccio [Sun, 7 Apr 2019 15:29:51 +0000 (17:29 +0200)]
Add HACKING file with 'Philosophy' paragraph from the Userbase page

https://userbase.kde.org/Dolphin has a 'Philosophy' paragraph (which
used to be a page on dolphin.kde.org) explaining when a new feature
should be added to dolphin. Userbase is a wiki aimed to actual user of
our applications, while this information is aimed to dolphin developers
who want to add a new feature to dolphin. Thus it is more appropriate to
have this paragraph in the git repo.

6 years ago[KFileItemModelTest] Port to fastInsert()
Elvis Angelaccio [Sun, 7 Apr 2019 15:16:01 +0000 (17:16 +0200)]
[KFileItemModelTest] Port to fastInsert()

We already depend on KF5 > 5.47, so we are ready to switch to the
non-deprecated fastInsert() method.

6 years agoRe-implement Meta-E global launch shortcut using KGlobalAccel
Nate Graham [Wed, 3 Apr 2019 14:56:08 +0000 (08:56 -0600)]
Re-implement Meta-E global launch shortcut using KGlobalAccel

Summary:
FEATURE: 405302
FIXED-IN: 19.08.0

Test Plan:
1. Apply patch
2. Reboot (didn't work until I rebooted or logged out and back in again)
3. Hit {key Meta E}
4. Dolphin Launches

Reviewers: #dolphin, elvisangelaccio, davidedmundson

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

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

6 years agoGIT_SILENT Upgrade KDE Applications version to 19.03.90.
Christoph Feck [Sun, 31 Mar 2019 12:00:39 +0000 (14:00 +0200)]
GIT_SILENT Upgrade KDE Applications version to 19.03.90.

6 years ago[KFileItemModel] Fix alignment of rolesInfoMap
Elvis Angelaccio [Sat, 30 Mar 2019 17:39:28 +0000 (18:39 +0100)]
[KFileItemModel] Fix alignment of rolesInfoMap

GIT_SILENT

6 years agoAdd "Aspect Ratio" and "Frame Rate" to additional video information columns
Kochih Wu [Wed, 27 Mar 2019 18:30:44 +0000 (12:30 -0600)]
Add "Aspect Ratio" and "Frame Rate" to additional video information columns

Summary:
Add options to show aspect ratio and frame rate.

BUG: 366524
FIXED-IN: 19.08.0

Test Plan: Under Control -> Additional Info -> Video, there should be options for aspect ratio and frame rate.

Reviewers: #dolphin, #kde_applications, ngraham

Reviewed By: #dolphin, #kde_applications, ngraham

Subscribers: astippich, ngraham, elvisangelaccio, kfm-devel

Tags: #dolphin

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

6 years agoFix typo in dolphinsettingsdialog.cpp
Yi-Jyun Pan [Wed, 27 Mar 2019 15:59:43 +0000 (09:59 -0600)]
Fix typo in dolphinsettingsdialog.cpp

Summary: Just remove the useless "have".

Reviewers: #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

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

6 years agoPrompt user to save/discard changes upon closing config dialog
Amish Naidu [Mon, 25 Mar 2019 10:11:40 +0000 (15:41 +0530)]
Prompt user to save/discard changes upon closing config dialog

Summary:
When the configuration dialog is closed with unsaved changes,
a message box is prompted to save/discard them or cancel the event.

BUG: 391206

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: ngraham, elvisangelaccio, kfm-devel

Tags: #dolphin

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

6 years agoMerge branch 'Applications/19.04'
Nate Graham [Sun, 24 Mar 2019 17:31:44 +0000 (11:31 -0600)]
Merge branch 'Applications/19.04'

6 years ago[InformationPanel] Hide the video when the preview is disabled, avoid computing the...
Méven Car [Sun, 24 Mar 2019 17:32:25 +0000 (18:32 +0100)]
[InformationPanel] Hide the video when the preview is disabled, avoid computing the preview when it is disabled

Summary:
Bug symptom : {F6698879}

Fix the bugs and allow to avoid launching a PreviewJob with all files even when the preview is disabled.

Test Plan:
 # In dolphin with an information panel with preview on
 # launch the video preview
 # Disable the preview

  ->bug 1: the video player control is still visible (this bug fix this)

 # re-enable preview

 -> bug 2: the video stays visible and the preview is displayed above (this bug fix this)

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, elvisangelaccio, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

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

6 years agoMove Safely Remove down in places context menu
Tigran Gabrielyan [Sun, 24 Mar 2019 17:30:27 +0000 (11:30 -0600)]
Move Safely Remove down in places context menu

Summary: BUG: 405620

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham, elvisangelaccio

Subscribers: elvisangelaccio, ngraham, kfm-devel

Tags: #dolphin

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

6 years agoWhen hovering over a file on the not-focus view panel, the information panel gets...
Méven Car [Sun, 24 Mar 2019 17:37:10 +0000 (18:37 +0100)]
When hovering over a file on the not-focus view panel, the information panel gets updated

Test Plan:
 - In Dolphin with two views (split view) and with the information panels
 - Hover over a file on the not selected view
 - > the information panel show information about this file

No other changes in behavior

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

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

6 years ago[InformationPanel] Hide the video when the preview is disabled, avoid computing the...
Méven Car [Sun, 24 Mar 2019 17:32:25 +0000 (18:32 +0100)]
[InformationPanel] Hide the video when the preview is disabled, avoid computing the preview when it is disabled

Summary:
Bug symptom : {F6698879}

Fix the bugs and allow to avoid launching a PreviewJob with all files even when the preview is disabled.

Test Plan:
 # In dolphin with an information panel with preview on
 # launch the video preview
 # Disable the preview

  ->bug 1: the video player control is still visible (this bug fix this)

 # re-enable preview

 -> bug 2: the video stays visible and the preview is displayed above (this bug fix this)

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, elvisangelaccio, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

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

6 years agoRevert "Create a global launch shortcut (Meta+E)"
Elvis Angelaccio [Sun, 24 Mar 2019 11:07:24 +0000 (12:07 +0100)]
Revert "Create a global launch shortcut (Meta+E)"

This reverts commit 58084cf7da362d77919483cbb9a7a23333ce86c5.

Plasma considers khotkeys deprecated, so we shouldn't add new users
making the migration even harder.
Dolphin should use the `X-KDE-Shortcuts` desktop entry instead.

More details in David's comment: https://phabricator.kde.org/D19831#437096

6 years ago[PhononWidget] Fix layout warning
Elvis Angelaccio [Sun, 24 Mar 2019 10:55:12 +0000 (11:55 +0100)]
[PhononWidget] Fix layout warning

`controlsLayout` should not be a direct child of the widget, since it
already has `m_topLayout` as layout.

This fixes the following warning:

    QLayout: Attempting to add QLayout "" to PhononWidget "", which already has a layout

6 years agoMerge branch 'Applications/19.04'
Elvis Angelaccio [Sat, 23 Mar 2019 09:51:17 +0000 (10:51 +0100)]
Merge branch 'Applications/19.04'

6 years agoConvert foreach to for loops
Méven Car [Fri, 22 Mar 2019 09:36:29 +0000 (10:36 +0100)]
Convert foreach to for loops

Test Plan: Compile

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, elvisangelaccio, ngraham

Subscribers: kfm-devel

Tags: #dolphin

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