I'll give up, I don't know why wheel events are not passed over to this widget as native events. Fortunately they are not needed, since the Nel style 3d mouse listener doesn't use them.

--HG--
branch : gsoc2013-dfighter
hg/feature/gsoc2013-dfighter
dfighter1985 12 years ago
parent 42bf13dcfd
commit 6d31a50f5d

@ -77,22 +77,12 @@ namespace MaterialEditor
update();
}
void ViewPortWidget::wheelEvent( QWheelEvent *evnt )
{
QWidget::wheelEvent( evnt );
}
#if defined( NL_OS_WINDOWS )
typedef bool ( *winProc )( NL3D::IDriver *driver, HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam );
bool ViewPortWidget::winEvent( MSG *message, long *result )
{
if( message->message == WM_MOUSEWHEEL )
{
printf( "" );
}
NL3D::UDriver *udriver = nl3dIface->getDriver();
if( ( udriver != NULL ) && udriver->isActive() )
{

@ -46,8 +46,6 @@ namespace MaterialEditor
void timerEvent( QTimerEvent *evnt );
void wheelEvent( QWheelEvent *evnt );
#if defined ( NL_OS_WINDOWS )
bool winEvent( MSG *message, long *result );
#elif defined( NL_OS_MAC )

Loading…
Cancel
Save