digiKam
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  * Copyright (C) 2010-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2010 by Michael G. Hansen <mike at mghansen dot de>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_GPS_ITEM_LIST_DRAG_DROP_HANDLER_H
26 #define DIGIKAM_GPS_ITEM_LIST_DRAG_DROP_HANDLER_H
27 
28 // Qt includes
29 
30 #include <QTreeView>
31 
32 // Local includes
33 
34 #include "mapdragdrophandler.h"
35 #include "digikam_export.h"
36 
37 namespace Digikam
38 {
39 
40 class DIGIKAM_EXPORT ItemListDragDropHandler : public QObject
41 {
42  Q_OBJECT
43 
44 public:
45 
46  explicit ItemListDragDropHandler(QObject* const parent = nullptr);
47  ~ItemListDragDropHandler() override;
48 
49  virtual QMimeData* createMimeData(const QList<QPersistentModelIndex>& modelIndices) = 0;
50 };
51 
52 // -------------------------------------------------------------------------------------------------
53 
55 {
56  Q_OBJECT
57 
58 public:
59 
60  explicit GPSItemListDragDropHandler(QObject* const parent = nullptr);
61  ~GPSItemListDragDropHandler() override;
62 
63  QMimeData* createMimeData(const QList<QPersistentModelIndex>& modelIndices) override;
64 };
65 
66 } // namespace Digikam
67 
68 #endif // DIGIKAM_GPS_ITEM_LIST_DRAG_DROP_HANDLER_H
Definition: gpsitemlistdragdrophandler.h:55
Definition: gpsitemlistdragdrophandler.h:41
virtual QMimeData * createMimeData(const QList< QPersistentModelIndex > &modelIndices)=0
Definition: datefolderview.cpp:43