Remove empty function QWidgetPrivate::registerDropSite()
Apparently it is a left-over from Qt 4. Task-number: QTBUG-70240 Change-Id: I6b882728defef1ab78331b03e76459a7419cd386 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>bb10
parent
0aa27af801
commit
6764e7b020
|
|
@ -1580,9 +1580,6 @@ QWidget::~QWidget()
|
|||
d->gestureContext.clear();
|
||||
#endif
|
||||
|
||||
// force acceptDrops false before winId is destroyed.
|
||||
d->registerDropSite(false);
|
||||
|
||||
#ifndef QT_NO_ACTION
|
||||
// remove all actions from this widget
|
||||
for (int i = 0; i < d->actions.size(); ++i) {
|
||||
|
|
@ -3463,11 +3460,6 @@ void QWidget::setAcceptDrops(bool on)
|
|||
|
||||
}
|
||||
|
||||
void QWidgetPrivate::registerDropSite(bool on)
|
||||
{
|
||||
Q_UNUSED(on);
|
||||
}
|
||||
|
||||
/*!
|
||||
Disables widget input events if \a disable is true; otherwise
|
||||
enables input events.
|
||||
|
|
@ -11207,7 +11199,6 @@ void QWidget::setAttribute(Qt::WidgetAttribute attribute, bool on)
|
|||
break;
|
||||
}
|
||||
case Qt::WA_DropSiteRegistered: {
|
||||
d->registerDropSite(on);
|
||||
for (int i = 0; i < d->children.size(); ++i) {
|
||||
QWidget *w = qobject_cast<QWidget *>(d->children.at(i));
|
||||
if (w && !w->isWindow() && !w->testAttribute(Qt::WA_AcceptDrops) && w->testAttribute(Qt::WA_DropSiteRegistered) != on)
|
||||
|
|
|
|||
|
|
@ -483,7 +483,6 @@ public:
|
|||
void _q_showIfNotHidden();
|
||||
|
||||
void setEnabled_helper(bool);
|
||||
void registerDropSite(bool);
|
||||
static void adjustFlags(Qt::WindowFlags &flags, QWidget *w = 0);
|
||||
|
||||
void updateFrameStrut();
|
||||
|
|
|
|||
Loading…
Reference in New Issue