]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
7 years agoImprove Ux for the places panel's hidden items
Chris Rizzitello [Sun, 11 Nov 2018 21:02:08 +0000 (16:02 -0500)]
Improve Ux for the places panel's hidden items

Summary:
BUG: 400860
FIXED-IN: 18.12.0

Clean up the context menu for the places panel.
 - Change Text "Show All Entries" -> "Show Hidden Places"
 - Use State dependent icon (like hidden files)
 - Disable instead of hide if not places are hidden.
 - Toggle to unchecked if last item of group is unhidden.

Create a copy of this "Show Hidden Places" entry in the main dolphin menu View->Places.

Test Plan:
With Hidden Places
{F6398756}
{F6398759}
Context Menu:
{F6398762}
{F6398761}

Without Hidden Places.
{F6414694}
{F6414696}

Reviewers: #dolphin, #vdg, elvisangelaccio, ngraham

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

Subscribers: cfeck, elvisangelaccio, veqz, davidc, ngraham, kfm-devel

Tags: #dolphin

Maniphest Tasks: T8349

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

7 years agoMerge branch 'Applications/18.12'
Harald Sitter [Sat, 17 Nov 2018 11:25:21 +0000 (12:25 +0100)]
Merge branch 'Applications/18.12'

7 years agomove kcrash link to dolphin app (which is the effective user)
Harald Sitter [Thu, 15 Nov 2018 13:43:57 +0000 (14:43 +0100)]
move kcrash link to dolphin app (which is the effective user)

Summary:
to successfully use kcrash when linking with as-needed (which is a default
flag on many linux distros) one also needs to call KCrash::initialize.
this call happens in the app's main.cpp. as such the kcrash link target
on the dolphinprivate library doesn't do anything for dolphinprivate but
only kicks into action for dolphin itself.
to avoid confusion and make it clear that kcrash is only initialized in the
application scope the KF5::Crash link target is now on the application
target, not the library target.

(this makes no difference in the output, kcrash was still correctly linked
 via dolphinprivate; but only for kdeinit_dolphin, dolphinprivate did
 not get linked to it with as-needed)

Test Plan: builds; links as expected

Reviewers: elvisangelaccio, #dolphin

Reviewed By: elvisangelaccio, #dolphin

Subscribers: kfm-devel

Tags: #dolphin

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

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Fri, 16 Nov 2018 05:50:05 +0000 (06:50 +0100)]
GIT_SILENT made messages (after extraction)

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Fri, 16 Nov 2018 02:37:49 +0000 (03:37 +0100)]
GIT_SILENT made messages (after extraction)

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 14 Nov 2018 02:45:20 +0000 (03:45 +0100)]
GIT_SILENT made messages (after extraction)

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Tue, 13 Nov 2018 02:48:54 +0000 (03:48 +0100)]
GIT_SILENT made messages (after extraction)

7 years ago[PlacesItem] Add support for OnlyInApp metadata for bookmarks
Elvis Angelaccio [Sun, 11 Nov 2018 17:29:36 +0000 (18:29 +0100)]
[PlacesItem] Add support for OnlyInApp metadata for bookmarks

This will allow to edit an existing place to make it application-local
or visible from all applications.

CCBUG: 376619

7 years ago[PlacesItemModel] Match KFilePlacesModel addPlaces() API
Elvis Angelaccio [Sun, 11 Nov 2018 16:35:13 +0000 (17:35 +0100)]
[PlacesItemModel] Match KFilePlacesModel addPlaces() API

This will allow to create a place visible only from Dolphin, by passing
an `appName` to the KFilePlacesModel.

CCBUG: 376619

7 years agoMerge branch 'Applications/18.12'
Elvis Angelaccio [Sun, 11 Nov 2018 18:02:34 +0000 (19:02 +0100)]
Merge branch 'Applications/18.12'

7 years agoUpdate copyright year in KAboutData
Elvis Angelaccio [Sun, 11 Nov 2018 18:00:24 +0000 (19:00 +0100)]
Update copyright year in KAboutData

GIT_SILENT

7 years agoGIT_SILENT Upgrade KDE Applications version to 19.03.70.
Albert Astals Cid [Sat, 10 Nov 2018 07:37:42 +0000 (08:37 +0100)]
GIT_SILENT Upgrade KDE Applications version to 19.03.70.

7 years agoGIT_SILENT Upgrade KDE Applications version to 18.03.70.
Albert Astals Cid [Fri, 9 Nov 2018 22:35:44 +0000 (23:35 +0100)]
GIT_SILENT Upgrade KDE Applications version to 18.03.70.

7 years agoGIT_SILENT Upgrade KDE Applications version to 18.11.80.
Albert Astals Cid [Fri, 9 Nov 2018 22:17:57 +0000 (23:17 +0100)]
GIT_SILENT Upgrade KDE Applications version to 18.11.80.

7 years agoWarn user before renaming the file/folder to start with a ' . '
Shubham Jangra [Thu, 8 Nov 2018 08:48:36 +0000 (14:18 +0530)]
Warn user before renaming the file/folder to start with a ' . '

Summary: For normal "casual" linux users, renaming the file/folder starting with dot may get irritating, they will be wondering their file is deleted.

Test Plan:
1. Make new file/folder.
2. Rename it to .foo
3. Question dialog appears.

Reviewers: elvisangelaccio, ngraham, pino

Reviewed By: elvisangelaccio, ngraham

Subscribers: cfeck, emateli, elvisangelaccio, pino, kfm-devel

Tags: #dolphin

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

7 years agoAdd donation url to appdata
Albert Astals Cid [Wed, 7 Nov 2018 23:12:53 +0000 (00:12 +0100)]
Add donation url to appdata

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Mon, 5 Nov 2018 02:32:41 +0000 (03:32 +0100)]
GIT_SILENT made messages (after extraction)

7 years agoUpdate maintainership in KAboutData
Elvis Angelaccio [Sun, 4 Nov 2018 20:21:19 +0000 (21:21 +0100)]
Update maintainership in KAboutData

As discussed on kfm-devel and agreed upon with Emmanuel.

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Sun, 4 Nov 2018 02:42:18 +0000 (03:42 +0100)]
GIT_SILENT made messages (after extraction)

7 years agoAutogenerate debug file + install debug categories file
Laurent Montel [Fri, 2 Nov 2018 12:23:10 +0000 (13:23 +0100)]
Autogenerate debug file + install debug categories file

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Thu, 1 Nov 2018 02:38:41 +0000 (03:38 +0100)]
GIT_SILENT made messages (after extraction)

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Sun, 28 Oct 2018 01:32:13 +0000 (02:32 +0100)]
GIT_SILENT made messages (after extraction)

7 years agoMerge branch 'Applications/18.08'
Elvis Angelaccio [Sat, 27 Oct 2018 16:04:05 +0000 (18:04 +0200)]
Merge branch 'Applications/18.08'

7 years agoDon't enable two-clicks renaming in single-click mode
Elvis Angelaccio [Sat, 27 Oct 2018 14:53:59 +0000 (16:53 +0200)]
Don't enable two-clicks renaming in single-click mode

Summary:
This was supposed to be part of commit 5454283008f2, but apparently we
didn't notice it was missing.

Test Plan:
- Enable single-click mode from system settings
- Select a file in dolphin
- Long-click the selected file and make sure inline renaming doesn't start

Subscribers: kfm-devel

Tags: #dolphin

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

7 years agoAdjust label in the settings page for changed preview behaviour
Fabian Vogt [Sun, 2 Sep 2018 10:09:22 +0000 (12:09 +0200)]
Adjust label in the settings page for changed preview behaviour

Summary: Requested by https://phabricator.kde.org/D15138#318904

Test Plan: Opened the preview settings, label text changed.

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: ngraham, markg, broulik, kfm-devel, elvisangelaccio

Tags: #dolphin

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

7 years agoClose Dolphin if last tab closed
Alexander Saoutkin [Sat, 27 Oct 2018 09:23:52 +0000 (11:23 +0200)]
Close Dolphin if last tab closed

Summary:
Allows closing of last tab via shortcut or menubar (File->Close Tab), which then results in closing dolphin.

FEATURE: 397101

Test Plan: [Manual] Check closing tab closes dolphin via shortcut and menubar.

Reviewers: #dolphin, ngraham, #vdg, elvisangelaccio

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

Subscribers: thsurrel, svenmauch, abetts, elvisangelaccio, ngraham, #dolphin, kfm-devel

Tags: #dolphin

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

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Sat, 27 Oct 2018 01:38:41 +0000 (03:38 +0200)]
GIT_SILENT made messages (after extraction)

7 years agoAdd caption to the screenshot
Yuri Chornoivan [Thu, 25 Oct 2018 18:28:41 +0000 (21:28 +0300)]
Add caption to the screenshot

7 years agoFix minor typos
Yuri Chornoivan [Thu, 25 Oct 2018 18:23:44 +0000 (21:23 +0300)]
Fix minor typos

7 years ago[DolphinViewActionHandler] Rename createDirectory signal
Elvis Angelaccio [Wed, 24 Oct 2018 20:49:01 +0000 (22:49 +0200)]
[DolphinViewActionHandler] Rename createDirectory signal

Signals should be named after an event that happened.

7 years agoMerge branch 'Applications/18.08'
Kai Uwe Broulik [Wed, 24 Oct 2018 07:53:07 +0000 (09:53 +0200)]
Merge branch 'Applications/18.08'

7 years ago[KStandardItemListWidget] Pass icon state to overlay painter
Kai Uwe Broulik [Wed, 24 Oct 2018 07:52:36 +0000 (09:52 +0200)]
[KStandardItemListWidget] Pass icon state to overlay painter

Ensures the overlay is painted in the same icon state, especially the selected one so dark overlays turn white.

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

7 years agoUse QLatin1Char instead of QLatin1String
Shubham Jangra [Sat, 13 Oct 2018 12:31:43 +0000 (18:01 +0530)]
Use QLatin1Char instead of QLatin1String

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Thu, 18 Oct 2018 01:39:45 +0000 (03:39 +0200)]
GIT_SILENT made messages (after extraction)

7 years agoAdd a 'Properties' entry in the Places panel context menu
Thomas Surrel [Wed, 3 Oct 2018 20:20:37 +0000 (22:20 +0200)]
Add a 'Properties' entry in the Places panel context menu

Summary: BUG: 181880

Test Plan:
Right-click on a place or on a device in the Places panel now show a Properties entry.
Clicking on it will open its folder property.

Reviewers: #dolphin, #plasma, #vdg, ngraham, elvisangelaccio

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

Subscribers: anthonyfieroni, elvisangelaccio, cfeck, ngraham, abetts, kfm-devel

Tags: #dolphin

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

7 years agoRevert "[PlacesItemModelTest] Make test fail on purpose"
Elvis Angelaccio [Sat, 13 Oct 2018 21:24:32 +0000 (23:24 +0200)]
Revert "[PlacesItemModelTest] Make test fail on purpose"

This reverts commit dd8fce5594e9f55ce4c159d46ec59b08313982bb.

Got what I was looking for, from the CI logs.

7 years ago[PlacesItemModelTest] Make test fail on purpose
Elvis Angelaccio [Sat, 13 Oct 2018 20:24:57 +0000 (22:24 +0200)]
[PlacesItemModelTest] Make test fail on purpose

Needed to check whether on the CI KDirWatch emits the `created` signal when we
refresh the places model.

Will be reverted soon.

GIT_SILENT

7 years ago[PlacesItemModelTest] Revert last two commits
Elvis Angelaccio [Sat, 13 Oct 2018 16:49:35 +0000 (18:49 +0200)]
[PlacesItemModelTest] Revert last two commits

Commit c527dc2172 proves that on the CI sometimes the `QAbstractItemModel::dataChanged`
signal is not being emitted at all (build #208 failed because the test timed out).

KFilePlacesModel emits `dataChanged()` in the `_k_reloadBookmarks()`
slot only when it's called after the KBookmarkManager emits the `changed()` signal.

And the `changed()` signal is emitted after KDirWatch emits the
`created` signal.

On the CI server kdirwatch is probably not reliable, which would explain
why the test randomly fails.

7 years ago[PlacesItemModelTest] Try to use an event loop instead of an hardcoded timeout
Elvis Angelaccio [Sat, 13 Oct 2018 10:06:21 +0000 (12:06 +0200)]
[PlacesItemModelTest] Try to use an event loop instead of an hardcoded timeout

Increasing the timeout from 5 to 10 seconds didn't work.
Let's see if an eventloop does the job.

7 years ago[PlacesItemModelTest] Try to double test timeout
Elvis Angelaccio [Sat, 13 Oct 2018 09:15:09 +0000 (11:15 +0200)]
[PlacesItemModelTest] Try to double test timeout

The randomly failing `testRefresh()` on the CI can be reproduced by
replacing the QTRY_COMPARE with a simple QCOMPARE.

So it seems the CI can be slow such that the default QTR_COMPARE
timeout of 5 seconds is not enough.

If a timeout of 10 seconds fixes this particular test case, we can use
this bigger timeout also in the other failing tests.

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Sat, 13 Oct 2018 01:39:02 +0000 (03:39 +0200)]
GIT_SILENT made messages (after extraction)

7 years agoDisable unmount option for / or /home
Thomas Surrel [Sat, 6 Oct 2018 20:09:08 +0000 (22:09 +0200)]
Disable unmount option for / or /home

Summary:
This removes the 'Unmount' context menu in the Places panel for discs
corresponding to / and /home.

It does not make much sense to offer an option that will always fail.

BUG: 399659

Reviewers: #dolphin, #vdg, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: sefaeyeoglu, elvisangelaccio, ngraham, broulik, bruns, kfm-devel

Tags: #dolphin

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

7 years agoUpdate hidden state correctly
Thomas Surrel [Wed, 10 Oct 2018 20:24:31 +0000 (22:24 +0200)]
Update hidden state correctly

Summary:
When renaming a file from '.hidden' to 'not_hidden', the file
would still be displayed like a hidden file with a semi-transparent
icon and a grey text.

BUG: 399599

Reviewers: #dolphin, elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

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

7 years ago[PlacesItemModelTest] Improve name of helper method
Elvis Angelaccio [Wed, 10 Oct 2018 20:58:14 +0000 (22:58 +0200)]
[PlacesItemModelTest] Improve name of helper method

removePlaceAfter(index) is a bit misleading, because it seems we are
going to remove the place after index `index`.

This method is just scheduling the removal of the place instead.
The method name should be consistent with what it actually does.

7 years agoUpdate hidden state correctly
Thomas Surrel [Wed, 10 Oct 2018 20:24:31 +0000 (22:24 +0200)]
Update hidden state correctly

Summary:
When renaming a file from '.hidden' to 'not_hidden', the file
would still be displayed like a hidden file with a semi-transparent
icon and a grey text.

BUG: 399599

Reviewers: #dolphin, elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

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

7 years agoAdd proper labels to Trash Emptied notification
Kai Uwe Broulik [Wed, 10 Oct 2018 14:25:49 +0000 (16:25 +0200)]
Add proper labels to Trash Emptied notification

It is not shown by default but when the user enables it, it should show something sensible.

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

7 years agoAdded missing icons to panel places items
Alex Debus [Tue, 9 Oct 2018 21:18:25 +0000 (15:18 -0600)]
Added missing icons to panel places items

Summary:
Screenshots of the changes:
| {F6310217} |{F6310218}

This contribution was motivated by a comment on [[ https://pointieststick.wordpress.com/2018/10/06/this-week-in-usability-productivity-part-39/comment-page-1/#comment-2108 |  Nate's blog]].

Reviewers: #vdg, ngraham

Reviewed By: #vdg, ngraham

Subscribers: ngraham, acrouthamel, kfm-devel

Tags: #dolphin

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

7 years agoAdded missing QStringLiteral to Dolphin code
Alex Debus [Tue, 9 Oct 2018 21:12:38 +0000 (15:12 -0600)]
Added missing QStringLiteral to Dolphin code

Summary:
Changed
```
QIcon::fromTheme("icon")
```

to

```
QIcon::fromTheme(QStringLiteral("edit-entry"))
```

as [[ https://phabricator.kde.org/D16019#339284 | discussed here ]].

Reviewers: ngraham, #dolphin, elvisangelaccio

Reviewed By: ngraham, #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

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

7 years agoAdd "Create New" menu to "Control" button
Nathaniel Graham [Sun, 7 Oct 2018 13:24:22 +0000 (07:24 -0600)]
Add "Create New" menu to "Control" button

Summary: Right now, the "Create New" menu's functionality is not visible with Dolphin's default layout that has a {nav Control} button instead of a menubar. This patch adds that functionality to the {nav Control} button's menu so that it's actually discoverable for regular users.

Test Plan:
{F6304893}

All menu items work.

Reviewers: #dolphin, broulik, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: acrouthamel, anthonyfieroni, elvisangelaccio, kfm-devel

Tags: #dolphin

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

7 years ago[PlacesItemModelTest] Try harder to not hardcode indexes
Elvis Angelaccio [Tue, 9 Oct 2018 20:58:38 +0000 (22:58 +0200)]
[PlacesItemModelTest] Try harder to not hardcode indexes

This test is still randomly failing on the CI (only on master though).
Let's see if this fixes it for good.

7 years ago[MountPointObserverCache] Update mounts less frequently
Kai Uwe Broulik [Tue, 9 Oct 2018 11:37:10 +0000 (13:37 +0200)]
[MountPointObserverCache] Update mounts less frequently

Even on fastest disks, filling up the disk in 10 seconds is unlikely.
Moreover, Plasma's "low disk" warning only polls every minute as well and Dolphin doesn't warn you about the fact that it's full.
Reduces needless wake ups of disks and network.

CCBUG: 398612

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

7 years agoFix implicit-fallthrough gcc warning
Elvis Angelaccio [Sun, 7 Oct 2018 21:07:32 +0000 (23:07 +0200)]
Fix implicit-fallthrough gcc warning

GIT_SILENT

7 years agoDrop noisy debug output
Elvis Angelaccio [Sun, 7 Oct 2018 19:46:46 +0000 (21:46 +0200)]
Drop noisy debug output

This qCDebug() call shows up at every change of directory and doesn't
really add any value.

7 years ago[DolphinMainWindowTest] Attempt to fix testOpenInNewTabTile() on the CI
Elvis Angelaccio [Sun, 7 Oct 2018 19:37:35 +0000 (21:37 +0200)]
[DolphinMainWindowTest] Attempt to fix testOpenInNewTabTile() on the CI

Both icon `name()`s are empty on the CI, which probably doesn't have
icons or something. This should hopefully fix it.

7 years ago[DolphinMainWindowTest] Add some debug output
Elvis Angelaccio [Sun, 7 Oct 2018 19:19:12 +0000 (21:19 +0200)]
[DolphinMainWindowTest] Add some debug output

testOpenInNewTabTitle() is currently failing on the CI, this should help
investigate why.

7 years agoFix another stale comment
Elvis Angelaccio [Sun, 7 Oct 2018 18:02:07 +0000 (20:02 +0200)]
Fix another stale comment

PlacesItemModel::updateBookmarks() is gone since commit da6f8fe0862585287.

7 years agoMerge branch 'Applications/18.08'
Elvis Angelaccio [Sun, 7 Oct 2018 17:53:08 +0000 (19:53 +0200)]
Merge branch 'Applications/18.08'

7 years ago[PlacesItemModelTest] More index-related fixes
Elvis Angelaccio [Sun, 7 Oct 2018 17:41:54 +0000 (19:41 +0200)]
[PlacesItemModelTest] More index-related fixes

Again, we cannot assume the Desktop and Downloads places are always
around.

7 years ago[PlacesItemModel] Fix testSystemItems()
Elvis Angelaccio [Sun, 7 Oct 2018 17:28:56 +0000 (19:28 +0200)]
[PlacesItemModel] Fix testSystemItems()

7 years ago[PlacesItemModelTest] Fix testHideItem()
Elvis Angelaccio [Sun, 7 Oct 2018 16:01:00 +0000 (18:01 +0200)]
[PlacesItemModelTest] Fix testHideItem()

7 years ago[PlacesItemModelTest] Fix testTearDownDevice()
Elvis Angelaccio [Sun, 7 Oct 2018 15:49:36 +0000 (17:49 +0200)]
[PlacesItemModelTest] Fix testTearDownDevice()

7 years ago[PlacesItemModelTest] Fix testDeletePlace()
Elvis Angelaccio [Sun, 7 Oct 2018 15:41:54 +0000 (17:41 +0200)]
[PlacesItemModelTest] Fix testDeletePlace()

If the Desktop or Downloads folder is missing, using 5 as index would be
wrong.

7 years ago[PlacesItemModelTest] Fix testGroups() test case
Elvis Angelaccio [Sun, 7 Oct 2018 15:26:28 +0000 (17:26 +0200)]
[PlacesItemModelTest] Fix testGroups() test case

The test was also assuming that the Desktop and Downloads folders are
always available, which isn't the case.

7 years agoFollow-up of commit 9760f9607d
Elvis Angelaccio [Sun, 7 Oct 2018 15:07:56 +0000 (17:07 +0200)]
Follow-up of commit 9760f9607d

Also drop the hardcoded model count all over the place.

7 years ago[PlacesItemModelTest] Check whether Desktop and Download folders exist
Elvis Angelaccio [Sun, 7 Oct 2018 14:50:27 +0000 (16:50 +0200)]
[PlacesItemModelTest] Check whether Desktop and Download folders exist

KFilePlacesModel creates the Desktop and Downloads bookmarks only if
their folder exists.

This should hopefully fix the failing test on the CI (actual count = 15,
expected count = 17), since the CI runs in docker and probably doesn't
have those two folders by default.

7 years agoFix disabling of DolphinNewFileMenu
Elvis Angelaccio [Sun, 7 Oct 2018 11:19:17 +0000 (13:19 +0200)]
Fix disabling of DolphinNewFileMenu

Summary:
Commit e133c4557ecc37ed3f7e1b9 doesn't work because the actions in the
KNewFileMenu are added only when we show the context menu for the first
time.

Fixes the failing test cases in D16005.

Test Plan: Run `dolphinmainwindowtest` and open the context menu in different places (Home, Root, Trash, `bluetooth:/`, etc.)

Reviewers: #dolphin

Subscribers: kfm-devel

Tags: #dolphin

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

7 years agoAdd test cases for enabled status of DolphinNewFileMenu
Elvis Angelaccio [Sun, 7 Oct 2018 11:05:55 +0000 (13:05 +0200)]
Add test cases for enabled status of DolphinNewFileMenu

Summary:
Root and Trash test cases are currently failing because of
commit e133c4557ecc37ed3f7e1b9418306aa8cc516865.

Reviewers: #dolphin

Subscribers: kfm-devel

Tags: #dolphin

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

7 years agoAdd 'Mount' option to context menu of unmounted device in Places
Thomas Surrel [Fri, 5 Oct 2018 20:45:50 +0000 (22:45 +0200)]
Add 'Mount' option to context menu of unmounted device in Places

Summary:
This is only a proposal but:
1/ it the sysmetric of the Unmount entry in the context menu of mounted devices
2/ I have to admit it took me a very long time to discover (by accident) that you can just (left-)click on a unmounted device to get it mounted automatically. I might not be the only feeling that you should be able to mount a device from the context menu ...

Twin of D15988 in Kio while dolphin is not based on the kio code for Places.

{F6306516}

Reviewers: #dolphin, #vdg, ngraham, elvisangelaccio

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

Subscribers: ngraham, acrouthamel, kfm-devel

Tags: #dolphin

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

7 years agoFix stale comment
Elvis Angelaccio [Sun, 7 Oct 2018 11:32:10 +0000 (13:32 +0200)]
Fix stale comment

GIT_SILENT

7 years agoMerge remote-tracking branch 'origin/Applications/18.08'
Jaime Torres Amate [Sat, 6 Oct 2018 08:32:29 +0000 (10:32 +0200)]
Merge remote-tracking branch 'origin/Applications/18.08'

merge https://phabricator.kde.org/D15371

7 years agoDon't assign twice the same key to the action New Tab
Jaime Torres Amate [Sat, 6 Oct 2018 07:59:10 +0000 (09:59 +0200)]
Don't assign twice the same key to the action New Tab

Second try:
added Qt::CTRL + Qt::Key_T and Qt::CTRL + Qt::SHIFT + Qt::Key_N
as QKeySequence::AddTab is only Qt::CTRL + Qt::SHIFT + Qt::Key_N
under plasma.

7 years ago[PlacesItemModel] Update apidox
Elvis Angelaccio [Thu, 4 Oct 2018 21:03:23 +0000 (23:03 +0200)]
[PlacesItemModel] Update apidox

Should have been part of da6f8fe0862585287153 (the grouping feature has
been moved upstream to KIO).

7 years ago[PlacesItemModel] Drop unused forward declaration
Elvis Angelaccio [Thu, 4 Oct 2018 20:57:43 +0000 (22:57 +0200)]
[PlacesItemModel] Drop unused forward declaration

No longer needed since da6f8fe0862585287153f0d90e.

GIT_SILENT

7 years ago[PlacesItemModel] Drop dead code
Elvis Angelaccio [Thu, 4 Oct 2018 20:52:51 +0000 (22:52 +0200)]
[PlacesItemModel] Drop dead code

m_bookmarkedItems is long gone (since commit da6f8fe0862585287153).
Porting `showModelState()` to the new KFilePlacesModel source model is
not worth it, since this was just a debugging function and most of the
logic has been moved upstream anyway (see T7040).

7 years agoChange icon for the 'Edit...' context menu entry in Places panel
Thomas Surrel [Thu, 4 Oct 2018 17:45:23 +0000 (11:45 -0600)]
Change icon for the 'Edit...' context menu entry in Places panel

Summary:
The current icon is used for displaying the Properties context menu
in other places in dolphin. Change to edit-entry.

Test Plan: Right-click on a place in the Places panel.

Reviewers: #dolphin, #vdg, ngraham

Reviewed By: #dolphin, #vdg, ngraham

Subscribers: broulik, kfm-devel

Tags: #dolphin

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

7 years agoMerge branch 'Applications/18.08'
Andreas Krutzler [Wed, 3 Oct 2018 18:10:04 +0000 (20:10 +0200)]
Merge branch 'Applications/18.08'

7 years agoFix that dragging a file can trigger inline rename.
Andreas Krutzler [Tue, 2 Oct 2018 18:25:57 +0000 (20:25 +0200)]
Fix that dragging a file can trigger inline rename.

Summary:
Inline renaming is aborted as soon as an item is dragged. Previously, ’m_dragging' was used to determine if an item was being dragged. However, inline renaming is triggered after a certain amount of
time, during which time the user may have stopped dragging items.

BUG: 398375
FIXED-IN: 18.08.2

Test Plan: When dragging an selected item, inline renaming should never be started, regardless of where you drag it (Places panel, other split-view window, out of the Dolphin window, ...).

Reviewers: wbauer, elvisangelaccio, #dolphin, ngraham

Reviewed By: wbauer, elvisangelaccio, #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

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

7 years agoGIT_SILENT Upgrade KDE Applications version to 18.08.2.
Christoph Feck [Wed, 3 Oct 2018 17:00:48 +0000 (19:00 +0200)]
GIT_SILENT Upgrade KDE Applications version to 18.08.2.

7 years agoTrack search mode in variable
Kai Uwe Broulik [Thu, 27 Sep 2018 10:57:18 +0000 (12:57 +0200)]
Track search mode in variable

Rather than relying on a widget being visible which might not be the case for e.g. non-active tabs

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

7 years agoFix window / tab caption in search mode
Kai Uwe Broulik [Thu, 27 Sep 2018 10:56:09 +0000 (12:56 +0200)]
Fix window / tab caption in search mode

A search URL is never local, so this part of the code was never reached, resulting in raw baloosearch or filenamesearch URLs
showing up as window and tab title

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

7 years ago[Places Panel] Cleanup includes
Kai Uwe Broulik [Mon, 24 Sep 2018 06:38:03 +0000 (08:38 +0200)]
[Places Panel] Cleanup includes

Some leftovers from when Dolphin managed the places entirely on its own

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

7 years agoUpdate disk space info on refresh
Kai Uwe Broulik [Wed, 19 Sep 2018 08:20:14 +0000 (10:20 +0200)]
Update disk space info on refresh

When explicitly refreshing the view (e.g. F5) also refresh disk space info.
This would also allow us to raise the refresh interval somewhat.

CCBUG: 398612

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

7 years ago[ViewProperties] Check part of home first before doing file system stuff
Kai Uwe Broulik [Mon, 17 Sep 2018 14:02:50 +0000 (16:02 +0200)]
[ViewProperties] Check part of home first before doing file system stuff

There's no point in creating a QFileInfo instance and checking for file properties if we're not going to do anything with it
when not inside home.

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

7 years agoKeep org.freedesktop.FileManager1 registered across processes
David Edmundson [Mon, 17 Sep 2018 10:02:51 +0000 (12:02 +0200)]
Keep org.freedesktop.FileManager1 registered across processes

Summary:
Currently if someone starts 2 dolphins, the second cannot register
org.freedesktop.FileManager1 meaning and when the first dolphin quits,
no-one has it registered.

It doesn't cause a huge problem right now as we just dbus-activate a new one if
needed, but it means the behaviour is a bit inconsistent and
non-optimal.

DBus has a system to queue names, meaning that as long as any dolphin is
running this name is owned by one of the processes.

Also this patch registers the service after the object which is
technically safer.

Test Plan:
Ran d-feet
Opened 2 dolphins, closed the first
Service was still registered and the PID of the owning process changed.

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

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

7 years agoRevert "[KFileItemModelRolesUpdater] Avoid duplicate indexes to resolve"
Kai Uwe Broulik [Tue, 11 Sep 2018 09:53:56 +0000 (11:53 +0200)]
Revert "[KFileItemModelRolesUpdater] Avoid duplicate indexes to resolve"

Sometimes causes the first thumbnail to not be loaded :/

This reverts commit 033eb6b3a35ca60ce78ce7ccfeeec26d70205aa8.

7 years ago[KFileItemModelRolesUpdater] Avoid duplicate indexes to resolve
Kai Uwe Broulik [Tue, 11 Sep 2018 07:55:30 +0000 (09:55 +0200)]
[KFileItemModelRolesUpdater] Avoid duplicate indexes to resolve

This avoids requesting a thumbnail twice for certain files, typically the first or last one in a folder.

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

7 years agoDon't assign twice the same key to the action New Tab
Jaime Torres Amate [Mon, 10 Sep 2018 14:45:45 +0000 (16:45 +0200)]
Don't assign twice the same key to the action New Tab

Summary:
QKeySequence::AddTab = Qt::CTRL + Qt::Key_T.
Leaving only the first avoids the warning window "There are two actions (New Tab, New Tab) that want to use the same shortcut (Ctrl+T)"

BUG: 398324

Test Plan:
su - test
unset KDE_FULL_SESSION
dolphin
After: No more the warning window.

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

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

7 years agoMerge branch 'Applications/18.08'
Kai Uwe Broulik [Mon, 10 Sep 2018 08:23:25 +0000 (10:23 +0200)]
Merge branch 'Applications/18.08'

7 years agoDo use QIcon::Selected for non-icon view
Kai Uwe Broulik [Mon, 10 Sep 2018 08:22:58 +0000 (10:22 +0200)]
Do use QIcon::Selected for non-icon view

Fixes a regression introduced by not using the selected state.
The views other than icon view actually do have a proper highlighted background.

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

7 years agoMake thumbnail frame-and-shadow drawing criteria match those of the file dialog
Nathaniel Graham [Thu, 6 Sep 2018 20:46:17 +0000 (22:46 +0200)]
Make thumbnail frame-and-shadow drawing criteria match those of the file dialog

Summary:
KIO's file dialog already has logic to avoid drawing frames around images detected as likely to be icons, which is improved with D15071. Since Dolphin doesn't use KIO for any of this (boo) we have to pull it over here too; this patch brings the same feature to Dolphin, as well as the feature to disable frames and shadows for all thumbnails at very small sizes, which improves clarity.

With this patch, Dolphin's frame drawing behavior becomes consistent with that of the file dialog (as of D15071).

BUG: 295526
FIXED-IN: 18.12.0

Test Plan:
Icons no longer have frames:
{F6214279}

Images without transparency still have frames:
{F6214280}

Nicer presentation for folders with mixed image types (images without transparency get frames; images without it don't):
{F6214278}

At small sizes, thumbnail clarity is improved by omitting the frame and shadow. Before:
{F6214296}

After:
{F6214294}

Reviewers: #dolphin, broulik, elvisangelaccio

Reviewed By: #dolphin, broulik, elvisangelaccio

Subscribers: markg, anthonyfieroni, elvisangelaccio, kfm-devel

Tags: #dolphin

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

7 years ago[DolphinContextMenu] Use the view's already existing root KFileItem
Kai Uwe Broulik [Wed, 5 Sep 2018 10:25:39 +0000 (12:25 +0200)]
[DolphinContextMenu] Use the view's already existing root KFileItem

Saves creating a new KFileItem from scratch which stats the file.
Only when the root item isn't available (as can happen when you're currently looking at an non-existing directory)
will it create a new KFileItem

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

7 years agoMerge branch 'Applications/18.08'
Kai Uwe Broulik [Wed, 5 Sep 2018 10:24:47 +0000 (12:24 +0200)]
Merge branch 'Applications/18.08'

7 years ago[KStandardItemListWidget] Round to icon size before applying scaling
Kai Uwe Broulik [Wed, 5 Sep 2018 10:24:10 +0000 (12:24 +0200)]
[KStandardItemListWidget] Round to icon size before applying scaling

Otherwise for 22px icons on high dpi we will request either the wrong icons or scale them needlessly.
Dolphin requests a pixmap of 22px, this is then multiplied by dpr resulting in 44 which isn't a valid icon size (only 32 or 48 are).
Moreover, we will also hit the path where it will scale the pixmap to a proper icon size resulting in blurry icons
(and a performance penalty).

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

7 years agoMerge branch 'Applications/18.08'
David Edmundson [Tue, 4 Sep 2018 12:21:00 +0000 (14:21 +0200)]
Merge branch 'Applications/18.08'

7 years agoCorrectly save behaviourOnLaunch
David Edmundson [Tue, 4 Sep 2018 12:20:33 +0000 (14:20 +0200)]
Correctly save behaviourOnLaunch

Summary:
We only wrote out a checkbox value if the checkbox was checked.
Unchecking it would not do anything.

BUG: 398022

Test Plan:
Read KRun's exepcted values
Unchecked config option
Reloaded dolphin
Checkbox remained off

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham, elvisangelaccio

Subscribers: ngraham, kfm-devel

Tags: #dolphin

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

7 years agoMerge branch 'Applications/18.08'
Kai Uwe Broulik [Tue, 4 Sep 2018 07:02:07 +0000 (09:02 +0200)]
Merge branch 'Applications/18.08'

7 years agoDon't use QIcon::Selected state for selected icon
Kai Uwe Broulik [Tue, 4 Sep 2018 06:59:54 +0000 (08:59 +0200)]
Don't use QIcon::Selected state for selected icon

This causes selected monochrome Breeze icons to turn white as this state is meant for when the icon is actually painted ontop of
e.g. a blue highlighted area in a menu
Since the advanced icon configuration (where you could choose a custom hint color and other effects) has been removed in Plasma 5.13
and more importantly the fact that Dolphin always tints the icon in the highlight color disregarding any custom icon effects settings
this is an acceptable change.

CHANGELOG: Fixed monochrome icons turning invisible when selected

BUG: 398014
FIXED-IN: 18.08.2

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

7 years agoRenames DolphinViewContainer::getCaption to caption
David Hallas [Tue, 28 Aug 2018 07:50:41 +0000 (09:50 +0200)]
Renames DolphinViewContainer::getCaption to caption

Summary:
This commit renames the DolphinViewContainer::getCaption to simply
caption, this was a review comment that I failed to fix in a previous
commit.

Test Plan: None

Reviewers: elvisangelaccio

Reviewed By: elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

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

7 years agoChanges the tabName function to return the name of a specific tab
David Hallas [Tue, 28 Aug 2018 07:00:13 +0000 (09:00 +0200)]
Changes the tabName function to return the name of a specific tab

Summary:
Changes the tabName function to return the name of the passed in
DolphinTabPage. Previously it would return the name of the active tab,
which causes in-active tabs to get the wrong name.

Test Plan:
Open Dolphin
Right click a folder and select 'Open in new tab'
Notice that the new tab has the wrong title

BUG: 397910

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

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

7 years agoAdd test case for open-in-new-tab title regression
Elvis Angelaccio [Sun, 2 Sep 2018 08:53:32 +0000 (10:53 +0200)]
Add test case for open-in-new-tab title regression

Fix will be in D15112.

CCBUG: 397910