File indexing completed on 2025-01-05 03:58:31
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2010-03-22 0007 * Description : Drag and drop handler for the item list 0008 * 0009 * SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * SPDX-FileCopyrightText: 2010 by Michael G. Hansen <mike at mghansen dot de> 0011 * 0012 * SPDX-License-Identifier: GPL-2.0-or-later 0013 * 0014 * ============================================================ */ 0015 0016 #include "gpsitemlistdragdrophandler.h" 0017 0018 namespace Digikam 0019 { 0020 0021 ItemListDragDropHandler::ItemListDragDropHandler(QObject* const parent) 0022 : QObject(parent) 0023 { 0024 } 0025 0026 ItemListDragDropHandler::~ItemListDragDropHandler() 0027 { 0028 } 0029 0030 // ------------------------------------------------------------------------------------------------ 0031 0032 GPSItemListDragDropHandler::GPSItemListDragDropHandler(QObject* const parent) 0033 : ItemListDragDropHandler(parent) 0034 { 0035 } 0036 0037 GPSItemListDragDropHandler::~GPSItemListDragDropHandler() 0038 { 0039 } 0040 0041 QMimeData* GPSItemListDragDropHandler::createMimeData(const QList<QPersistentModelIndex>& modelIndices) 0042 { 0043 MapDragData* const mimeData = new MapDragData(); 0044 mimeData->draggedIndices = modelIndices; 0045 0046 return mimeData; 0047 } 0048 0049 } // namespace Digikam 0050 0051 #include "moc_gpsitemlistdragdrophandler.cpp"