]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
8 years agoFix scrolling during inline renaming causes rename of wrong file
Andreas Krutzler [Sun, 19 Nov 2017 03:32:37 +0000 (20:32 -0700)]
Fix scrolling during inline renaming causes rename of wrong file

Summary:
Scrolling during inline renaming accepts the renaming now, like if one would hit Return for example. I chose this approach because it seems the easiest way to fix this.
This also fixes the “possible” Ui glitch where the renaming KTextField doesn’t move along with the list item. Possible glitch, because I don’t know if this is intentional, but for me it looks broken.

BUG: 378786
Fixes T7443

Test Plan:
* Enable "Rename inline" in dolphin settings
* Go to a folder where you have to scroll through items (many files, big zoom,…)
* Start to rename a file (context menu, F2, …)
* Scroll with mouse wheel
* Rename  accepted -> file is renamed

Reviewers: ngraham, rkflx, #dolphin, elvisangelaccio

Reviewed By: ngraham, rkflx, #dolphin, elvisangelaccio

Subscribers: anthonyfieroni, elvisangelaccio, #dolphin

Maniphest Tasks: T7443

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

8 years agoUse KConfig::readEntry()'s default argument properly
Nathaniel Graham [Thu, 16 Nov 2017 14:23:46 +0000 (07:23 -0700)]
Use KConfig::readEntry()'s default argument properly

Summary: Follow-on patch to D7440 to use KConfig::readEntry()'s default argument properly to reduce some unnecessary code

Test Plan: Tested in KDE Neon. no regressions; by default, all plugins are enabled if the key is not set, and if it is set, user changes to the list are remembered

Reviewers: #dolphin, elvisangelaccio, dfaure, apol

Reviewed By: #dolphin, elvisangelaccio, apol

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

8 years agoTurn on Dolphin icon previews by default
Nathaniel Graham [Thu, 16 Nov 2017 02:48:29 +0000 (19:48 -0700)]
Turn on Dolphin icon previews by default

Summary:
BUG: 338492
BUG: 350212

By default, turn on all preview plugins and turn on previews themselves.

Depends on D8347

Test Plan:
Tested this change in an up-to-date KDE Neon: removed the existing dolphinrc file, deployed Dolphin with the change, and observed that previews are now turned on for all file types for which a plugin exists except for text files, which are in the blacklist because they're mostly useless at nearly all icon sizes (still available in case people want them, though).

Here's how Dolphin's main window looks by default now in KDE Neon:

{F5441184}
(You may notice that there are no previews for the video files; that's because Neon doesn't ship with any plugins for them, so that would be expected at this point)

And here is how the Settings > General > Preview window looks like now by default:
{F5435391}

Reviewers: #dolphin, #vdg, markg, abetts, dfaure, aseigo, elvisangelaccio

Reviewed By: #vdg, abetts, dfaure, elvisangelaccio

Subscribers: abetts, cfeck, andreaska, emmanuelp, andreask, markg, broulik, anthonyfieroni, davidedmundson, ltoscano, dfaure, elvisangelaccio, #konqueror

Tags: #dolphin

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

8 years agoGIT_SILENT Upgrade KDE Applications version to 18.03.70.
Albert Astals Cid [Mon, 13 Nov 2017 07:59:39 +0000 (08:59 +0100)]
GIT_SILENT Upgrade KDE Applications version to 18.03.70.

8 years agoEarlier versions of Qt don't cascade include QUrl so we need to explicitly include...
Ben Cooksley [Sat, 11 Nov 2017 21:51:15 +0000 (10:51 +1300)]
Earlier versions of Qt don't cascade include QUrl so we need to explicitly include it to keep compatibility with Qt 5.7 (as used on FreeBSD)

8 years agoPrevent folders from drag and dropping onto themselves in dolphin main view
Emirald Mateli [Sat, 11 Nov 2017 14:05:15 +0000 (15:05 +0100)]
Prevent folders from drag and dropping onto themselves in dolphin main view

Summary:
This patch aims to improve user experience by not allowing the user to drag and drop a folder into itself.

The current behavior shows a red message at the top which can then be closed by the user, instead of relying on that, this patch disables the option of dropping onto self and uses the "Invalid drop target cursor" to highlight the behavior.

BUG: 307747

Since spectacle is unable to screenshot the cursor overlay, find attached a photo of the screen.
{F3787651}

Test Plan:
1. Drag a folder.
2. Drop it onto itself.

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

Reviewed By: #dolphin, elvisangelaccio, rkflx, dfaure

Subscribers: rkflx, ngraham, elvisangelaccio, dfaure, anthonyfieroni, #konqueror

Tags: #dolphin

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

8 years agoPrevent "Two clicks renaming" if the selected file/folder is not movable
Andreas Krutzler [Sat, 11 Nov 2017 02:32:53 +0000 (19:32 -0700)]
Prevent "Two clicks renaming" if the selected file/folder is not movable

Summary:
Two clicks renaming doesn't check if the user is actually allowed to rename a file/folder. With this patch, this get fixed.
Depends on D7647

Reviewers: rkflx, #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: elvisangelaccio, ngraham, #dolphin

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

8 years agoUse new folder-stash icon
Nathaniel Graham [Wed, 8 Nov 2017 14:06:46 +0000 (07:06 -0700)]
Use new folder-stash icon

Summary:
Resolves T7185

Use the new folder-stash icon introduced in https://cgit.kde.org/breeze-icons.git/commit/?id=b909a8008a7e3ffabb090bc82127ebb561f58597

Test Plan:
Tested in KDE Neon. Dolphin now uses the new icon is `kio-stash` is installed:

{F5482031}

Reviewers: elvisangelaccio, #dolphin

Reviewed By: elvisangelaccio, #dolphin

Subscribers: cfeck

Maniphest Tasks: T7185

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

8 years agoAdd more whitespace to the status bar
Diego Gangl [Tue, 7 Nov 2017 16:32:31 +0000 (17:32 +0100)]
Add more whitespace to the status bar

Summary:
This patch gives the status bar a little more vertical whitespace, prevents the status bar from "jumping up and down" when showing a progress bar, and adds a bit of padding on the sides so the labels are more clearly separated when using dual panes.

Reviewers: #dolphin, #vdg, ngraham, elvisangelaccio

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

8 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Sun, 5 Nov 2017 02:01:20 +0000 (03:01 +0100)]
GIT_SILENT made messages (after extraction)

8 years agoUse nullptr + add explicit keyword
Montel Laurent [Fri, 3 Nov 2017 07:01:02 +0000 (08:01 +0100)]
Use nullptr + add explicit keyword

Test Plan: compile

Reviewers: #dolphin, broulik

Reviewed By: broulik

Subscribers: #dolphin

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

8 years agoRemove not necessary check pointer
Montel Laurent [Tue, 31 Oct 2017 10:55:07 +0000 (11:55 +0100)]
Remove not necessary check pointer

Test Plan: compile

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: #dolphin

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

8 years agoMake Saved Search feature discoverable
Nathaniel Graham [Tue, 24 Oct 2017 19:10:41 +0000 (13:10 -0600)]
Make Saved Search feature discoverable

Summary:
FEATURE: 269332

Make Dolphin's Saved Search feature discoverable by adding a button inside the search field. The button only becomes enabled when there is a valid search term. When pushed, it saves the search to the Places panel, providing a visible-by-default way to do this to complement the existing implementation that is only visible in the context menu.

Also harmonized the label text so that it's consistent no matter how you create a saved search (button or context menu)

Test Plan:
Tested in KDE Neon. Works great:
{F5449508}

Reviewers: #dolphin, broulik, dfaure, markg, emateli, elvisangelaccio

Reviewed By: #dolphin, markg, emateli, elvisangelaccio

Subscribers: anthonyfieroni, markg, emateli, elvisangelaccio, cfeck, #dolphin

Tags: #dolphin

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

8 years agoTwo clicks on file/folder to rename
Andreas Krutzler [Fri, 27 Oct 2017 13:01:54 +0000 (07:01 -0600)]
Two clicks on file/folder to rename

Summary:
Make renaming of files/folders faster by clicking a second time on the items text to start renaming.
BUG: 205157

Test Plan:
This feature works as follows:

1. select an item by single-click, or one is already selected
2. wait the "double-click-interval"
3. click on the items text
4. none of the cancellations (see below) happens within the double-click-interval
5. inline-renaming starts

Cancellations:
* open any file/folder
* select different item(s)
* start dragging items
* Dolphin loses focus

This feature is just enabled while "Double-click to open files and folders" in system-settings and "Rename inline" in Dolphin are enabled.

Reviewers: #dolphin, #kde_applications, elvisangelaccio, emmanuelp, ngraham, markg, rkflx

Reviewed By: #dolphin, #kde_applications, elvisangelaccio, ngraham, rkflx

Subscribers: rkflx, markg, funkybomber, sars, elvisangelaccio, ngraham

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

8 years agoMake sure we always have the Del shortcut
Elvis Angelaccio [Mon, 16 Oct 2017 17:56:31 +0000 (19:56 +0200)]
Make sure we always have the Del shortcut

Same fix as in D7655, but this time for the MoveToTrash standard action.

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

8 years agoFix Q_OS_WIN ifdef
Elvis Angelaccio [Sat, 14 Oct 2017 10:49:29 +0000 (12:49 +0200)]
Fix Q_OS_WIN ifdef

This should fix my previous commit.

8 years agoFix build on Windows
Elvis Angelaccio [Sat, 14 Oct 2017 10:36:26 +0000 (12:36 +0200)]
Fix build on Windows

TerminalPanel is not available on Windows, so commit bd47eb2e6d broke
the MSVC build on the CI.

8 years agoDon't block unmounting when terminal panel's cwd is the mountpoint
Miklos Marton [Thu, 12 Oct 2017 21:17:51 +0000 (23:17 +0200)]
Don't block unmounting when terminal panel's cwd is the mountpoint

When unmounting a removable media Dolphin checks if there are
some files open on the device before performing the unmount.
If the terminal window in dolphin is open and the to be unmounted path is open,
 the unmount process will be blocked.

This patch sets the terminal window current path to the home directory upon unmount request
 if the terminal directory is set to the mount path.

The unmount request could came from two sources:

    The user could hit right click on the media in the dolphin's places panel and hit unmount.
    The user could request an unmount from the indicator applet

This patch was originally written by Arjun AK for the kdelibs4 version
of Dolphin: https://git.reviewboard.kde.org/r/121613/

BUG: 158264
FIXED-IN: 17.11.80

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

8 years agoMove Folders item closer to the top
Nathaniel Graham [Wed, 4 Oct 2017 15:08:26 +0000 (09:08 -0600)]
Move Folders item closer to the top

Summary:
Move Folders item closer to the top in Dolphin's find panel. This seems like a more natural placment than after the document types.

Also re-order variable placement to maintain consistency

Test Plan:
Tested in KDE Neon; works. Before:
{F4631565}

After:
{F4631532}

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: #dolphin

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

8 years agoAdd option to only search for folders
XY Quadrat [Tue, 3 Oct 2017 21:07:53 +0000 (23:07 +0200)]
Add option to only search for folders

This commit adds an option under "More options" at the search widget.
It allows to only search for folders and filter out everything else,
just like the other options (e.g. "Videos") above.

FEATURE: 269334
REVIEW: 130159

8 years agoMerge branch 'Applications/17.08'
Fabian Vogt [Sat, 30 Sep 2017 14:30:14 +0000 (16:30 +0200)]
Merge branch 'Applications/17.08'

8 years agoFix build with Qt 5.10
Fabian Vogt [Sat, 30 Sep 2017 13:49:52 +0000 (15:49 +0200)]
Fix build with Qt 5.10

Summary: QStaticText's constructor with const QString & as argument is now explicit.

Test Plan:
Did not build before, now does.

Note that this might change the behaviour as the other properties of m_text are now
kept, which was not the case before. I'm not sure what the expected behaviour here
is supposed to be.

Reviewers: #dolphin, #kde_applications, cfeck

Reviewed By: cfeck

Subscribers: cfeck, #kde_applications, #dolphin

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

8 years agoAdd Bitrate to Dolphin's Additional Information
Nate Graham [Fri, 22 Sep 2017 04:55:41 +0000 (22:55 -0600)]
Add Bitrate to Dolphin's Additional Information

Summary:
Adds Bitrate to Dolphin's Additional information columns.

BUG: 368418

Test Plan:
Tested in KDE Neon. A bitrate column can be added and shows the bitrate in kb/s:

{F3907210}

Works for audio as well as video files!

Reviewers: #dolphin, #kde_applications, broulik, aacid, dfaure, emmanuelp

Reviewed By: #dolphin, #kde_applications, emmanuelp

Subscribers: rkflx, alexeymin, anthonyfieroni

Tags: #dolphin

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

8 years agoSelect child folder when navigating to a parent folder
Gregor Mi [Thu, 21 Sep 2017 13:41:26 +0000 (15:41 +0200)]
Select child folder when navigating to a parent folder

Whenever the dolphin view is initialized to show the contents of a new URL
(e.g. "/home/x/test") it will be checked if the new URL is a parent of the
previous displayed URL (e.g. "/home/x/test/documents/aaa"). If the check is
successful, then the common child (in this example: "/home/x/test/documents/")
folder item will be selected and scrolled into view.

REVIEW: 123253
BUG: 377392
CCBUG: 335616

8 years agoMerge branch 'Applications/17.08'
Elvis Angelaccio [Sun, 17 Sep 2017 09:56:42 +0000 (11:56 +0200)]
Merge branch 'Applications/17.08'

8 years agoKeep renamed file(s) in view
Emirald Mateli [Sun, 17 Sep 2017 09:07:44 +0000 (11:07 +0200)]
Keep renamed file(s) in view

When renaming a file, if its new name causes it to scroll out of view,
Dolphin will not scroll to the location of the new file.
This patch aims to address that. This affects all view modes.

CCBUG: 354330

Test Plan:
1. Have many files in a directory (or several files, just zoom in a lot)
2. Rename a file so that it will move out of view

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

8 years agoMake sure we always have Shift+Del as shortcut
Elvis Angelaccio [Sat, 2 Sep 2017 14:28:49 +0000 (16:28 +0200)]
Make sure we always have Shift+Del as shortcut

After commit 68bb0ec22a the shortcut for the Delete action is not
necessarily Shift+Del, but whatever the user set in System Setting.
However DolphinRemoveAction assumes/hardcodes Shift+Del, so we should
always make sure we have this shortcut around, for consistency.

We just need to add it (if necessary) to the list of shortcuts of the
action. However:

* for the actual Delete action, we need to append it (if we'd prepend it,
  it would override a custom primary shortcut in the 'Configure Shortcuts' dialog).
* for DolphinRemoveAction, we need to prepend it in order to have
  Shift+Del (rather than the custom primary shortcut) in the context menu.

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

8 years agoAdd "Release Year" column to Dolphin's Details view
Nathaniel Graham [Wed, 13 Sep 2017 05:35:18 +0000 (10:35 +0500)]
Add "Release Year" column to Dolphin's Details view

Summary:
Adds a "Release Year" column to Dolphin's Details view.

BUG: 384317

Test Plan: Tested in a KDE Neon VM.

Reviewers: aacid, broulik, #kde_applications, #dolphin, alexeymin, emmanuelp

Reviewed By: #dolphin, alexeymin, emmanuelp

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

8 years agoCreate KToolTipWidget on demand
Kai Uwe Broulik [Tue, 12 Sep 2017 15:16:21 +0000 (17:16 +0200)]
Create KToolTipWidget on demand

Given tooltips are disabled by default anyway.

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

8 years agoQt 5 Porting: Q_WS_WIN -> Q_OS_WIN
Ben Cooksley [Mon, 11 Sep 2017 19:25:25 +0000 (07:25 +1200)]
Qt 5 Porting: Q_WS_WIN -> Q_OS_WIN

(cherry picked from commit 4c1df50d522a09577274e19a8fe66bd865f3a2da)

8 years agoAdd "Open in New Window to Dolphin's places context menu
Nathaniel Graham [Mon, 11 Sep 2017 20:03:21 +0000 (22:03 +0200)]
Add "Open in New Window to Dolphin's places context menu

Summary:
BUG: 384352

Add an "Open in New Window" menu item to the context menu for Dolphin's places items.

Test Plan:
Tested in up-to-date KDE Neon. Works as expected:

{F3898707}

Reviewers: #dolphin, #kde_applications, dfaure, aacid, elvisangelaccio, emmanuelp, broulik

Reviewed By: #dolphin, emmanuelp, broulik

Subscribers: alexeymin, emmanuelp, broulik, sefaeyeoglu, #dolphin

Tags: #dolphin

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

8 years agoQt 5 Porting: Q_WS_WIN -> Q_OS_WIN
Ben Cooksley [Mon, 11 Sep 2017 19:25:25 +0000 (07:25 +1200)]
Qt 5 Porting: Q_WS_WIN -> Q_OS_WIN

8 years agoFix DolphinRemoveAction Shift toggling on Wayland
Elvis Angelaccio [Thu, 24 Aug 2017 16:33:27 +0000 (18:33 +0200)]
Fix DolphinRemoveAction Shift toggling on Wayland

QGuiApplication::queryKeyboardModifiers() does not work on Wayland [1].
We don't need it in the first place, since we already know (thanks to
the key events) whether Shift has been pressed or released.
So we can just pass this information to DolphinRemoveAction::update().

BUG: 354301

[1]: https://bugreports.qt.io/browse/QTBUG-62786

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

8 years agoSet version in project()
Elvis Angelaccio [Sun, 3 Sep 2017 09:18:04 +0000 (11:18 +0200)]
Set version in project()

As discussed on release-team [1], this will enable automatically setting
product versions on bugzilla [2].

[1]: https://mail.kde.org/pipermail/release-team/2017-July/010474.html
[2]: https://community.kde.org/Guidelines_and_HOWTOs/Application_Versioning#Bugzilla_versions

8 years agoGIT_SILENT Upgrade KDE Applications version to 17.08.1.
Albert Astals Cid [Sat, 2 Sep 2017 09:25:44 +0000 (11:25 +0200)]
GIT_SILENT Upgrade KDE Applications version to 17.08.1.

8 years agoLimit folder panel to home directory if inside home
Robert Hoffmann [Fri, 1 Sep 2017 08:15:03 +0000 (10:15 +0200)]
Limit folder panel to home directory if inside home

Summary:
Added the option to limit the displayed folders in the folder panel (F7) to the tree below the user's home directory if the current URL is inside the home directory.
This can be configured in the preferences General/Behaviour tab by checking the corresponding check box.

Reviewers: #dolphin, elvisangelaccio, emmanuelp

Reviewed By: #dolphin, elvisangelaccio, emmanuelp

Subscribers: emmanuelp, elvisangelaccio, #konqueror, #dolphin

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

8 years agoPrefer place name over actual name in title bar
Kai Uwe Broulik [Tue, 29 Aug 2017 15:15:24 +0000 (17:15 +0200)]
Prefer place name over actual name in title bar

When inside a place, the address bar already gives it precedence over the actual folder name.
By doing this in the title bar also, we make it consistent and can mask ugly technical terminology
like "trash:/" and instead show the nice localized "Trash" place name as well as "Home" instead
of lowercase internal user name.

BUG: 211959

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

8 years agoAdd Genre to additional information for audio files. Fixes T5599
Francisco Navarro Morales [Sun, 27 Aug 2017 21:07:59 +0000 (23:07 +0200)]
Add Genre to additional information for audio files. Fixes T5599

Summary: I have just imitated the code that made this funcionality for artist and album additional information for audio files.

Reviewed By: #dolphin, emmanuelp

CCBUG: 374558

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

8 years ago[AdditionalInfoDialog] Prevent hiding "text" role
Kai Uwe Broulik [Fri, 25 Aug 2017 14:48:48 +0000 (16:48 +0200)]
[AdditionalInfoDialog] Prevent hiding "text" role

You cannot do this from the menu but the option was there (but ignored) in the "View Properties" dialog.

BUG: 302622

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

8 years agoPort to new KStandardAction slot syntax
Elvis Angelaccio [Thu, 24 Aug 2017 15:32:06 +0000 (17:32 +0200)]
Port to new KStandardAction slot syntax

For more compile-time safety.

8 years agoSupport middle clicking of Back/Forward/Up/Home toolbar buttons
Kai Uwe Broulik [Thu, 24 Aug 2017 13:45:28 +0000 (15:45 +0200)]
Support middle clicking of Back/Forward/Up/Home toolbar buttons

This opens the resulting page in a new tab.

BUG: 358649

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

8 years agoFix typo in udi string
Christoph Feck [Wed, 23 Aug 2017 10:53:41 +0000 (12:53 +0200)]
Fix typo in udi string

Spotted by Chris Holland.

BUG: 383182

8 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Thu, 10 Aug 2017 01:19:16 +0000 (03:19 +0200)]
GIT_SILENT made messages (after extraction)

8 years agoDrop duplicate i18n strings
Elvis Angelaccio [Wed, 9 Aug 2017 21:15:30 +0000 (23:15 +0200)]
Drop duplicate i18n strings

This comment (introduced in commit 39f89141b06c) no longer seems to
apply, so drop the duplicate translations and just use the default
strings from kconfigwidgets.

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

8 years agoPort to KStandardAction::RenameFile
Elvis Angelaccio [Wed, 9 Aug 2017 20:59:38 +0000 (22:59 +0200)]
Port to KStandardAction::RenameFile

It was introduced in kconfig(widgets) 5.25. Using the standard action
results in less code and no need to hardcode the F2 shortcut.

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

8 years agoGIT_SILENT Upgrade KDE Applications version to 17.08.0.
Albert Astals Cid [Tue, 8 Aug 2017 18:04:58 +0000 (20:04 +0200)]
GIT_SILENT Upgrade KDE Applications version to 17.08.0.

8 years agoPort to KHelpMenu
Elvis Angelaccio [Thu, 3 Aug 2017 14:48:02 +0000 (16:48 +0200)]
Port to KHelpMenu

Less code and KHelpMenu respects KIOSK restrictions.

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

8 years agoGIT_SILENT Upgrade KDE Applications version to 17.07.90.
Christoph Feck [Sun, 30 Jul 2017 23:54:10 +0000 (01:54 +0200)]
GIT_SILENT Upgrade KDE Applications version to 17.07.90.

8 years agoMerge branch 'Applications/17.08'
Elvis Angelaccio [Fri, 28 Jul 2017 12:08:33 +0000 (14:08 +0200)]
Merge branch 'Applications/17.08'

8 years agoFix loading of dolphinui.rc
Elvis Angelaccio [Fri, 28 Jul 2017 11:35:50 +0000 (13:35 +0200)]
Fix loading of dolphinui.rc

dolphin.qrc is compiled into a static library, which means we need to
force its loading with the Q_INIT_RESOURCE macro.

See http://doc.qt.io/qt-5/resources.html#using-resources-in-a-library

BUG: 382848
FIXED-IN: 17.07.90

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

8 years agoMerge branch 'Applications/17.08'
David Edmundson [Fri, 28 Jul 2017 11:35:28 +0000 (12:35 +0100)]
Merge branch 'Applications/17.08'

8 years agoUse https for knsrc providers
David Edmundson [Fri, 28 Jul 2017 11:34:42 +0000 (12:34 +0100)]
Use https for knsrc providers

CCBUG: 382820

8 years agoPort to KStandardAction::MoveToTrash
Elvis Angelaccio [Tue, 18 Jul 2017 22:00:37 +0000 (00:00 +0200)]
Port to KStandardAction::MoveToTrash

It was introduced in kconfig(widgets) 5.25. Using the standard action
results in less code and no need to hardcode the Del shortcut.

Test Plan:
- Change shortcut in System Settings -> Shortcuts -> Standard Shortcuts
- Make sure the new shortcut is used by dolphin.

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

8 years agoMerge branch 'Applications/17.08'
Elvis Angelaccio [Thu, 27 Jul 2017 14:05:18 +0000 (16:05 +0200)]
Merge branch 'Applications/17.08'

8 years agoFix drop menu position with urlnavigator drops
Elvis Angelaccio [Wed, 12 Jul 2017 08:40:15 +0000 (10:40 +0200)]
Fix drop menu position with urlnavigator drops

Commit 1e251d2f6a in kio broke drop menus when dropping on the URL
navigator (menus show up in the DolphinView rather than the URL bar).
This happens because in DolphinView::dropUrls() we set `this` as the
widget passed to KJobWidgets::setWindow() (in DragAndDropHelper::dropUrls()).

We need to replace `this` with the actual widget that received the QDropEvent
and that can mapToGlobal() the relative pos of the drop event.
Unfortunately this widget is not KUrlNavigator itself, but one of its
KUrlNavigatorButton children (private class, not exported). So
unfortunately we need a new API in KIO that exposes this child widget.

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

8 years agoBundle the XMLGUI files into qrc resources.
David Faure [Tue, 25 Jul 2017 09:39:57 +0000 (11:39 +0200)]
Bundle the XMLGUI files into qrc resources.

This is a step towards being able to run applications uninstalled,
and it simplifies deployment on non-linux.

8 years agoDon't add null widget to layout
Elvis Angelaccio [Fri, 21 Jul 2017 10:52:10 +0000 (12:52 +0200)]
Don't add null widget to layout

m_expandableFolders is created only in DetailsMode. This fixes a QLayout
runtime warning.

8 years agoFix layout warning
Elvis Angelaccio [Fri, 21 Jul 2017 10:09:17 +0000 (12:09 +0200)]
Fix layout warning

This fixes the following warning:

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

`topLayout->addLayout(fileSizeBoxLayout)` takes ownership of
`fileSizeBoxLayout`, so there is no reason to use `this` as parent.

8 years agoMerge remote-tracking branch 'origin/Applications/17.08'
Luigi Toscano [Tue, 18 Jul 2017 17:00:04 +0000 (19:00 +0200)]
Merge remote-tracking branch 'origin/Applications/17.08'

8 years agoAdd role for file creation time.
Tobias C. Berner [Fri, 16 Jun 2017 18:00:45 +0000 (20:00 +0200)]
Add role for file creation time.

Summary: At least on FreeBSD UFS and ZFS support birthtimes of files.

Reviewers: #freebsd, #dolphin

Subscribers: #konqueror

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

(cherry picked from commit d8061b4d9e04ec940ee33feae5f60f26bffc97b1)

8 years agoAdd role for file creation time.
Tobias C. Berner [Fri, 16 Jun 2017 18:00:45 +0000 (20:00 +0200)]
Add role for file creation time.

Summary: At least on FreeBSD UFS and ZFS support birthtimes of files.

Reviewers: #freebsd, #dolphin

Subscribers: #konqueror

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

8 years agoGIT_SILENT Upgrade KDE Applications version to 17.07.80.
Albert Astals Cid [Mon, 17 Jul 2017 20:10:37 +0000 (22:10 +0200)]
GIT_SILENT Upgrade KDE Applications version to 17.07.80.

8 years agoGIT_SILENT Upgrade KDE Applications version to 17.11.70.
Albert Astals Cid [Mon, 17 Jul 2017 18:28:07 +0000 (20:28 +0200)]
GIT_SILENT Upgrade KDE Applications version to 17.11.70.

8 years agoMerge remote-tracking branch 'origin/Applications/17.04'
Luigi Toscano [Sat, 15 Jul 2017 12:40:03 +0000 (14:40 +0200)]
Merge remote-tracking branch 'origin/Applications/17.04'

8 years agoFix knewstuff popup menu position on wayland
Elvis Angelaccio [Wed, 12 Jul 2017 10:33:54 +0000 (12:33 +0200)]
Fix knewstuff popup menu position on wayland

On Wayland we need to pass a parent to popup menus.
See https://community.kde.org/Guidelines_and_HOWTOs/Wayland_Porting_Notes#Popup_Menus

So we use the new setParentWidget() method from KNewStuff (introduced in
Frameworks 5.37).

8 years agoAdd missing emit keywords
Elvis Angelaccio [Thu, 13 Jul 2017 15:07:37 +0000 (17:07 +0200)]
Add missing emit keywords

GIT_SILENT

8 years agoGIT_SILENT Upgrade KDE Applications version to 17.04.3.
Albert Astals Cid [Sun, 9 Jul 2017 22:33:40 +0000 (00:33 +0200)]
GIT_SILENT Upgrade KDE Applications version to 17.04.3.

8 years ago[Places Panel] Disallow editing devices
Kai Uwe Broulik [Tue, 27 Jun 2017 12:03:31 +0000 (14:03 +0200)]
[Places Panel] Disallow editing devices

I introduced this bug when I changed the layout of the menu.
While it would be nice if one could edit devices, it is currently not possible
and would require significant re-engineering effort in Solid.

While the "Edit" menu works just fine, changes are not persisted.

Reviewed-By: emmanuelp
Differential Revision: https://phabricator.kde.org/D6294

8 years agoSupport "Deletion Time" role in Trash
Kai Uwe Broulik [Tue, 20 Jun 2017 09:32:29 +0000 (11:32 +0200)]
Support "Deletion Time" role in Trash

This allows to sort by and show (both as additional data in icon view and column in column
view) deletion date of files in Trash.

CHANGELOG: It is now possible to view and sort by "Deletion Time" in Trash

BUG: 153492
FIXED-IN: 17.08.0

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

8 years agoMerge branch 'Applications/17.04'
Elvis Angelaccio [Sun, 11 Jun 2017 17:33:36 +0000 (19:33 +0200)]
Merge branch 'Applications/17.04'

* Applications/17.04:
  Change in "Open in new tab" feature in Dolphin
  Ignore drops-onto-items from invalid places items
  Revert "Increase smooth scrolling animation duration from 100 to 300 ms and set easing curve to InOutQuart"

8 years agoChange in "Open in new tab" feature in Dolphin
Emirald Mateli [Sun, 11 Jun 2017 17:26:52 +0000 (19:26 +0200)]
Change in "Open in new tab" feature in Dolphin

Summary:
This patch proposes a change to the "open in new tab" feature.

The "open in new tab" feature will try to open selected items (files or folders) in a new tab, however, if there are no valid items to be opened in a new tab then nothing will happen, making it look like a bug. This patch adds the functionality that when there are no valid items(files or folders) to be opened in a new tab the current folder will be opened.

Test Plan:
1. Select a file(pdf, text, image etc) in Dolphin
2. Click on the "Open in new tab" toolbar button

Expected: since the file is not a valid target to open in a new tab, the current directory should be opened (as is the case where selection is empty)
Actual: Nothing happens after the button is pressed

Reviewed By: #dolphin, elvisangelaccio

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

8 years agoIgnore drops-onto-items from invalid places items
Elvis Angelaccio [Fri, 21 Apr 2017 11:16:05 +0000 (13:16 +0200)]
Ignore drops-onto-items from invalid places items

If the QMimeData object created by PlacesItemModel doesn't have any url
set (e.g. when dragging unmounted devices), it is detected by the
resulting DropJob as "drop raw data" because the mimeData has one format set
(the internalMimeType() used for dragging between places items).

This results in a crash because the DropJob schedules a PasteJob, but in
the meantime the QDrag from Dolphin ends and deletes the mimeData object
that was passed to the paste job.

The fix is to prevent the DropJob in the first place. We can introduce a
new internal mimetype that we use to blacklist drops-onto-items (while
still allowing drops-between-items). This way PlacesItemModel can set
the blacklist flag if the mimeData is being created without urls.

BUG: 373005
FIXED-IN: 17.04.3

Test Plan:
Drag and drop an unmounted device to another place item or the DolphinView, doesn't crash anymore.
Dropping the unmounted device between two places item still works.

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

8 years agoDrop unnecessary method
Elvis Angelaccio [Tue, 6 Jun 2017 17:16:34 +0000 (19:16 +0200)]
Drop unnecessary method

8 years agoGIT_SILENT Upgrade KDE Applications version to 17.04.2.
Albert Astals Cid [Mon, 5 Jun 2017 18:52:31 +0000 (20:52 +0200)]
GIT_SILENT Upgrade KDE Applications version to 17.04.2.

8 years agoRevert "Increase smooth scrolling animation duration from 100 to 300 ms and set easin...
Elvis Angelaccio [Wed, 31 May 2017 12:05:37 +0000 (14:05 +0200)]
Revert "Increase smooth scrolling animation duration from 100 to 300 ms and set easing curve to InOutQuart"

This reverts commit 58c5eae1953bbdcf6d4150b21cb7ffdad07a5257.

Reasons against this change:

1. Scroll is now too fast with devices such as touchpads or trackpoints.
2. Scroll behavior is now inconsistent between Dolphin and other applications
   (e.g. the Plasma file dialog). Breeze's default animation duration is 100 ms.
3. Many people complained and this feature is currently not configurable. We
   should introduce a QStyle::SH_Widget_Animation_Duration hint that would
   allow us to not hardcode durations in Dolphin (i.e. respect whatever
   duration the users set in their QStyle).
   Proposal in https://codereview.qt-project.org/#/c/195712/

Reviewers: #vdg, #plasma, emmanuelp, davidedmundson

Reviewed By: #plasma, davidedmundson

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

8 years agoIntroduce DolphinMainWindowTest
Elvis Angelaccio [Mon, 22 May 2017 09:37:37 +0000 (11:37 +0200)]
Introduce DolphinMainWindowTest

For now it contains a test case for the crash in bug #379135

CCBUG: 379135

Reviewers: emmanuelp, dfaure

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

8 years agoMove non-exported code to a static library
Elvis Angelaccio [Sun, 21 May 2017 19:41:13 +0000 (21:41 +0200)]
Move non-exported code to a static library

This allows us to speed up the compilation because we don't need to
build twice the source files we use in the unit tests.

Test Plan: Builds, dolphin works and tests pass.

Reviewers: emmanuelp, dfaure

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

8 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Thu, 25 May 2017 02:21:54 +0000 (04:21 +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"

8 years agoMerge branch 'Applications/17.04'
Luca Beltrame [Mon, 22 May 2017 21:32:36 +0000 (23:32 +0200)]
Merge branch 'Applications/17.04'

8 years agoCorrect searchbox, split view transitions between tabs
Anthony Fieroni [Mon, 22 May 2017 17:35:29 +0000 (20:35 +0300)]
Correct searchbox, split view transitions between tabs

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

BUG: 379135
BUG: 380032
FIXED-IN: 17.04.2

Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
8 years agoadd few more Q_DECL_OVERRIDE
Pino Toscano [Thu, 11 May 2017 22:07:15 +0000 (00:07 +0200)]
add few more Q_DECL_OVERRIDE

8 years agoPort tests from ecm_mark_as_test to ecm_add_test
Hannah von Reth [Thu, 11 May 2017 12:04:34 +0000 (14:04 +0200)]
Port tests from ecm_mark_as_test to ecm_add_test

Summary: This enables us to run the tests on Windows.

Reviewers: elvisangelaccio, kfunk, dfaure

Reviewed By: elvisangelaccio

Subscribers: #konqueror, #dolphin

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

8 years agoFix kfileitemmodeltest
Elvis Angelaccio [Wed, 10 May 2017 10:19:12 +0000 (12:19 +0200)]
Fix kfileitemmodeltest

Commit 6dcbb8127c introduced the isHidden role, update the test
accordingly.

8 years agoRemove define to disable exports
Hannah von Reth [Thu, 11 May 2017 10:33:15 +0000 (12:33 +0200)]
Remove define to disable exports

As the tests are now correctly linked to dolphinprivate we need the
actual export macro.

8 years agoMerge branch 'Applications/17.04'
Elvis Angelaccio [Mon, 8 May 2017 14:09:15 +0000 (16:09 +0200)]
Merge branch 'Applications/17.04'

8 years agoDon't ignore tag clicks in the tooltips
Elvis Angelaccio [Sat, 29 Apr 2017 16:47:13 +0000 (18:47 +0200)]
Don't ignore tag clicks in the tooltips

Summary:
Now that we can use the metadata widgets in the tooltips, we can also
open the tags:// url if the user clicks some tag in a tooltip.

The behavior is now consistent with the metadata widget in the information panel.

Test Plan: Click a tag when the metadata tooltip shows up.

Reviewers: emmanuelp

Subscribers: #konqueror, #dolphin

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

8 years agoGIT_SILENT Upgrade KDE Applications version to 17.04.1.
Albert Astals Cid [Mon, 8 May 2017 10:55:47 +0000 (12:55 +0200)]
GIT_SILENT Upgrade KDE Applications version to 17.04.1.

8 years agoSort the tag-values alphabetically in the "Tags" column
Athanasios Kanellopoulos [Sat, 29 Apr 2017 10:59:30 +0000 (12:59 +0200)]
Sort the tag-values alphabetically in the "Tags" column

Up until now tag-values have appeared unsorted in the Tags column
when the selected View Mode is "Details".
In older versions of Dolphin (in KDE4) the tags-values were
alphabetically sorted in the Tags column, which means that back then
this was the desired behavior.
This commit restores this functionality.

BUG: 377589
FIXED-IN: 17.04.1
REVIEW: 130068

8 years agoGIT_SILENT Upgrade KDE Applications version to 17.04.0.
Albert Astals Cid [Wed, 12 Apr 2017 11:36:03 +0000 (13:36 +0200)]
GIT_SILENT Upgrade KDE Applications version to 17.04.0.

8 years agoFix some compiler warnings
Kevin Funk [Fri, 7 Apr 2017 14:13:18 +0000 (16:13 +0200)]
Fix some compiler warnings

8 years agoGIT_SILENT Upgrade KDE Applications version to 17.03.90.
Albert Astals Cid [Wed, 5 Apr 2017 19:51:09 +0000 (21:51 +0200)]
GIT_SILENT Upgrade KDE Applications version to 17.03.90.

8 years agoUpdate name of the delete action in the .rc files
Elvis Angelaccio [Wed, 29 Mar 2017 11:37:02 +0000 (13:37 +0200)]
Update name of the delete action in the .rc files

Summary:
Small regression in commit 68bb0ec22a. We need to use the new (standard)
name for the delete action, otherwise it won't be properly
enabled/disabled.

BUG: 378154
FIXED-IN: 17.03.90

Reviewers: emmanuelp

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

8 years agoMerge remote-tracking branch 'origin/Applications/17.04'
Albert Astals Cid [Mon, 27 Mar 2017 22:53:36 +0000 (00:53 +0200)]
Merge remote-tracking branch 'origin/Applications/17.04'

8 years agobehavior change -> New Window opens with same URL
Don Nguyen [Mon, 27 Mar 2017 22:52:29 +0000 (00:52 +0200)]
behavior change -> New Window opens with same URL

This patch will cause a "New Window" command to open a new window with
the URL from the active view.  Opening a new instance via launcher will
still open a new window with the URL specified in Startup settings.
This is the behavior in Windows 10 file explorer.  The advantage is this
gives the user a way to open a new window with the current URL(New
Window) as well as a new window with URL specified in Startup
settings(new instance) whereas currently, there isn't an easy way to
open a new window with the current URL.  You'd have to either open a new
window and copy and paste the URL, or open a new tab(which opens with
the same URL) and detach it.  I'd much rather have the new window open
with the current URL and if what I wanted was the Startup URL I could
easily get there as it's already bookmarked.

REVIEW: 129973

8 years agoGIT_SILENT Upgrade KDE Applications version to 17.03.80.
Albert Astals Cid [Mon, 20 Mar 2017 22:42:30 +0000 (23:42 +0100)]
GIT_SILENT Upgrade KDE Applications version to 17.03.80.

8 years agoGIT_SILENT Upgrade KDE Applications version to 17.07.70.
Albert Astals Cid [Mon, 20 Mar 2017 22:16:43 +0000 (23:16 +0100)]
GIT_SILENT Upgrade KDE Applications version to 17.07.70.

8 years ago[PlacesItemModel] Use QDir::homePath() instead of KUser().homeDir()
Kai Uwe Broulik [Wed, 15 Mar 2017 14:38:53 +0000 (15:38 +0100)]
[PlacesItemModel] Use QDir::homePath() instead of KUser().homeDir()

KUser does quite a lot of stuff under the hood and also calls getpwuid which might block with network login.

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

8 years agoCleanup Places Panel context menus
Kai Uwe Broulik [Tue, 14 Mar 2017 21:42:07 +0000 (22:42 +0100)]
Cleanup Places Panel context menus

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

8 years agomake services GHNS work with store.kde.org
Marco Martin [Tue, 14 Mar 2017 11:02:44 +0000 (12:02 +0100)]
make services GHNS work with store.kde.org

Summary:
point the knsrc providers file to the new kde store,
and port the servicemenuinstallation/servicemenudeinstallation
scripts to kf5 (they still were based on kde4-config)
BUG:376922

Test Plan:
downloaded some service menus (send to telegram, convert svg)
by the knewstuff ui available in the services page of config dialog
they get installed in the proper folder and work, uninstall works

Reviewers: #dolphin, emmanuelp

Reviewed By: #dolphin, emmanuelp

Subscribers: elvisangelaccio

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

8 years agoPort to KStandardAction::DeleteFile
Elvis Angelaccio [Fri, 10 Mar 2017 18:31:33 +0000 (19:31 +0100)]
Port to KStandardAction::DeleteFile

Summary:
It was introduced in kconfig 5.25 and it properly handles the shift+del
shortcut (together with kxmlgui >= 5.30). This allows us to drop the
custom delete shortcut as well as the shift+del workaround in
DolphinMainWindow.

Test Plan: Shift+Del still deletes files, without the 'ambiguous shortcut' warning dialog.

Reviewers: emmanuelp

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