Skip to content
Commit 131d2585 authored by Huon Imberger's avatar Huon Imberger
Browse files

Allow dragging files/folders to View mode

Summary:
Specifically accepts drop events within the viewport of {nav View} mode.
If a folder that contains images is dropped, it will open that folder
and remain in {nav View} mode with the first image selected. If the
folder doesn't contain images, it switches to {nav Browse} mode.
Dragging multiple items is supported but only the first item is opened.

BUG: 169408
FIXED-IN: 18.08.0

{F5781556}

Test Plan:
Test with different image formats, as well as unsupported format (Gwenview
should display a nice error).
Test with folder (with and without images within).
{nav Browse} mode and the {nav Thumbnail Bar} drag drop should work as before.
Drop operations should not be accepted anywhere else in the GUI where they aren't
already supported. In other words, this should only add drop functionality to the
{nav View} viewport.

Ensure drops are only accepted for URL mimetypes (e.g. ignore text).

Reviewers: #gwenview, rkflx, ngraham

Reviewed By: #gwenview, rkflx

Tags: #gwenview

Differential Revision: https://phabricator.kde.org/D11879
parent ed455f74
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment