plasma-framework/src
Tranter Madi f8be3ea710 Optimize code when dropping files into the desktop
Summary:
Currently, when you have the desktop in the Desktop layout, if you drop 10 jpg files into the desktop, it creates 10 menus at the same position.
When you have the desktop in the Folder layout, if you drop 10 jpg files into the desktop, it calls `KIO::setApplicationActions()` 10 times.

What does this improve?

- Do not create KIO::MimetypeJob for each file
- Do not call `DropJob::setApplicationActions()` too many times/ create too many menus for each file.

My idea is that, when you drop files into the desktop:
- If they have the same `mimetype` -> we add actions support this `mimetype`.
- If not -> we only show the action from `KIO::DropJob` and only actions support different `mimetypes` at the same time like `Add icon`...

**Require:** D26484
CCBUG: 415917

Reviewers: #plasma, mart, broulik, #vdg, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: davidedmundson, anthonyfieroni, #plasma, kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D26691
2020-02-04 12:54:38 +07:00
..
declarativeimports Fix the size and pixel alignment of checkboxes and radiobuttons 2020-01-28 01:31:07 -05:00
desktoptheme Fixed tooltip corners and removed useless color attributes 2020-01-31 23:17:03 +01:00
plasma QHash::insertMulti is deprecated in qt5.15 => port to QMultiHash 2020-01-18 07:40:52 +01:00
plasmapkg GIT_SILENT: Use QLatin1String in QString::contains etc. Fix replace 2019-08-29 07:25:48 +02:00
plasmaquick [Plasma Quick] Add WaylandIntegration class 2020-01-22 02:42:02 +02:00
scriptengines Optimize code when dropping files into the desktop 2020-02-04 12:54:38 +07:00
tools Use more https in links (& update a few urls) 2019-01-19 16:36:59 +01:00
CMakeLists.txt remove kpart related code 2016-05-19 17:47:09 +02:00
Messages.sh Consolidate all plasma-framework catalogs 2014-04-25 10:40:12 +02:00