digiKam
Loading...
Searching...
No Matches
albumdragdrop.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 : 2009-04-16
7 * Description : Qt Model for Albums - drag and drop handling
8 *
9 * SPDX-FileCopyrightText: 2009-2011 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10 * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Local includes
19
21#include "albummodel.h"
22
23namespace Digikam
24{
25
27{
28 Q_OBJECT
29
30public:
31
32 explicit AlbumDragDropHandler(AlbumModel* const model);
33
34 AlbumModel* model() const;
35
36 bool dropEvent(QAbstractItemView* view,
37 const QDropEvent* e,
38 const QModelIndex& droppedOn) override;
39
40 Qt::DropAction accepts(const QDropEvent* e,
41 const QModelIndex& dropIndex) override;
42
43 QStringList mimeTypes() const override;
44 QMimeData* createMimeData(const QList<Album*>&) override;
45};
46
47} // namespace Digikam
Definition albumdragdrop.h:27
QMimeData * createMimeData(const QList< Album * > &) override
Definition albumdragdrop.cpp:457
QStringList mimeTypes() const override
Definition albumdragdrop.cpp:445
Qt::DropAction accepts(const QDropEvent *e, const QModelIndex &dropIndex) override
Definition albumdragdrop.cpp:385
bool dropEvent(QAbstractItemView *view, const QDropEvent *e, const QModelIndex &droppedOn) override
Definition albumdragdrop.cpp:55
AlbumModel * model() const
Definition albumdragdrop.cpp:50
Definition albummodeldragdrophandler.h:29
Definition albummodel.h:30
Definition datefolderview.cpp:34