]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
7 years agoMerge branch 'Applications/18.04'
Elvis Angelaccio [Wed, 25 Apr 2018 10:50:12 +0000 (12:50 +0200)]
Merge branch 'Applications/18.04'

7 years agoUpdate window title after closing split view
Robert Jennings [Wed, 25 Apr 2018 10:35:29 +0000 (12:35 +0200)]
Update window title after closing split view

Summary:

In dolphintabpage.cpp:

Through the connections set up in createViewContainer(), m_primaryViewContainer->setActive(true), at line 98,
ends up triggering slotViewActivated().

Because m_primaryViewActive is true, oldActiveView is not set to the view needed in this particular situation.
Both oldActiveView and newActiveView end up pointing to the same view and the connections are not set up.

BUG: 385111
FIXED-IN: 18.04.1

Test Plan:
1. Open split view
2. Make left panel active
3. Close split view
4. Navigate to various directories

Window title now updates to show current directory

Also tried with multiple tabs/combinations

Reviewers: #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: elvisangelaccio, ngraham

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

7 years agoAdd failing test case for bug #385111
Elvis Angelaccio [Wed, 25 Apr 2018 10:34:02 +0000 (12:34 +0200)]
Add failing test case for bug #385111

Will be fixed by D12446.

CCBUG: 385111

7 years agoMove "Open" actions to the top of the context menu for files
Nathaniel Graham [Mon, 2 Apr 2018 14:05:47 +0000 (08:05 -0600)]
Move "Open" actions to the top of the context menu for files

Summary:
This patch moves the "Open", "Open With", and "Open in" items to the top of the context menu to reap the following benefits:
- Move the "Open" and "Open With" items closer to the top since they're commonly used items, and right now they're buried in the middle of the menu
- Group related functionality
- Consistency with other common platforms (macOS Finder and Windows Explorer both have these items at the top of the context menu)

For folders, the "Open With" entries are moved higher, but not all the way to the top, since the "open in New tab/folder" entries are more useful.

Test Plan:
Tested all menu items in the context menu for files, folders, and links; all still work.

Context menu for single file:
{F5806809}

Context menu for multiple files:
{F5806810}

Context menu for single folder:
{F5806811}

Context menu for multiple folders:
{F5806812}

Context menu for symlink to folder:
{F5806815}

Reviewers: #dolphin, #vdg, elvisangelaccio, abetts

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

Subscribers: markg, abetts, elvisangelaccio

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

7 years agoMerge branch 'Applications/18.04'
Nathaniel Graham [Fri, 20 Apr 2018 01:01:01 +0000 (19:01 -0600)]
Merge branch 'Applications/18.04'

7 years agoFix inconsistent preview spacing and icon wiggly-ness when toggling previews in Icon...
Nathaniel Graham [Thu, 19 Apr 2018 19:03:35 +0000 (13:03 -0600)]
Fix inconsistent preview spacing and icon wiggly-ness when toggling previews in Icon mode

Summary:
Dolphin had some code to change the grid spacing when previews were toggled, in an attempt to optimize the view for 3:2 landscape photos. This was problematic for many reasons:
- Conceptually, it was a bad idea to optimize the view for one specific use case. Previews are useful for more than just landscape photos, and this optimization would be inapplicable to any other set of files.
- Folders entirely full of images commonly have some portrait-orientation images included too, so even if the goal were appropriate, it was a bad idea to optimize for only having landscape images.
- For small sizes and medium icons (< 96px), the preview grid size was virtually identical to the non-preview grid size, so it had essentially no effect, and only made the icons wiggle strangely when previews were toggled.
- For large large sizes (>= 96px), all it did was unnecessarily increase the horizontal grid spacing, actually //reducing// usability for browsing through folders of images.

Therefore, let's just remove this code.

BUG: 393306
FIXED-IN: 18.04.1

Test Plan:
- Go to {nav Settings > View Modes > Icons} and make the icon size and preview size identical for 64px
- Toggle previews on and off
- Change both sizes to 112x
- Toggle previews on and off

In both cases, the grid spacing does not change and the icons do not wiggle strangely. The only visual change is that previews turn on or off.

Dolphin still works fine for viewing  3:2 landscape photos. 80px icons:
{F5813467}

192px icons:
{F5813465}

In fact, it's vastly //improved// for the >=96px use case since the grid spacing is no longer excessively wide

Reviewers: #dolphin, hein

Reviewed By: hein

Subscribers: broulik

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

7 years agoConvert hard coded shortcuts to standard keys
Roman Inflianskas [Sat, 10 Mar 2018 19:50:29 +0000 (22:50 +0300)]
Convert hard coded shortcuts to standard keys

Test Plan: Check all changed shortcuts on all platforms.

Reviewers: #dolphin, rizzitello, elvisangelaccio

Reviewed By: #dolphin, rizzitello, elvisangelaccio

Subscribers: anthonyfieroni, ngraham, elvisangelaccio, rizzitello, #dolphin

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

7 years agoMerge branch 'Applications/18.04'
Antonio Rojas [Thu, 12 Apr 2018 20:50:55 +0000 (22:50 +0200)]
Merge branch 'Applications/18.04'

7 years agoFix untranslated places panel entries
Antonio Rojas [Thu, 12 Apr 2018 20:49:05 +0000 (22:49 +0200)]
Fix untranslated places panel entries

Load the places panel entries strings from the kio5 catalog, where they live now

BUG: 392822
Differential Revision: https://phabricator.kde.org/D12119

7 years agoinfopanel: Add choice of date display formats
Michael Heidelbach [Thu, 15 Mar 2018 14:38:14 +0000 (15:38 +0100)]
infopanel: Add choice of date display formats

Summary:
Let user choose date display format via checkbox in context menu

[[ https://phabricator.kde.org/file/info/PHID-FILE-5xjr7tvypj3jaczjtzrz | Example ]]

Depends on D11242

FEATURE: 392352

Test Plan: visual inspection

Reviewers: #dolphin, markg, ngraham

Reviewed By: markg, ngraham

Subscribers: broulik, markg, ngraham

Tags: #dolphin, #kde_applications

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

7 years agoSelect and scroll to the file for "Open path" and "Open Path in New Window" operations
Nathaniel Graham [Mon, 26 Mar 2018 00:06:46 +0000 (18:06 -0600)]
Select and scroll to the file for "Open path" and "Open Path in New Window" operations

Summary:
After performing a search and using  the "Open path" or "Open Path in New Window"  present in the context menu, make sure the file is selected and visible in the resulting view.

Cannot implement the same fix for "Open Path in New Tab" because of a limitation in how the contents of inactive tabs are rendered; will need to fix that separately in another patch.

BUG: 377510

Test Plan: Search for an item, and choose {nav Open Path} or {nav Open path in new window}

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, broulik

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

7 years agoAdd more tab access functions
Nathaniel Graham [Sun, 8 Apr 2018 04:35:38 +0000 (22:35 -0600)]
Add more tab access functions

Summary: These new functions to access the next and previous tabs are not used by anything yet, but it is envisioned that they would be useful for a variety of purposes--such as the "open path in new tab" feature from D11703

Test Plan: Dolphin still compiled and runs; new code is not actually used anywhere

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

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

7 years agoGIT_SILENT Upgrade KDE Applications version to 18.04.0.
Christoph Feck [Mon, 9 Apr 2018 20:40:50 +0000 (22:40 +0200)]
GIT_SILENT Upgrade KDE Applications version to 18.04.0.

7 years agouse the same bound check as setCurrentItem when setting m_currentItem manually
Fabian Kosmale [Fri, 6 Apr 2018 15:57:38 +0000 (17:57 +0200)]
use the same bound check as setCurrentItem when setting m_currentItem manually

Summary:
This patch basically adds the check that would normally be done to the
itemInserted method, which seems to be good idea in general.
However, the fact that this is needed there might be an indicator of a logic bug
in the function – though, as I'm not familiar with the code base I cannot judge
this.

Test Plan:
Without this patch, dolphin when started from a terminal prints the following
warning (number can be different):
qt.accessibility.core: Cannot create accessible child interface for object:  PlacesView(0x563e863e35c0)  index:  10
After applying the patch, the warning doesn't appear anymore. Dolphin still
works still as it did before.

Reviewers: elvisangelaccio, #dolphin

Reviewed By: elvisangelaccio

Subscribers: #dolphin

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

7 years agoMerge branch 'Applications/18.04'
Elvis Angelaccio [Thu, 5 Apr 2018 21:29:29 +0000 (23:29 +0200)]
Merge branch 'Applications/18.04'

7 years agoImprove QDialogButtonBox::Yes override text
Elvis Angelaccio [Mon, 2 Apr 2018 21:06:41 +0000 (23:06 +0200)]
Improve QDialogButtonBox::Yes override text

Summary:
We are asking the users whether they are sure they want to quit.

But the "Quit" button can be ambiguous (am I quitting dolphin or just
this dialog?). If we use a "Quit Dolphin" button instead, that clearly
shows what will happen after triggering the action.

Test Plan: Close dolphin while multiple tabs are open.

Reviewers: #dolphin

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

7 years ago[RenameDialog] Fix crash when renaming single items
Elvis Angelaccio [Thu, 5 Apr 2018 20:33:34 +0000 (22:33 +0200)]
[RenameDialog] Fix crash when renaming single items

Summary:
`m_spinBox` is initialized only when renaming multiple items.

This commit restores the single-item rename logic which was wrongly
removed by commit c5eb4e31161ccf422.

BUG: 392743
FIXED-IN: 18.03.90

Test Plan: Disable inline renaming and try to rename single or multiple items (and also to undo the jobs).

Subscribers: #dolphin

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

7 years agoShow folder previews for items that have a Places Panel entry
Nathaniel Graham [Mon, 2 Apr 2018 22:52:08 +0000 (16:52 -0600)]
Show folder previews for items that have a Places Panel entry

Summary:
informationpanelcontent.cpp currently has an explicit check for whether or not a URL has a Places panel entry, and if it does, no folder preview is generated. It's not clear why this is done, but it was reported as a bug: https://bugs.kde.org/show_bug.cgi?id=392621. Removing the logic fixes the bug.

BUG: 392621
FIXED-IN: 18.08.0

Test Plan:
Before:
{F5782793}

After:
{F5782794}

Detailed test procedure:
- Open the Information Panel
- Turn on previews
- Put some pictures in ~/Pictures
- Hover over it and see that the Information Panel shows a preview of its contents
- Add ~/Pictures to the Places panel
- Hover over it again and see that previews are no longer displayed
- Apply the patch and restart Dolphin
- Hover over it once more and see that there are now previews, yay!

Reviewers: #dolphin, markg, elvisangelaccio

Reviewed By: markg, elvisangelaccio

Subscribers: markg, broulik

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

7 years agoMerge branch 'Applications/18.04'
Antonio Rojas [Tue, 3 Apr 2018 20:50:29 +0000 (22:50 +0200)]
Merge branch 'Applications/18.04'

7 years agoInitialize m_konsolePartMissingMessage
Antonio Rojas [Tue, 3 Apr 2018 20:48:25 +0000 (22:48 +0200)]
Initialize m_konsolePartMissingMessage

Otherwise it just crashes when trying to open the terminal panel

BUG: 392660
Differential Revision: https://phabricator.kde.org/D11904

7 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Tue, 3 Apr 2018 05:12:29 +0000 (07:12 +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"

7 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Tue, 3 Apr 2018 03:25:54 +0000 (05:25 +0200)]
SVN_SILENT made messages (.desktop file) - always resolve ours

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

7 years agoGIT_SILENT Upgrade KDE Applications version to 18.03.90.
Christoph Feck [Mon, 2 Apr 2018 19:18:14 +0000 (21:18 +0200)]
GIT_SILENT Upgrade KDE Applications version to 18.03.90.

7 years agoSplit Image Size into Width/Height
Julian Schraner [Sun, 1 Apr 2018 17:26:49 +0000 (11:26 -0600)]
Split Image Size into Width/Height

Summary:
This patch splits the single property "Image Size" into "Width" and "Height", providing more fine-tuned control for power users.

FEATURE: 374559

Test Plan:
- Sorting works correctly
- No real change, only exposed differently

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, elvisangelaccio, ngraham

Subscribers: ngraham, elvisangelaccio

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

7 years agoFix detaching
Elvis Angelaccio [Sun, 1 Apr 2018 10:23:08 +0000 (12:23 +0200)]
Fix detaching

7 years agoUse QHash rather than QMap
Elvis Angelaccio [Sun, 1 Apr 2018 10:14:34 +0000 (12:14 +0200)]
Use QHash rather than QMap

As recommended by the clazy qmap-with-pointer-key check.

7 years agoUse rightRef() instead of right()
Elvis Angelaccio [Sun, 1 Apr 2018 10:08:23 +0000 (12:08 +0200)]
Use rightRef() instead of right()

As recommended by the clazy qstring-ref check.

7 years agoFix minor typos
Yuri Chornoivan [Fri, 30 Mar 2018 05:19:37 +0000 (08:19 +0300)]
Fix minor typos

7 years agoFix alignment of icons in Places panel and Compact view mode
Scott Harvey [Wed, 28 Mar 2018 13:46:12 +0000 (07:46 -0600)]
Fix alignment of icons in Places panel and Compact view mode

Summary:
Adjust calculation of icon pixmap Y value; now based off center of text label bounding rectangle. Previously, icons appeared top-aligned when text size was larger than icon size.

Centering is done by obtaining the center point of the text frame (`m_textRect.center().y()`) and setting the top `Y` point of the icon to one-half of the scaled icon height (`m_scaled_PixmapSize.height()`)  Division is done by `2.0`, to ensure calculations are done with floating-point math, in keeping with `QPointF`, which returns floating-point values.

Also includes an adjustment named `midlineShift` (contributed by @zzag), which takes into account the font's midline in respect to the center of the text frame. Certain fonts (i.e. Noto Sans) can have a slightly offset midline, resulting in imperfect alignment of the icon. This small adjustment resolves that potential issue.

See before and after screenshots.
{F5764918}
Before, showing misalignment (with and without debugging wireframes)

{F5764920}
After, showing correction

BUG: 390771

Test Plan:
-- Compile Dolphin with patch
-- Increase system font size by several points (i.e. 15pt)
-- Check that Places panel icons remain centered with the text label
-- Select Compact View mode
-- Adjust icon size slider to minimum
-- Ensure that icons also remain centered in file listing
-- Check several combinations of icon size & font size to ensure centering is consistent

Reviewers: #dolphin, ngraham, cfeck, elvisangelaccio

Reviewed By: #dolphin, ngraham, elvisangelaccio

Subscribers: zzag, elvisangelaccio, #dolphin

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

7 years agoMerge branch 'Applications/18.04'
Elvis Angelaccio [Thu, 29 Mar 2018 20:33:37 +0000 (22:33 +0200)]
Merge branch 'Applications/18.04'

7 years agoFix enum-compare-switch clang warnings
Elvis Angelaccio [Thu, 29 Mar 2018 20:29:56 +0000 (22:29 +0200)]
Fix enum-compare-switch clang warnings

We were comparing a value of type `KStandardItemListView::ItemLayout`
with values of type `KStandardItemListWidget::Layout`.

7 years agoUpdate dolphin docbook to 18.04
Burkhard Lück [Thu, 29 Mar 2018 16:47:28 +0000 (18:47 +0200)]
Update dolphin docbook to 18.04

proofread + update
bump date + releaseinfo
add missing option + new shortcuts

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

7 years ago[KItemListView] Check if KItemListStyleOption actually changed before emitting a...
Kai Uwe Broulik [Thu, 29 Mar 2018 07:21:17 +0000 (09:21 +0200)]
[KItemListView] Check if KItemListStyleOption actually changed before emitting a change

This avoids work being done when it doesn't need to be.
For instance, the preview generator waits for everything to have settled using a 200ms timer before generating a preview.
This timer fired also in response to onStyleOptionChanged and needlessly delayed preview generation when navigating between folders
despite the style option (e.g. icon size, view mode) not having changed.

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

7 years ago[DolphinContextMenu] Fix excluding ourself from Open With menu
Kai Uwe Broulik [Wed, 21 Mar 2018 14:53:59 +0000 (15:53 +0100)]
[DolphinContextMenu] Fix excluding ourself from Open With menu

The desktop file name changed to org.kde.dolphin a long time ago. To avoid this breaking again, just use qApp->desktopFileName()

BUG: 391997

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

7 years agoMerge branch 'Applications/18.04'
Nathaniel Graham [Thu, 22 Mar 2018 12:52:46 +0000 (06:52 -0600)]
Merge branch 'Applications/18.04'

7 years agoFix missing entries in context menu for links
Nathaniel Graham [Wed, 21 Mar 2018 23:00:17 +0000 (17:00 -0600)]
Fix missing entries in context menu for links

Summary: https://cgit.kde.org/dolphin.git/commit/?id=86f4fcb8cd574f6d886627fc5e01c9edfc84e977 introduced a regression: the context menu for links no longer shows various items that were gated behind being a directory. However, a link can be both a link and a directory, from KIO's perspective. This patch resolves the issue.

Test Plan:
- Context menus for files, folders, and file links are unchanged.
- The missing context menu items for folder links have returned: {F5761809}

I should have tested that patch better, and for that I apologize and offer to fix this regression here. I will endeavor to up my reviewing game.

Reviewers: rominf, michaelh, #dolphin, rkflx

Reviewed By: rominf, rkflx

Subscribers: rkflx

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

7 years ago[DolphinContextMenu] Fix excluding ourself from Open With menu
Kai Uwe Broulik [Wed, 21 Mar 2018 14:53:59 +0000 (15:53 +0100)]
[DolphinContextMenu] Fix excluding ourself from Open With menu

The desktop file name changed to org.kde.dolphin a long time ago. To avoid this breaking again, just use qApp->desktopFileName()

BUG: 391997

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

7 years agoMerge branch 'Applications/18.04'
David Faure [Wed, 21 Mar 2018 14:34:36 +0000 (15:34 +0100)]
Merge branch 'Applications/18.04'

7 years agoFix compilation with -DQT_NO_URL_CAST_FROM_STRING
David Faure [Wed, 21 Mar 2018 14:30:51 +0000 (15:30 +0100)]
Fix compilation with -DQT_NO_URL_CAST_FROM_STRING

7 years agoGIT_SILENT Upgrade KDE Applications version to 18.07.70.
Albert Astals Cid [Mon, 19 Mar 2018 22:50:00 +0000 (23:50 +0100)]
GIT_SILENT Upgrade KDE Applications version to 18.07.70.

7 years agoGIT_SILENT Upgrade KDE Applications version to 18.03.80.
Albert Astals Cid [Mon, 19 Mar 2018 22:35:33 +0000 (23:35 +0100)]
GIT_SILENT Upgrade KDE Applications version to 18.03.80.

7 years agoIntroduce singleton for KFilePlacesModel
Kai Uwe Broulik [Mon, 19 Mar 2018 08:57:24 +0000 (09:57 +0100)]
Introduce singleton for KFilePlacesModel

There are various places where Dolphin created a new KFilePlacesModel which would then query all storage devices and do other expensive work.

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

7 years agoAdd "Show Target" into symlink context menu and file menu
Roman Inflianskas [Sun, 18 Mar 2018 10:55:24 +0000 (13:55 +0300)]
Add "Show Target" into symlink context menu and file menu

Summary:
Add "Show Target" into symlink context menu and file menu

FEATURE: 215069

Reviewers: ngraham, elvisangelaccio

Reviewed By: ngraham, elvisangelaccio

Subscribers: rkflx, ngraham, elvisangelaccio, markg, #dolphin

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

7 years agoShow "Empty Trash" button inside trash directory
Roman Inflianskas [Sun, 11 Mar 2018 17:21:24 +0000 (20:21 +0300)]
Show "Empty Trash" button inside trash directory

Summary:
Show "Empty Trash" button inside trash directory.

FEATURE: 163306

Test Plan: {F5734949}

Reviewers: ngraham, rkflx, markg, elvisangelaccio

Reviewed By: ngraham, markg, elvisangelaccio

Subscribers: markg, emateli, broulik, elvisangelaccio, rkflx, mmustac, ngraham, #dolphin

Tags: #dolphin

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

7 years agoAdd "Open symlink destination folder" into symlink's context menu
Roman Inflianskas [Sat, 3 Mar 2018 13:36:44 +0000 (16:36 +0300)]
Add "Open symlink destination folder" into symlink's context menu

Summary:
This is not complete. I'm wondering about "Open symlink destination folder in new tab/window".

Feature wants also "Copy symlink destination". I dislike this, because then it's good to have "Cut symlink destination" and that's too much.

FEATURE: 215069

Reviewers: #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: rkflx, ngraham, elvisangelaccio, markg, #dolphin

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

7 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Tue, 13 Mar 2018 04:14:09 +0000 (05:14 +0100)]
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"

7 years agoShow a message if Konsole part is not installed
Roman Inflianskas [Wed, 7 Mar 2018 11:35:17 +0000 (14:35 +0300)]
Show a message if Konsole part is not installed

Summary:
Show a message if Konsole part is not installed

BUG: 371822
FIXED-IN: 18.04.0

{F5749731}

Reviewers: ngraham, progwolff, elvisangelaccio

Reviewed By: ngraham, progwolff, elvisangelaccio

Subscribers: rkflx, ngraham, elvisangelaccio, broulik, progwolff, #dolphin

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

7 years agoUpdate trash icon after restore operation
Roman Inflianskas [Sat, 10 Mar 2018 19:29:26 +0000 (22:29 +0300)]
Update trash icon after restore operation

Summary:
After restoring all the files from the trash, the trash icon remain 'full'. This patch fixes this.

BUG: 252483

Reviewers: elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: elvisangelaccio, #dolphin

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

7 years agoRemoved unused variables spotted by clazy
Elvis Angelaccio [Sun, 11 Mar 2018 16:14:07 +0000 (17:14 +0100)]
Removed unused variables spotted by clazy

7 years agoAlign minimum ECM and KF5 versions
Elvis Angelaccio [Sun, 11 Mar 2018 16:09:11 +0000 (17:09 +0100)]
Align minimum ECM and KF5 versions

It doesn't make sense to require 1.6.0 which is years old.

7 years agoAdd missing this parameter
Elvis Angelaccio [Sun, 11 Mar 2018 16:07:20 +0000 (17:07 +0100)]
Add missing this parameter

Forgot to mention it while reviewing D11012.

7 years agoAdd Trash (empty, isEmpty, emptinessChanged)
Roman Inflianskas [Sat, 3 Mar 2018 16:44:56 +0000 (19:44 +0300)]
Add Trash (empty, isEmpty, emptinessChanged)

Summary: Add `Trash` class to handle all trash operations.

Reviewers: elvisangelaccio, markg, ngraham

Reviewed By: elvisangelaccio, markg, ngraham

Subscribers: ngraham, markg, rkflx, elvisangelaccio, #dolphin

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

7 years agoFix some compile warnings
Roman Inflianskas [Thu, 8 Mar 2018 09:21:13 +0000 (12:21 +0300)]
Fix some compile warnings

Reviewers: markg, elvisangelaccio

Reviewed By: markg, elvisangelaccio

Subscribers: chehrlic, rkflx, elvisangelaccio, #dolphin

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

7 years agoFix build without Baloo
Kai Uwe Broulik [Wed, 7 Mar 2018 07:55:04 +0000 (08:55 +0100)]
Fix build without Baloo

That include IS used

7 years agoRevert "Fix some compile warnings"
Elvis Angelaccio [Mon, 5 Mar 2018 20:56:15 +0000 (21:56 +0100)]
Revert "Fix some compile warnings"

This reverts commit 533f050855a50212bba7be57a1590f9ce743e26d.

D10995 has not been approved.

7 years agoRemove unused #include
Roman Inflianskas [Sun, 4 Mar 2018 13:38:16 +0000 (16:38 +0300)]
Remove unused #include

Summary: I used CLion inspection to hunt all unused #include

Reviewers: #dolphin, elvisangelaccio, markg

Reviewed By: #dolphin, elvisangelaccio, markg

Subscribers: bcooksley, markg, elvisangelaccio, #dolphin

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

7 years agoFix some compile warnings
Roman Inflianskas [Sat, 3 Mar 2018 17:39:43 +0000 (20:39 +0300)]
Fix some compile warnings

Reviewers: #dolphin, markg

Reviewed By: markg

Subscribers: elvisangelaccio, #dolphin

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

7 years agoRemove unused #include
Roman Inflianskas [Sat, 3 Mar 2018 07:48:57 +0000 (10:48 +0300)]
Remove unused #include

Summary: I used CLion inspection to hunt all unused #include

Reviewers: #dolphin, elvisangelaccio, markg

Reviewed By: #dolphin, elvisangelaccio, markg

Subscribers: markg, elvisangelaccio, #dolphin

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

7 years agoModernize the syntax of shortcuts
Roman Inflianskas [Sat, 3 Mar 2018 08:46:14 +0000 (11:46 +0300)]
Modernize the syntax of shortcuts

Reviewers: #dolphin, markg

Reviewed By: markg

Subscribers: markg, elvisangelaccio, #dolphin

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

7 years agoAdd an option to confirm trash emptying into settings
Roman Inflianskas [Fri, 2 Mar 2018 11:41:36 +0000 (14:41 +0300)]
Add an option to confirm trash emptying into settings

Summary:
Add an option to confirm trash emptying into settings.

BUG: 340572

Reviewers: #dolphin, ngraham, markg

Reviewed By: #dolphin, ngraham, markg

Subscribers: markg, ngraham, rkflx, #dolphin

Tags: #dolphin

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

7 years agoAdd default shortcut "/" for opening filter panel
Roman Inflianskas [Fri, 2 Mar 2018 07:52:47 +0000 (10:52 +0300)]
Add default shortcut "/" for opening filter panel

Summary:
Add default shortcut "/" for opening filter panel.

FEATURE: 156381

Reviewers: #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: ngraham, #dolphin

Tags: #dolphin

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

7 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Sat, 3 Mar 2018 04:23:49 +0000 (05:23 +0100)]
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"

7 years agoAlso use standard keyboard shortcut for "show/hide hidden files"
Nathaniel Graham [Thu, 15 Feb 2018 21:26:57 +0000 (14:26 -0700)]
Also use standard keyboard shortcut for "show/hide hidden files"

Summary:
Use Ctrl+H as another keyboard shortcut to show and hide hidden files, as it is already the standard used in other GTK-based Linux file managers (Nautilus, Nemo, Caja, Thunar, Pantheon Files). This doesn't replace any existing shortcuts, so existing KDE users' muscle memory is retained.

FEATURE: 390527
FIXED-IN: KDE Applications 17.12.3

Test Plan:
- Ctrl+H now shows and hides hidden files
- Alt+. still works to do the same
- F8 still works to do the same
- Toolbar button still changes state appropriately when any of the three shortcuts are used

Reviewers: #dolphin, elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: emateli, elvisangelaccio

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

7 years ago[Information Panel] Adjust painting icons for high dpi scaling
Kai Uwe Broulik [Thu, 15 Feb 2018 12:37:08 +0000 (13:37 +0100)]
[Information Panel] Adjust painting icons for high dpi scaling

Instead of creating our own KIconLoader (which takes ~5ms here) just use QIcon::fromTheme which already does everything right.

BUG: 390488

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

7 years agoAdd icons to Edit menu
Marjio Mustac [Wed, 14 Feb 2018 14:40:36 +0000 (07:40 -0700)]
Add icons to Edit menu

Summary:
Since Breeze offers such a great palette of action icons I thought we should make use of them which make things also more consistent with other applications.

Before:
{F5711158}

After:
{F5711159}

Test Plan:
Show menubar
Icons are shown in Edit menu

Reviewers: #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: ngraham

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

7 years agoMerge branch 'Applications/17.12'
Elvis Angelaccio [Tue, 13 Feb 2018 22:20:49 +0000 (23:20 +0100)]
Merge branch 'Applications/17.12'

7 years agoFix resetting "View Modes" preferences to defaults
Robert Hoffmann [Tue, 13 Feb 2018 22:12:44 +0000 (23:12 +0100)]
Fix resetting "View Modes" preferences to defaults

Summary:
Removed call to settings.readConfig() in ViewSettingsTab::loadSettings(),
because it overwrites default settings with user settings even if called
from ViewSettingsTab::restoreDefaultSettings().

Test Plan:
Settings -> Configure Dolphin -> View Modes:
Choose "Custom Font", "Choose...": other font settings than preselected;
alter "Icon Size" slider positions;
click OK; OK;
note modified text font next to icons, icon sizes

Settings -> Configure Dolphin -> View Modes:
Click "Defaults"
check "Font" is reset to "System Font";
check "Icon Size" slider positions are reset to default positions;
click OK
check text font next to icons, icon sizes are reset to defaults

Subscribers: ltoscano, ngraham, elvisangelaccio, michaelh, #dolphin

Tags: #dolphin

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

7 years agoFix Windows build
Elvis Angelaccio [Sun, 11 Feb 2018 22:01:17 +0000 (23:01 +0100)]
Fix Windows build

kill() is not available on Windows. Now that we build TerminalPanel
everywhere (see 87e8d0ba), we need to #ifdef this call.

7 years agoFix typo
Elvis Angelaccio [Sun, 11 Feb 2018 21:59:29 +0000 (22:59 +0100)]
Fix typo

GIT_SILENT

7 years agoBuild TerminalPanel also on Windows
Elvis Angelaccio [Sun, 21 Jan 2018 11:18:21 +0000 (12:18 +0100)]
Build TerminalPanel also on Windows

Summary:
terminalpanel.cpp *should* compile on Windows, so there is no reason to
remove it from the build and use tons of #ifdefs in dolphinmainwindow.

We still keep the terminal panel disabled on Windows
(i.e. the two remaining #ifndef Q_OS_WIN in dolphinmainwindow),
because it is probably not functional.

But at least we won't break the Windows CI every time
someone touches the terminal panel code (see e.g. 2e942237c9).

Test Plan: Builds on Linux, someone on Windows should test this patch if possible.

Reviewers: #dolphin, #craft

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

7 years agoFaster drag&drop in directories with thousands of files
Jaime Torres [Sun, 4 Feb 2018 20:19:33 +0000 (21:19 +0100)]
Faster drag&drop in directories with thousands of files

Summary:
The check is called when the mouse is moved in a drag&drop operation.

Dragging all files in a directory with 3000 files under callgrind,
moving the mouse to the other panel and then canceling, doing it twice,
callgrind shows that the method urlListMatchesUrl is called around
200 times, spending around 9,30% of the cpu in those calls.
Applying the patch, callgrind tells it uses now 0.31% of the cpu in 1208 calls.

CCBUG: 342056

Reviewers: #dolphin, elvisangelaccio, markg

Reviewed By: #dolphin, elvisangelaccio, markg

Subscribers: markg, anthonyfieroni, michaelh, elvisangelaccio, ngraham

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

7 years ago[KStandardItemListWidget] Adjust painting rating to device pixel ratio
Kai Uwe Broulik [Mon, 5 Feb 2018 15:27:58 +0000 (16:27 +0100)]
[KStandardItemListWidget] Adjust painting rating to device pixel ratio

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

7 years agoFix all krazy #include warnings
Elvis Angelaccio [Sun, 4 Feb 2018 10:38:50 +0000 (11:38 +0100)]
Fix all krazy #include warnings

- "include own header first line"
- "put config.h in angle brackets line"
- "do not include QtModule/QtClass line"

`QElapsedTimer` was implicitly included by
kfileitemmodelsortalgorithm.h, now we need to explicitly include it in
kfileitemmodel.cpp.

We also need to explicitly link to `Qt5::Concurrent`, otherwise we
cannot `#include <QtConcurrentRun>`.

7 years agoUse qplatformdefs wrappers
Elvis Angelaccio [Sun, 4 Feb 2018 10:13:34 +0000 (11:13 +0100)]
Use qplatformdefs wrappers

As recommended by krazy and as kio does.

7 years agoDrop dead code
Elvis Angelaccio [Sat, 3 Feb 2018 22:34:45 +0000 (23:34 +0100)]
Drop dead code

Spotted by clazy (-Wclazy-const-signal-or-slot).

This was added in abf17941f7, but it became dead code after the KF5 port
(possibly after c725848709).

7 years agoFix -Wunused-result warnings
Elvis Angelaccio [Sat, 3 Feb 2018 21:34:24 +0000 (22:34 +0100)]
Fix -Wunused-result warnings

7 years agoFix all 'explicit constructor' krazy warnings
Elvis Angelaccio [Sat, 3 Feb 2018 21:21:30 +0000 (22:21 +0100)]
Fix all 'explicit constructor' krazy warnings

7 years agoPort QSignalSpy to new signal syntax
Elvis Angelaccio [Sat, 3 Feb 2018 19:46:08 +0000 (20:46 +0100)]
Port QSignalSpy to new signal syntax

More compile-time safety. Tests still pass.

This also fixes a krazy warning about "normalised signal/slot
signatures".

7 years agoUse new KStandardAction slot syntax
Elvis Angelaccio [Sat, 3 Feb 2018 19:30:37 +0000 (20:30 +0100)]
Use new KStandardAction slot syntax

This was probably forgotten from commit 3bfdf0d2.

7 years agoFix typo spotted by krazy
Elvis Angelaccio [Sat, 3 Feb 2018 18:59:40 +0000 (19:59 +0100)]
Fix typo spotted by krazy

GIT_SILENT

7 years agoAdd newline at the end of kitemmodelbase.cpp
Elvis Angelaccio [Sat, 3 Feb 2018 18:42:50 +0000 (19:42 +0100)]
Add newline at the end of kitemmodelbase.cpp

As recommended by krazy.

GIT_SILENT

7 years agoGIT_SILENT Upgrade KDE Applications version to 17.12.2.
Albert Astals Cid [Fri, 2 Feb 2018 23:38:57 +0000 (00:38 +0100)]
GIT_SILENT Upgrade KDE Applications version to 17.12.2.

7 years agoMerge branch 'Applications/17.12'
Nathaniel Graham [Wed, 31 Jan 2018 00:06:43 +0000 (17:06 -0700)]
Merge branch 'Applications/17.12'

7 years agoLet the terminal panel dock to any part of the window
Nathaniel Graham [Wed, 31 Jan 2018 00:05:57 +0000 (17:05 -0700)]
Let the terminal panel dock to any part of the window

Summary:
BUG: 362593

Just what it says: Let the terminal panel sit on the left or right side of the window.

Test Plan:
Tested in KDE Neon:
- Opened terminal panel, unlocked widgets, and tried to drag it to the right or left side of the window: I can
- Put terminal panel on right side, quit Dolphin and opened Dolphin again: terminal panel appears on the right as expected
- Put terminal panel on right side, closed terminal panel, quit Dolphin, opened Dolphin, and opened the terminal panel again: terminal panel appears on the right as expected
- Removed dolphinrc file and opened terminal panel: appears on the bottom

{F5682428}

Reviewers: #dolphin

Subscribers: elvisangelaccio, anthonyfieroni, cfeck

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

7 years agoLet the terminal panel sit on the left or right side of the window
Nathaniel Graham [Tue, 30 Jan 2018 00:05:24 +0000 (17:05 -0700)]
Let the terminal panel sit on the left or right side of the window

Summary: Just what it says: Let the terminal panel sit on the left or right side of the window.

Test Plan: Tested in KDE Neon. Works great!

Reviewers: #dolphin

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

7 years agobase scrolling on the smallest item
Marco Martin [Mon, 29 Jan 2018 10:52:23 +0000 (11:52 +0100)]
base scrolling on the smallest item

Summary:
CCBUG: 386379

after recent highdpi patches on scrolling that delegated it
completely to the scrollbar, based upon the scrollbar singleStep
setted to the tallest of the items in the view.
tough this makes scrolling way too fast, and on folders where just
few filenames are longer than most we can get a single scrolling
step almost double the number of lines configured in the
mouse kcm.
Using the shortest item instead of the tallest mitigates this problem
making it a bit more usable

Test Plan:
tested on different folders in different view modes both with
mouse and touchpad

Reviewers: #dolphin, broulik, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: ngraham, plasma-devel

Tags: #plasma

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

7 years agoPort away from deprecated QStyle::SH_Widget_Animate
Elvis Angelaccio [Sun, 21 Jan 2018 09:50:11 +0000 (10:50 +0100)]
Port away from deprecated QStyle::SH_Widget_Animate

Summary:
Use the new QStyle::SH_Widget_Animation_Duration instead,
which allows us to not manually hardcode the duration.
We still use 1 if animations are disabled,
otherwise the scroll would not work at all.

See also D5883 for some background.

Test Plan: Played with different values in the Animation tab of the Breeze config dialog.

Reviewers: #dolphin, broulik

Reviewed By: broulik

Subscribers: broulik

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

7 years agoUse BatchRenameJob to rename multiple files in Dolphin
Chinmoy Ranjan Pradhan [Sat, 27 Jan 2018 11:49:39 +0000 (17:19 +0530)]
Use BatchRenameJob to rename multiple files in Dolphin

Summary:
Use KIO::BatchRenameJob in Dolphin::RenameDialog to rename multiple files.
With this viewing progress of rename operation and undo is possible.

See D9103 and D9107.

Reviewers: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, ngraham, broulik

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

7 years agoBump minimum KF5 version
Elvis Angelaccio [Sat, 27 Jan 2018 10:24:10 +0000 (11:24 +0100)]
Bump minimum KF5 version

This should have been part of D9333.

7 years agoFix place item edit after creation
Renato Araujo Oliveira Filho [Fri, 19 Jan 2018 16:37:09 +0000 (13:37 -0300)]
Fix place item edit after creation

Summary:
Make sure that the place can be edited after the creation.

Depends on D9333

BUG: 389147

Test Plan:
Create an item in dolphin places panel, make sure that you
can rename it

Reviewers: #dolphin, ngraham

Reviewed By: ngraham

Subscribers: michaelh, elvisangelaccio, lbeltrame, ngraham, #dolphin

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

7 years agoMake sure that old URLs do not appear duplicated in places model
Renato Araujo Oliveira Filho [Thu, 14 Dec 2017 15:35:44 +0000 (12:35 -0300)]
Make sure that old URLs do not appear duplicated in places model

Summary:
BUG: 389401

KIO model now provides Baloo URLs; we need to remove the old ones
created by Dolphin places model

BUG: 387888
Depends on D9332

Test Plan: unit test

Reviewers: mwolff, #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham, elvisangelaccio

Subscribers: elvisangelaccio, broulik, ervin, ngraham, #dolphin

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

7 years agoAdd option to sort for original date
Julian Schraner [Tue, 23 Jan 2018 23:32:51 +0000 (16:32 -0700)]
Add option to sort for original date

Summary:
Takes the original date a photo was taken out of the data provided by Baloo & makes it available to the user

FEATURE: 303645

{F5671033}

Test Plan:
- Works with a batch of time-tagged photos
- Can be hidden/shown/sorted like any other property

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham, elvisangelaccio

Subscribers: elvisangelaccio, ngraham

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

7 years agoFix renamed file reclaims focus
Andreas Krutzler [Sun, 21 Jan 2018 20:39:41 +0000 (13:39 -0700)]
Fix renamed file reclaims focus

Summary:
After renaming a file and then selecting another file immediately the just selected file stays selected.

BUG: 388555

Test Plan:
Steps to reproduce:
$ mkdir /tmp/test
$ cd /tmp/test
$ touch a.tmp b.tmp
$ dolphin /tmp/test

In dolphin:
* select a.tmp
* <F2>
* type aaa
* select b.tmp immediately

Expected result:
* a.tmp renamed to aaa.tmp
* b.tmp stays selected, aaa.tmp stays unselected

Reviewers: ngraham, michaelh, #dolphin, elvisangelaccio

Reviewed By: ngraham, michaelh, #dolphin, elvisangelaccio

Subscribers: emateli, elvisangelaccio, #dolphin

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

7 years agoDon't show 'Open Terminal' on Windows
Elvis Angelaccio [Sun, 21 Jan 2018 11:15:07 +0000 (12:15 +0100)]
Don't show 'Open Terminal' on Windows

We already disable the TerminalPanel on Windows, we should do the same
with the 'Open Terminal' action for consistency.

7 years agoRevert "Ignore baloo urls created from new KIO model"
Luca Beltrame [Fri, 19 Jan 2018 12:27:52 +0000 (13:27 +0100)]
Revert "Ignore baloo urls created from new KIO model"

This reverts commit 9d3a019445d7a7fdf3177bca9eeef4c44599e706.

Causes breakage in Dolphin in master. The proper fix is in D9333.

CCBUG: 389147

7 years agoExclude m_terminalPanel references when built on Windows
Adrián Chaves (Gallaecio) [Thu, 18 Jan 2018 19:30:59 +0000 (20:30 +0100)]
Exclude m_terminalPanel references when built on Windows

Fixes an issue reported by elvisangelaccio at https://phabricator.kde.org/D9955

7 years agoSet the focus to the active view, after leaving the terminal panel
Adrián Chaves Fernández (Gallaecio) [Thu, 18 Jan 2018 17:49:54 +0000 (18:49 +0100)]
Set the focus to the active view, after leaving the terminal panel

Summary:
BUG: 298467

Set the focus to the active view, after leaving the terminal panel.

This is a fork of the patch at https://git.reviewboard.kde.org/r/116118/ by @emmanuelp which should fix the issue with the original patch reported by Frank Reininghaus.

Test Plan: Works for me.

Reviewers: #dolphin, emmanuelp, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: ngraham, emmanuelp

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

7 years agoMerge remote-tracking branch 'origin/Applications/17.12'
Luca Beltrame [Thu, 18 Jan 2018 08:09:49 +0000 (09:09 +0100)]
Merge remote-tracking branch 'origin/Applications/17.12'

Conflicts:
CMakeLists.txt [versions]
src/panels/places/placesitemmodel.cpp

7 years agoFolderspanel's context-menu option "Limit to Home Directory" is always visible
Michael Heidelbach [Tue, 16 Jan 2018 09:23:50 +0000 (10:23 +0100)]
Folderspanel's context-menu option "Limit to Home Directory" is always visible

Summary:
Applied suggested changes to [[ https://phabricator.kde.org/D9662 | D9662 ]]
  - Enum instead of bool
  - Use QStringLiteral

Test Plan: Visual inspection

Reviewers: ngraham, elvisangelaccio, #dolphin

Reviewed By: ngraham, #dolphin

Subscribers: #dolphin

Tags: #dolphin, #kde_applications

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

7 years agofolderspanel context-menu option "Limit to Home Directory" should be always visible
Michael Heidelbach [Sun, 14 Jan 2018 17:53:11 +0000 (10:53 -0700)]
folderspanel context-menu option "Limit to Home Directory" should be always visible

Summary:
Only by chance I discovered that this option is visible but only when inside home. Before that I always edited dolphinrc to reenable it.
I think it's less confusing to always show it but toggle its enabled state

Test Plan:
compile and run
show folderspanel context-menu in different places

Reviewers: #dolphin, emmanuelp, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: elvisangelaccio

Tags: #dolphin, #kde_applications

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