Changeset View
Changeset View
Standalone View
Standalone View
src/views/draganddrophelper.h
Show All 35 Lines | 34 | public: | |||
---|---|---|---|---|---|
36 | * Handles the dropping of URLs to the given destination. A context menu | 36 | * Handles the dropping of URLs to the given destination. A context menu | ||
37 | * with the options 'Move Here', 'Copy Here', 'Link Here' and 'Cancel' is | 37 | * with the options 'Move Here', 'Copy Here', 'Link Here' and 'Cancel' is | ||
38 | * offered to the user. The drag destination must represent a directory or | 38 | * offered to the user. The drag destination must represent a directory or | ||
39 | * a desktop-file, otherwise the dropping gets ignored. | 39 | * a desktop-file, otherwise the dropping gets ignored. | ||
40 | * | 40 | * | ||
41 | * @param destUrl URL of the item destination. Is used only if destItem::isNull() | 41 | * @param destUrl URL of the item destination. Is used only if destItem::isNull() | ||
42 | * is true. | 42 | * is true. | ||
43 | * @param event Drop event. | 43 | * @param event Drop event. | ||
44 | * @param window Associated widget. | 44 | * @param window Widget where the drop happened, will be used as parent of the drop menu. | ||
45 | * @return KIO::DropJob pointer | 45 | * @return KIO::DropJob pointer | ||
46 | */ | 46 | */ | ||
47 | static KIO::DropJob* dropUrls(const QUrl& destUrl, | 47 | static KIO::DropJob* dropUrls(const QUrl& destUrl, | ||
48 | QDropEvent* event, | 48 | QDropEvent* event, | ||
49 | QWidget *window); | 49 | QWidget *window); | ||
50 | }; | 50 | }; | ||
51 | 51 | | |||
52 | #endif | 52 | #endif |