mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-08-31 12:17:51 -04:00
FramelessWindowResizer: Enable child tracking for QWebEngineView.
This commit is contained in:
parent
b340b92a04
commit
83bff3e847
@ -39,8 +39,13 @@ FramelessWindowResizer::FramelessWindowResizer(QWidget *widget) :
|
||||
void FramelessWindowResizer::enableChildMouseTracking()
|
||||
{
|
||||
QList<QWidget *> widgets = m_widget->findChildren<QWidget *>();
|
||||
for (auto widget : widgets) {
|
||||
for (auto widget : widgets)
|
||||
{
|
||||
widget->setMouseTracking(true);
|
||||
// For QWebEngineView
|
||||
if (widget->focusProxy()) {
|
||||
widget->focusProxy()->installEventFilter(this);
|
||||
}
|
||||
}
|
||||
// QTableWidgets don't send us mouseMoveEvents for some unknown reason
|
||||
// so install an event filter on their viewport
|
||||
|
Loading…
x
Reference in New Issue
Block a user