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:
Matthew Griffin
2019-09-13 13:17:27 +01:00
committed by Vadim Zeitlin
parent 631ce0e380
commit 2c91463c81
2 changed files with 1 additions and 2 deletions

View File

@@ -319,8 +319,6 @@ bool wxWindowQt::Create( wxWindowQt * parent, wxWindowID id, const wxPoint & pos
m_qtWindow = new wxQtWidget( parent, this );
}
GetHandle()->setMouseTracking(true);
if ( !wxWindowBase::CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
return false;