Remove unused virtual method QWindowPrivate::allowClickThrough

Always returned true, also in the QWidgetWindowPrivate override.

Change-Id: I01d11ae6f85882b52ce397125f994eea663ffcb5
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Volker Hilsheimer 2020-07-06 21:54:36 +02:00
parent 23282ac23d
commit bb5171fb54
3 changed files with 0 additions and 11 deletions

View File

@ -129,9 +129,6 @@ public:
static Qt::WindowState effectiveState(Qt::WindowStates);
// ### Qt6: unused
virtual bool allowClickThrough(const QPoint &) const { return true; }
QWindow::SurfaceType surfaceType = QWindow::RasterSurface;
Qt::WindowFlags windowFlags = Qt::Window;
QWindow *parentWindow = nullptr;

View File

@ -225,8 +225,6 @@
QPointF windowPoint;
QPointF screenPoint;
[self convertFromScreen:[NSEvent mouseLocation] toWindowPoint: &windowPoint andScreenPoint: &screenPoint];
if (!qt_window_private(m_platformWindow->window())->allowClickThrough(screenPoint.toPoint()))
return NO;
return YES;
}

View File

@ -115,7 +115,6 @@ public:
if (QWidget *widget = q->widget())
QWidgetPrivate::get(widget)->updateContentsRect();
}
bool allowClickThrough(const QPoint &) const override;
};
QRectF QWidgetWindowPrivate::closestAcceptableGeometry(const QRectF &rect) const
@ -231,11 +230,6 @@ static inline bool shouldBePropagatedToWidget(QEvent *event)
}
}
bool QWidgetWindowPrivate::allowClickThrough(const QPoint &) const
{
return true;
}
bool QWidgetWindow::event(QEvent *event)
{
if (!m_widget)