digiKam
Loading...
Searching...
No Matches
showfotodragdrophandler.h
Go to the documentation of this file.
1/* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2014-01-28
7 * Description : drag and drop handling for Showfoto
8 *
9 * SPDX-FileCopyrightText: 2014 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// KDE includes
18
19#include <QMenu>
20
21// Local includes
22
24#include "showfotoitemmodel.h"
25#include "ddragobjects.h"
26
27namespace ShowFoto
28{
29
31{
32 Q_OBJECT
33
34public:
35
37
38 ShowfotoItemModel* model() const;
39
40 bool dropEvent(QAbstractItemView* view, const QDropEvent* e, const QModelIndex& droppedOn) override;
41 Qt::DropAction accepts(const QDropEvent* e, const QModelIndex& dropIndex) override;
42 QStringList mimeTypes() const override;
43 QMimeData* createMimeData(const QList<QModelIndex>&) override;
44
45Q_SIGNALS:
46
47 void signalDroppedUrls(const QList<QUrl>& droppedUrls, bool dropped, const QUrl& current);
48
49private:
50
51 QAction* addGroupAction(QMenu* const menu);
52 QAction* addCancelAction(QMenu* const menu);
53};
54
55} // namespace Showfoto
Definition abstractitemdragdrophandler.h:32
Definition showfotodragdrophandler.h:31
void signalDroppedUrls(const QList< QUrl > &droppedUrls, bool dropped, const QUrl &current)
Qt::DropAction accepts(const QDropEvent *e, const QModelIndex &dropIndex) override
Definition showfotodragdrophandler.cpp:68
bool dropEvent(QAbstractItemView *view, const QDropEvent *e, const QModelIndex &droppedOn) override
Definition showfotodragdrophandler.cpp:52
QMimeData * createMimeData(const QList< QModelIndex > &) override
Definition showfotodragdrophandler.cpp:86
QStringList mimeTypes() const override
Definition showfotodragdrophandler.cpp:78
ShowfotoItemModel * model() const
Definition showfotodragdrophandler.cpp:108
Definition showfotoitemmodel.h:37
Definition showfotofolderviewbar.cpp:43