Commit d723bb14 authored by Volker Krause's avatar Volker Krause
Browse files

QDrag only needs a parent object, not a widget

parent b0030779
Pipeline #155027 passed with stage
in 1 minute and 55 seconds
......@@ -203,7 +203,7 @@ QMimeData *CalendarSupport::createMimeData(const Akonadi::Item &item)
}
#ifndef QT_NO_DRAGANDDROP
QDrag *CalendarSupport::createDrag(const Akonadi::Item &item, QWidget *parent)
QDrag *CalendarSupport::createDrag(const Akonadi::Item &item, QObject *parent)
{
return createDrag(Akonadi::Item::List() << item, parent);
}
......@@ -231,7 +231,7 @@ static QByteArray findMostCommonType(const Akonadi::Item::List &items)
}
#ifndef QT_NO_DRAGANDDROP
QDrag *CalendarSupport::createDrag(const Akonadi::Item::List &items, QWidget *parent)
QDrag *CalendarSupport::createDrag(const Akonadi::Item::List &items, QObject *parent)
{
std::unique_ptr<QDrag> drag(new QDrag(parent));
drag->setMimeData(CalendarSupport::createMimeData(items));
......
......@@ -152,12 +152,12 @@ CALENDARSUPPORT_EXPORT QMimeData *createMimeData(const Akonadi::Item::List &item
/**
* creates a drag object for dragging an akonadi item containing an incidence
*/
CALENDARSUPPORT_EXPORT QDrag *createDrag(const Akonadi::Item &item, QWidget *parent);
CALENDARSUPPORT_EXPORT QDrag *createDrag(const Akonadi::Item &item, QObject *parent);
/**
* creates a drag object for dragging akonadi items containing an incidence
*/
CALENDARSUPPORT_EXPORT QDrag *createDrag(const Akonadi::Item::List &items, QWidget *parent);
CALENDARSUPPORT_EXPORT QDrag *createDrag(const Akonadi::Item::List &items, QObject *parent);
#endif
/**
Applies a filter to a list of items containing incidences.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment