digiKam
Loading...
Searching...
No Matches
gpsitemlistdragdrophandler.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 : 2010-03-22
7 * Description : Drag and drop handler for the item list
8 *
9 * SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 * SPDX-FileCopyrightText: 2010 by Michael G. Hansen <mike at mghansen dot de>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Qt includes
19
20#include <QTreeView>
21
22// Local includes
23
24#include "mapdragdrophandler.h"
25#include "digikam_export.h"
26
27namespace Digikam
28{
29
30class DIGIKAM_EXPORT ItemListDragDropHandler : public QObject
31{
32 Q_OBJECT
33
34public:
35
36 explicit ItemListDragDropHandler(QObject* const parent = nullptr);
37 ~ItemListDragDropHandler() override = default;
38
39 virtual QMimeData* createMimeData(const QList<QPersistentModelIndex>& modelIndices) = 0;
40};
41
42// -------------------------------------------------------------------------------------------------
43
45{
46 Q_OBJECT
47
48public:
49
50 explicit GPSItemListDragDropHandler(QObject* const parent = nullptr);
51 ~GPSItemListDragDropHandler() override = default;
52
53 QMimeData* createMimeData(const QList<QPersistentModelIndex>& modelIndices) override;
54};
55
56} // namespace Digikam
Definition gpsitemlistdragdrophandler.h:45
~GPSItemListDragDropHandler() override=default
Definition gpsitemlistdragdrophandler.h:31
~ItemListDragDropHandler() override=default
virtual QMimeData * createMimeData(const QList< QPersistentModelIndex > &modelIndices)=0
Definition datefolderview.cpp:34