Commit graph

5494 commits

Author SHA1 Message Date
Elvis Angelaccio 4216c7e6ba Move non-exported code to a static library
This allows us to speed up the compilation because we don't need to
build twice the source files we use in the unit tests.

Test Plan: Builds, dolphin works and tests pass.

Reviewers: emmanuelp, dfaure

Differential Revision: https://phabricator.kde.org/D5935
2017-05-27 10:23:47 +02:00
l10n daemon script 4d9c396a98 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"
2017-05-25 04:21:54 +02:00
Luca Beltrame 95f9dc9de0
Merge branch 'Applications/17.04' 2017-05-22 23:32:36 +02:00
Anthony Fieroni 43da84eefc Correct searchbox, split view transitions between tabs
Differential Revision: https://phabricator.kde.org/D5864

BUG: 379135
BUG: 380032
FIXED-IN: 17.04.2

Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2017-05-22 20:35:29 +03:00
Pino Toscano 588db66536 add few more Q_DECL_OVERRIDE 2017-05-12 00:07:15 +02:00
Hannah von Reth e0f6b74226 Port tests from ecm_mark_as_test to ecm_add_test
Summary: This enables us to run the tests on Windows.

Reviewers: elvisangelaccio, kfunk, dfaure

Reviewed By: elvisangelaccio

Subscribers: #konqueror, #dolphin

Differential Revision: https://phabricator.kde.org/D5810
2017-05-11 20:05:25 +02:00
Elvis Angelaccio f6095c86c1 Fix kfileitemmodeltest
Commit 6dcbb8127c introduced the isHidden role, update the test
accordingly.
2017-05-11 19:52:14 +02:00
Hannah von Reth 6c3cacd2b3 Remove define to disable exports
As the tests are now correctly linked to dolphinprivate we need the
actual export macro.
2017-05-11 12:33:15 +02:00
Elvis Angelaccio 0c8ef2977e Merge branch 'Applications/17.04' 2017-05-08 16:09:15 +02:00
Elvis Angelaccio 73f885f9d3 Don't ignore tag clicks in the tooltips
Summary:
Now that we can use the metadata widgets in the tooltips, we can also
open the tags:// url if the user clicks some tag in a tooltip.

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

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

Reviewers: emmanuelp

Subscribers: #konqueror, #dolphin

Differential Revision: https://phabricator.kde.org/D5658
2017-05-08 16:04:19 +02:00
Albert Astals Cid e74910cfdf GIT_SILENT Upgrade KDE Applications version to 17.04.1. 2017-05-08 12:55:47 +02:00
Athanasios Kanellopoulos 65467d8019 Sort the tag-values alphabetically in the "Tags" column
Up until now tag-values have appeared unsorted in the Tags column
when the selected View Mode is "Details".
In older versions of Dolphin (in KDE4) the tags-values were
alphabetically sorted in the Tags column, which means that back then
this was the desired behavior.
This commit restores this functionality.

BUG: 377589
FIXED-IN: 17.04.1
REVIEW: 130068
2017-04-29 12:59:30 +02:00
Albert Astals Cid de01efd9c3 GIT_SILENT Upgrade KDE Applications version to 17.04.0. 2017-04-12 13:36:03 +02:00
Kevin Funk f2758ec9f7 Fix some compiler warnings 2017-04-07 16:13:27 +02:00
Albert Astals Cid 61382806a1 GIT_SILENT Upgrade KDE Applications version to 17.03.90. 2017-04-05 21:51:09 +02:00
Elvis Angelaccio d8282e9294 Update name of the delete action in the .rc files
Summary:
Small regression in commit 68bb0ec22a. We need to use the new (standard)
name for the delete action, otherwise it won't be properly
enabled/disabled.

BUG: 378154
FIXED-IN: 17.03.90

Reviewers: emmanuelp

Differential Revision: https://phabricator.kde.org/D5248
2017-03-29 19:07:44 +02:00
Albert Astals Cid a3920e3ae9 Merge remote-tracking branch 'origin/Applications/17.04' 2017-03-28 00:53:36 +02:00
Don Nguyen 4de29ad90d behavior change -> New Window opens with same URL
This patch will cause a "New Window" command to open a new window with
the URL from the active view.  Opening a new instance via launcher will
still open a new window with the URL specified in Startup settings.
This is the behavior in Windows 10 file explorer.  The advantage is this
gives the user a way to open a new window with the current URL(New
Window) as well as a new window with URL specified in Startup
settings(new instance) whereas currently, there isn't an easy way to
open a new window with the current URL.  You'd have to either open a new
window and copy and paste the URL, or open a new tab(which opens with
the same URL) and detach it.  I'd much rather have the new window open
with the current URL and if what I wanted was the Startup URL I could
easily get there as it's already bookmarked.

REVIEW: 129973
2017-03-28 00:52:29 +02:00
Albert Astals Cid 08661f3db1 GIT_SILENT Upgrade KDE Applications version to 17.03.80. 2017-03-20 23:42:30 +01:00
Albert Astals Cid 287e61b480 GIT_SILENT Upgrade KDE Applications version to 17.07.70. 2017-03-20 23:16:43 +01:00
Kai Uwe Broulik 12c4272912 [PlacesItemModel] Use QDir::homePath() instead of KUser().homeDir()
KUser does quite a lot of stuff under the hood and also calls getpwuid which might block with network login.

Differential Revision: https://phabricator.kde.org/D5049
2017-03-15 15:38:53 +01:00
Kai Uwe Broulik 429427767b Cleanup Places Panel context menus
Differential Revision: https://phabricator.kde.org/D4498
2017-03-14 22:42:07 +01:00
Marco Martin db54c9b6ce make services GHNS work with store.kde.org
Summary:
point the knsrc providers file to the new kde store,
and port the servicemenuinstallation/servicemenudeinstallation
scripts to kf5 (they still were based on kde4-config)
BUG:376922

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

Reviewers: #dolphin, emmanuelp

Reviewed By: #dolphin, emmanuelp

Subscribers: elvisangelaccio

Differential Revision: https://phabricator.kde.org/D5035
2017-03-14 12:25:31 +01:00
Elvis Angelaccio 68bb0ec22a Port to KStandardAction::DeleteFile
Summary:
It was introduced in kconfig 5.25 and it properly handles the shift+del
shortcut (together with kxmlgui >= 5.30). This allows us to drop the
custom delete shortcut as well as the shift+del workaround in
DolphinMainWindow.

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

Reviewers: emmanuelp

Differential Revision: https://phabricator.kde.org/D5010
2017-03-13 19:40:07 +01:00
Sergey Kalinichev 042b0c8409 Revert "Make "show filter bar" a toggle action"
This reverts commit edf8e57373.

See https://git.reviewboard.kde.org/r/129662 for discussion
2017-03-12 11:48:12 +03:00
Elvis Angelaccio e8eb6a7f2c Show pointing hand cursor when hovering spaceinfo bar
Summary:
This improves the discoverability of the diskspace menu, a feature
otherwise almost impossible to find.

Reviewers: gregormi, emmanuelp

Differential Revision: https://phabricator.kde.org/D4873
2017-03-10 18:56:58 +01:00
Kai Uwe Broulik b79ea9f5e4 Pass application name and icon to KRun
Otherwise this results in the generic executable icon as bouncy cursor.

Differential Revision: https://phabricator.kde.org/D4823
2017-03-08 16:52:15 +01:00
Kai Uwe Broulik 6dcbb8127c Honor KFileItem isHidden() in view
Instead of just assuming hidden files always start with a "."
The items were already filtered out but when showing hidden files they weren't painted at reduced opacity.

Differential Revision: https://phabricator.kde.org/D4978
2017-03-08 14:38:46 +01:00
Vishal Rao 58c5eae195 Increase smooth scrolling animation duration from 100 to 300 ms and set easing curve to InOutQuart
Summary:
The current animation duration for smooth scrolling is 100 ms which feels as if there is no smooth scroll animation in the first place. Bumping this up to something like 300 ms seems to make the scrolling actually appear smooth.

Also, based on diff comments the easing curve is set to InOutQuart.

Test Plan: Built this change locally and tried scrolling a folder with many items both single step mouse wheel and also larger steps of the mouse wheel.

Reviewers: elvisangelaccio, emmanuelp

Reviewed By: emmanuelp

Subscribers: htietze, colomar, andreask, emmanuelp, elvisangelaccio

Differential Revision: https://phabricator.kde.org/D4560
2017-02-26 23:48:27 +01:00
l10n daemon script cc07b135d4 GIT_SILENT made messages (after extraction) 2017-02-24 03:49:52 +01:00
David Edmundson f72dadb0c1 Work round missing right click event after dismissing a context menu
There is a bug that can happen in the following situation:
- user right clicks to open a menu

- that context menu grabs input

- the QGrabphicsView also notes the mouse was pressed, but not that the
mouse was released because it doesn't have mouse events any more

- when a user clicks to dismiss the menu and then without moving clicks
quickly again to send, we don't get another press event because the
QGraphicsScene still thinks the mouse is pressed from the first time the
context menu was shown and
QGraphicsScenePrivate::lastMouseGrabberItemHasImplicitMouseGrab still
points to the old object.

This is a known bug in QGraphicsView and you can see
QGraphicsScenePrivate::sendMouseEvent has a workaround to reset the
lastMouseGrabberItemHasImplicitMouseGrab on mouse moves, with the
comment: "This is a temporary fix for until we get proper mouse
grab events."

Realistically this isn't going to happen in QGraphicsView now.

We do get a double click event though. By checking for double click
events we can grab those missed clicks. It doesn't cause any other side
effects because normally the context menu will fire after the first
click and this rarely gets processed.

REVIEW: 129960
2017-02-20 16:41:27 +00:00
Emmanuel Pescosta 0bdd8e0b05
Disallow executing Dolphin as root on Linux
Basically a copy of commit kate/9adcebd3c2e476c8a32e9b455cc99f46b0e12a7e which was
written by Martin Grässlin.
2017-02-19 02:39:52 +01:00
Emmanuel Pescosta bea831da52
Added .kdev4 to gitignore 2017-02-18 23:00:48 +01:00
Don Nguyen bdd3365122
Add a gitignore file
The entries in this patch are very minimal and are as follows:
apidocs - user generated doc
doxygen.log - log from generating doc
CMakeLists.txt.user - from Qt Creator
.directory - created by dolphin

REVIEW: 129865
2017-02-18 22:58:29 +01:00
Don Nguyen edf8e57373
Make "show filter bar" a toggle action
REVIEW: 129662
2017-02-18 22:55:38 +01:00
Diego Soenens db3f374679
Apply the file preview shadow frame to most previews instead of only image file previews
The patch applies the shadow to all previews except for folders, fonts and
Win32 exe/dll previews, similar to how Windows and MacOS handles it.

REVIEW: 129918
2017-02-18 22:43:01 +01:00
Emmanuel Pescosta 1d0b6ba65f
Start an anchored selection when restoring the selected items to make it possible
that the selection can be changed after reloading of the current view.

Otherwise it is not possible to alter the selection without restarting a new
one.

Bug found by Martin Tobias Holmedahl Sandsmark
See also RR 128563
2017-02-18 22:00:22 +01:00
Emmanuel Pescosta 6b727613db
Remove the preserving of the selected items in reload(), this is already covered
by saveState/restoreState.
2017-02-18 21:34:57 +01:00
Emmanuel Pescosta 8bc6d09c57
Preserve selected items when changing folders
Based on the idea of Martin Tobias Holmedahl Sandsmark
2017-02-18 20:48:49 +01:00
Emmanuel Pescosta 41b0e42973
Restore the view state after the URL of the DolphinView has been changed,
as stated in the documentation of KUrlNavigator::saveLocationState.

The historyChanged signal of the KUrlNavigator is emitted before the urlChanged
signal and so the view state restoring happens before the view URL has been
changed. This makes it impossible to save and restore the selected URLs, because
DolphinView::setUrl clears the list of selected items (which has been restored
right before). This changes removes the history changed slot and restores the
view state after the setUrl call.
2017-02-18 20:34:02 +01:00
arnav dhamija ccb3658b3a Merge branch 'stashAction'
This adds the support for the Stash action which will be helpful for the upcoming stash:/ ioslave
2017-02-13 22:24:01 +05:30
arnav dhamija 41253c0c81 Merge branch 'master' of git.kde.org:dolphin 2017-02-13 22:23:41 +05:30
arnav dhamija 0d4924d8bb Whitespace? 2017-02-13 22:20:59 +05:30
arnav dhamija f52f9331d0 Whitespace? 2017-02-13 22:17:00 +05:30
arnav dhamija d92d752828 Whitespace? 2017-02-13 22:16:56 +05:30
Kai Uwe Broulik 7fce8f0e9b Don't add trashSettingsPage to m_pages if null
Otherwise we might crash in applySettings() or restoreDefaults()
2017-02-13 13:51:05 +01:00
Kai Uwe Broulik f7770c60b1 Close tab on mouse release rather than on mouse press
Differential Revision: https://phabricator.kde.org/D4501
2017-02-13 13:20:07 +01:00
arnav dhamija d5e692d16d fixed arg 2017-02-13 17:08:10 +05:30
arnav dhamija b92ccf2ff5 Improved the patch 2017-02-13 15:39:01 +05:30
Elvis Angelaccio d75b1de7bf Rename FileMetaDataToolTip to DolphinFileMetaDataWidget
Since commit 230fe13d1f this class is not a "tooltip" anymore, but just a
simple widget. Rename it to avoid future confusion.

Reviewers: emmanuelp

Differential Revision: https://phabricator.kde.org/D4451
2017-02-09 19:36:11 +01:00