]> cloud.milkyroute.net Git - dolphin.git/commit
Two clicks on file/folder to rename
authorAndreas Krutzler <andreas.krutzler@gmx.net>
Fri, 27 Oct 2017 13:01:54 +0000 (07:01 -0600)
committerNathaniel Graham <pointedstick@zoho.com>
Fri, 27 Oct 2017 13:06:13 +0000 (07:06 -0600)
commit5454283008f26d377a6403861a3cdd7992dbbd38
tree45bf855f3d85990de468204f2e224f7a12f6c0d7
parentf20300256b19cb0a700bc6e5536ba9184503d918
Two clicks on file/folder to rename

Summary:
Make renaming of files/folders faster by clicking a second time on the items text to start renaming.
BUG: 205157

Test Plan:
This feature works as follows:

1. select an item by single-click, or one is already selected
2. wait the "double-click-interval"
3. click on the items text
4. none of the cancellations (see below) happens within the double-click-interval
5. inline-renaming starts

Cancellations:
* open any file/folder
* select different item(s)
* start dragging items
* Dolphin loses focus

This feature is just enabled while "Double-click to open files and folders" in system-settings and "Rename inline" in Dolphin are enabled.

Reviewers: #dolphin, #kde_applications, elvisangelaccio, emmanuelp, ngraham, markg, rkflx

Reviewed By: #dolphin, #kde_applications, elvisangelaccio, ngraham, rkflx

Subscribers: rkflx, markg, funkybomber, sars, elvisangelaccio, ngraham

Differential Revision: https://phabricator.kde.org/D7647
src/kitemviews/kitemlistcontroller.cpp
src/kitemviews/kitemlistcontroller.h
src/kitemviews/kitemlistview.cpp
src/kitemviews/kitemlistview.h
src/views/dolphinview.cpp
src/views/dolphinview.h