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:
parent
23282ac23d
commit
bb5171fb54
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user