Enable mouse tracking on construction of every wxQt widget
Not all controls use wxWindow::Create(), so move setMouseTracking() call where it is always executed. Closes https://github.com/wxWidgets/wxWidgets/pull/1528
This commit is contained in:
committed by
Vadim Zeitlin
parent
631ce0e380
commit
2c91463c81
@@ -61,6 +61,7 @@ public:
|
|||||||
QObject::connect( this, &QObject::destroyed, this,
|
QObject::connect( this, &QObject::destroyed, this,
|
||||||
&wxQtEventSignalHandler::HandleDestroyedSignal );
|
&wxQtEventSignalHandler::HandleDestroyedSignal );
|
||||||
|
|
||||||
|
Widget::setMouseTracking(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HandleDestroyedSignal()
|
void HandleDestroyedSignal()
|
||||||
|
@@ -319,8 +319,6 @@ bool wxWindowQt::Create( wxWindowQt * parent, wxWindowID id, const wxPoint & pos
|
|||||||
m_qtWindow = new wxQtWidget( parent, this );
|
m_qtWindow = new wxQtWidget( parent, this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
GetHandle()->setMouseTracking(true);
|
|
||||||
if ( !wxWindowBase::CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
|
if ( !wxWindowBase::CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user