]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
7 years agoMake RenameDialog modal again.
Elvis Angelaccio [Mon, 17 Dec 2018 21:51:42 +0000 (22:51 +0100)]
Make RenameDialog modal again.

Summary:
The rename dialog used to be modal, but commit
828ba8902ce16819a385832b487e60eab36e54ca changed the behavior without
really explaining why.

Test Plan: disable inline renaming and rename something.

Reviewers: #vdg, ngraham

Reviewed By: #vdg, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

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

7 years agoReturn editable URL navigator to breadcrumb mode if it has focus and everything is...
Nate Graham [Sun, 16 Dec 2018 20:49:57 +0000 (13:49 -0700)]
Return editable URL navigator to breadcrumb mode if it has focus and everything is selected and when Ctrl+L is pressed

Summary:
This patch makes an editable location bar return to breadcrumb mode when {key Ctrl L} is pressed, but only if the location bar currently has focus and everything is selected. Otherwise, it will simply return focus to it as before.

This provides a slightly easier way to make the location bar return to breadcrumbs mode

Test Plan:
- Compile and deploy and make the location bar be breadcrumbs
- Hit {key Ctrl L} twice in a row -> location field turns to being in breadcrumb mode. Focus is correctly returned to the main view.
- Hit {key Ctrl L}, move focus elsewhere, then hit {key Ctrl L} again -> Location bar is editable and focused with everything selected.
- Hit {key Ctrl L}, deselect some of the text, then hit {key Ctrl L} again -> Location bar selects everything.

Reviewers: #dolphin, elvisangelaccio, dhaumann

Reviewed By: elvisangelaccio, dhaumann

Subscribers: elvisangelaccio, dhaumann, kfm-devel

Tags: #dolphin

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

7 years agoDrop old krazy comments
Elvis Angelaccio [Sun, 16 Dec 2018 12:57:51 +0000 (13:57 +0100)]
Drop old krazy comments

The `qclasses` check should no longer be an issue after the KF5 port.

GIT_SILENT

7 years agoAdd an icon for "restore" action
Shubham Jangra [Mon, 10 Dec 2018 18:19:55 +0000 (23:49 +0530)]
Add an icon for "restore" action

Summary:
Before:
{F6469103}

After:
{F6469104}

Test Plan:
1. Go to Trash

2. Right click any item.

Reviewers: ngraham

Reviewed By: ngraham

Subscribers: kfm-devel

Tags: #dolphin

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

7 years agoRevert back
Shubham Jangra [Mon, 10 Dec 2018 18:12:11 +0000 (23:42 +0530)]
Revert back

7 years agoAdd an icon for "restore" action
Shubham Jangra [Mon, 10 Dec 2018 17:49:09 +0000 (23:19 +0530)]
Add an icon for "restore" action

Summary:
Before:
{F6469103}

After:
{F6469104}

Test Plan:
1. Go to Trash

2. Right click any item.

Reviewers: ngraham

Reviewed By: ngraham

Subscribers: kfm-devel

Tags: #dolphin

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

7 years agoRemove unused parameter warning
Shubham Jangra [Fri, 7 Dec 2018 16:58:29 +0000 (22:28 +0530)]
Remove unused parameter warning

7 years ago[context menu] Restore separator above 'Properties' that went missing
Nate Graham [Thu, 6 Dec 2018 21:10:58 +0000 (14:10 -0700)]
[context menu] Restore separator above 'Properties' that went missing

7 years agoMerge branch 'Applications/18.12'
Elvis Angelaccio [Tue, 4 Dec 2018 21:04:41 +0000 (22:04 +0100)]
Merge branch 'Applications/18.12'

7 years agoKItemListWidget: Use initStyleOption
Anton Kreuzkamp [Mon, 3 Dec 2018 14:01:36 +0000 (15:01 +0100)]
KItemListWidget: Use initStyleOption

Instead of using QStyleOption::initFrom, let's use
QGraphicsWidget::initStyleOption, which is made for exactly the purpose
of KItemListWidget. This is especially important since, according to the
docs of QGraphicsItem::paint "The widget argument is optional. [...]
For cached painting, widget is always 0.". Even though currently no code
in dolphin does cached painting, for the sake of modularity one should
not rely on widget to be non-null. Using QStyleOption::initFrom does
assume that, though.

In fact, GammaRay asks the items to do cached painting when attaching it
to the application, causing it to crash.

7 years ago[PlacesPanel] Fix unused variable warning
Elvis Angelaccio [Sun, 2 Dec 2018 13:48:01 +0000 (14:48 +0100)]
[PlacesPanel] Fix unused variable warning

7 years ago[KItemListController] Make event-handling functions private
Elvis Angelaccio [Sun, 2 Dec 2018 13:42:41 +0000 (14:42 +0100)]
[KItemListController] Make event-handling functions private

There is no reason why these event-handling custom functions should be
public, so make them private instead.

7 years ago[KItemListController] Drop virtual keywords
Elvis Angelaccio [Sun, 2 Dec 2018 13:04:31 +0000 (14:04 +0100)]
[KItemListController] Drop virtual keywords

We are never overriding these functions, so there is no reason to declare
them virtual.

7 years ago[KItemListController] Drop unused functions
Elvis Angelaccio [Sun, 2 Dec 2018 13:02:23 +0000 (14:02 +0100)]
[KItemListController] Drop unused functions

7 years agoMerge remote-tracking branch 'origin/Applications/18.12'
Thomas Surrel [Sat, 1 Dec 2018 20:20:01 +0000 (21:20 +0100)]
Merge remote-tracking branch 'origin/Applications/18.12'

7 years agoFix selection when navigating back, with size sorting.
Thomas Surrel [Tue, 20 Nov 2018 11:10:15 +0000 (12:10 +0100)]
Fix selection when navigating back, with size sorting.

Summary:
KItemListSelectionManager::itemsMoved (called when sorting by size)
was re-activating anchor selection regardless if we actually were
doing an anchored selection. This was leading to an incorrect
selection when navigating back.

BUG: 352296

Test Plan:
In any folder, sort by size then move to a subfolder. Navigate back
to the parent folder: only the parent folder should be selected.

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, broulik, kfm-devel

Tags: #dolphin

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

7 years agoDo not sort twice when changing role and order at the same time
Thomas Surrel [Thu, 22 Nov 2018 21:24:37 +0000 (22:24 +0100)]
Do not sort twice when changing role and order at the same time

Summary:
When using the list header to change the role and order, if one
changes the order to descending and then changes role, dolphin
also changes the order back to ascending. This results in sorting
the list of files twice in a row. This patch removes the first
(useless) sort.

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

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

7 years agoUse isEmpty here too
Laurent Montel [Fri, 30 Nov 2018 06:13:53 +0000 (07:13 +0100)]
Use isEmpty here too

7 years agoUse isEmpty() here
Laurent Montel [Fri, 30 Nov 2018 05:57:48 +0000 (06:57 +0100)]
Use isEmpty() here

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Thu, 29 Nov 2018 06:07:18 +0000 (07:07 +0100)]
GIT_SILENT made messages (after extraction)

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Thu, 29 Nov 2018 01:46:54 +0000 (02:46 +0100)]
GIT_SILENT made messages (after extraction)

7 years agoGIT_SILENT Upgrade KDE Applications version to 18.11.90.
Christoph Feck [Mon, 26 Nov 2018 13:32:36 +0000 (14:32 +0100)]
GIT_SILENT Upgrade KDE Applications version to 18.11.90.

7 years ago[PlacesPanel] Port to KFilePlaceEditDialog
Elvis Angelaccio [Sun, 11 Nov 2018 12:41:18 +0000 (13:41 +0100)]
[PlacesPanel] Port to KFilePlaceEditDialog

Summary:
This patch ports away from the old PlacesItemEditDialog copy,
which doesn't honour the "applicationLocal" checkbox.

KFilePlaceEditDialog was not exported by KIO, but it will be starting
from 5.53

BUG: 376619
FIXED-IN: 19.03.80

Test Plan:
* Create a new place ("Add Entry" from the panel context menu) and check the "only show in dolphin" checkbox
* Edit an existing (global) place and check the "only show in dolphin" checkbox

Reviewers: #dolphin

Subscribers: kfm-devel

Tags: #dolphin

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

7 years agoAvoid warning when translatedtext is null
Laurent Montel [Wed, 21 Nov 2018 08:01:01 +0000 (09:01 +0100)]
Avoid warning when translatedtext is null

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 21 Nov 2018 06:17:05 +0000 (07:17 +0100)]
GIT_SILENT made messages (after extraction)

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

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Tue, 20 Nov 2018 06:09:58 +0000 (07:09 +0100)]
GIT_SILENT made messages (after extraction)

7 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Tue, 20 Nov 2018 01:49:53 +0000 (02:49 +0100)]
GIT_SILENT made messages (after extraction)

7 years agoShow the Delete context menu entry even when disabled
Thomas Surrel [Mon, 19 Nov 2018 13:08:19 +0000 (14:08 +0100)]
Show the Delete context menu entry even when disabled

Summary:
This is consistent with the HIG, and the 'Rename' entry in
the context menu already behaves like that.

Test Plan:
Right click on /home. The context menu should contained
the 'Delete' entry, but it should be disabled.

Reviewers: #dolphin, #vdg, ngraham

Reviewed By: #dolphin, #vdg, ngraham

Subscribers: ngraham, romangg, kfm-devel

Tags: #dolphin

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

7 years agoMerge remote-tracking branch 'origin/Applications/18.12'
Thomas Surrel [Sat, 17 Nov 2018 13:44:02 +0000 (14:44 +0100)]
Merge remote-tracking branch 'origin/Applications/18.12'

7 years agoDo not disconnect all StorageAccess signals when unmounting
Thomas Surrel [Tue, 13 Nov 2018 10:05:16 +0000 (11:05 +0100)]
Do not disconnect all StorageAccess signals when unmounting

Summary:
The problem is caused by the fact device interfaces returned by
Solid (e.g. item->device().as<Solid::StorageAccess>()) are not
full objects, but only references/pointers to a per-device-object,
i.e. requesting the same interface for a device will return the same
address every time.

If the interface is used used in multiple places, calling disconnect
on the interface address disconnects the signals for all users.

BUG: 400992

Test Plan:
In Dolphin, mount a local partition (e.g. a Windows partition)
then unmount it (right click on it in Places, then Unmount).
Try to access it again by clicking on it in Places, we should
get access to it correctly.

Reviewers: #dolphin, #frameworks, bruns, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

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

7 years agoMerge remote-tracking branch 'origin/Applications/18.12'
Chris Rizzitello [Sat, 17 Nov 2018 13:39:38 +0000 (08:39 -0500)]
Merge remote-tracking branch 'origin/Applications/18.12'

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