Commit graph

5266 commits

Author SHA1 Message Date
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
Kai Uwe Broulik 333e2ae031 [Settings Dialog] Show Trash settings only if authorized
If this KCM is disabled through KIOSK restriction opening it would result in an error message.
Hide the entry altogether in this case.

Differential Revision: https://phabricator.kde.org/D4502
2017-02-08 16:07:19 +01:00
Kai Uwe Broulik 4eea1dc5a1 Merge branch 'Applications/16.12' 2017-02-06 19:14:08 +01:00
Kai Uwe Broulik 86d2aa321d [KStandardItemListWidget] Update icon when palette changes
We can colorize icons based on the user's palette, so clear the pixmap cache when it changes.

Differential Revision: https://phabricator.kde.org/D3937
2017-02-06 19:12:48 +01:00
Elvis Angelaccio 62b7f9228a Drop no longer used dependency
KWindowSystem is no longer used since commit 230fe13d1f.
It was only pulled for `KWindowEffects::enableBlurBehind()`, which is
now in plasma-integration (triggered by KToolTipWidget).
2017-02-06 00:07:58 +01:00
Elvis Angelaccio f785d95171 Drop unused include
This is no longer needed since commit 230fe13d1f
2017-02-05 23:55:37 +01:00
Elvis Angelaccio 5f484d8ee8 Drop another obsolete version check
We now require Frameworks >= 5.30
2017-02-05 23:39:04 +01:00
Elvis Angelaccio d0eae28f9f Drop no longer needed version check
Frameworks 5.30 is now the minimum version required.
2017-02-05 23:02:38 +01:00
Elvis Angelaccio 0b107078c3 Remove deprecated K_EXPORT_PLUGIN macros
They do nothing, other than generate annoying compiler warnings.

Differential Revision: https://phabricator.kde.org/D4438
2017-02-05 22:58:36 +01:00
Elvis Angelaccio 230fe13d1f Port tooltips to KToolTipWidget
Use the new KToolTipWidget class (introduced by kwidgetsaddons 5.30) as backend of ToolTipManager.
FileMetaDataToolTip becomes a simple widget used as content of the tooltip.

It is now possible to actually use the metadata widget shown inside the tooltips.
Tooltips are now functional on Wayland as well.

More information about KToolTipWidget in https://git.reviewboard.kde.org/r/129648/

BUG: 352276
BUG: 371223
FIXED-IN: 17.04.0

Closes T4980
Differential Revision: D4449
2017-02-05 22:56:40 +01:00
Elvis Angelaccio 6fc68fe650 Add .arcconfig file for phabricator 2017-02-05 11:09:21 +01:00
l10n daemon script eb31ded156 GIT_SILENT made messages (after extraction) 2017-02-05 06:54:55 +01:00
l10n daemon script e3ea9b558e 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-02-05 05:58:09 +01:00
l10n daemon script 5c74fc0666 GIT_SILENT made messages (after extraction) 2017-02-05 03:46:09 +01:00
Albert Astals Cid ac41a5ef83 GIT_SILENT Upgrade KDE Applications version to 16.12.2. 2017-02-03 23:40:36 +01:00
l10n daemon script 01edd6480c GIT_SILENT made messages (after extraction) 2017-02-03 07:02:22 +01:00
l10n daemon script 92cd757733 GIT_SILENT made messages (after extraction) 2017-02-03 03:56:59 +01:00
arnav dhamija 36bd947233 Added a comment 2017-02-02 21:48:58 +05:30
arnav dhamija 41156288b2 Added a comment 2017-02-02 21:48:51 +05:30
arnav dhamija 8f28ceaad1 More happy with this patch 2017-02-02 21:46:54 +05:30
Kai Uwe Broulik c7a2e55df9 Merge branch 'Applications/16.12' 2017-01-31 20:52:28 +01:00
Kai Uwe Broulik e582b13f84 Hide progress info for rename jobs in rename dialog
When mass-renaming files, you could end up with a a gazillion notifications of a finished move job.
This fixes this. Ideally we would have one job which had the rename jobs as subjobs to still get
progress info for the overall task.

Differential Revision: https://phabricator.kde.org/D4372
2017-01-31 20:50:47 +01:00
arnav dhamija e8a4868943 Made more changes 2017-01-29 23:31:43 +05:30
arnav dhamija 68cda76aa8 Time to get back to business 2017-01-29 22:00:08 +05:30
Elvis Angelaccio a874e52b15 Merge branch 'Applications/16.12' 2017-01-21 23:43:09 +01:00
Elvis Angelaccio c1d9becda2 informationpanel: don't change color of scrollarea's viewport
This code was added a long time ago in b1c9b5126d, but the commit
message doesn't explain why. If we remove it nothing seems to change and
we fix the ugly background on the scrollbar when Breeze draws a frame
around dockable panels.

BUG: 366203
FIXED-IN: 16.12.2
REVIEW: 129861
2017-01-21 23:38:16 +01:00
Albert Astals Cid a67dab505a Merge remote-tracking branch 'origin/Applications/16.12' 2017-01-21 01:38:26 +01:00
Marc André Wittorf 2e8e30026a Fix missing audio duration in details view
Enabling the 'duration' column in a folder with audio files did only show empty information. Properly initializing the QTime object fixes this.

 Testing Done

    Find a folder with audio files
    Make sure that Baloo has indexed this folder
    Open this folder in Dolphin, detail view, enable the Audio/Duration column
    Unpatched Dolphin does not display audio duration, patched Dolphin does

Tested on Gentoo x86_64 with Qt 5.5.1, KF 5.21.0 and Arch x86_64 with Qt 5.6.0 and KF 5.21.0.

REVIEW: 127799
2017-01-21 01:37:35 +01:00
Gregor Mi 728e6712b8 DolphinSearchBox: Add a "More search tools..." menu button
Additionally, moves the "More/Fewer options" button from right to left to reduce the mouse travelling distance when the dolphin is maximized on a large screen (see screenshots)

The current location url will be passed to the search tool to set the initial search root directory.

REVIEW: 123883
2017-01-21 00:07:49 +01:00