mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-01-13 13:32:53 +08:00
fix: the PageUp and PageDown key is disabled
This commit is contained in:
parent
a641d44e5a
commit
1801609c06
@ -1274,20 +1274,32 @@ namespace pv
|
||||
break;
|
||||
|
||||
case Qt::Key_PageUp:
|
||||
#ifdef _WIN32
|
||||
case 33:
|
||||
#endif
|
||||
_view->set_scale_offset(_view->scale(),
|
||||
_view->offset() - _view->get_view_width());
|
||||
break;
|
||||
case Qt::Key_PageDown:
|
||||
#ifdef _WIN32
|
||||
case 34:
|
||||
#endif
|
||||
_view->set_scale_offset(_view->scale(),
|
||||
_view->offset() + _view->get_view_width());
|
||||
|
||||
break;
|
||||
|
||||
case Qt::Key_Left:
|
||||
#ifdef _WIN32
|
||||
case 37:
|
||||
#endif
|
||||
_view->zoom(1);
|
||||
break;
|
||||
|
||||
case Qt::Key_Right:
|
||||
#ifdef _WIN32
|
||||
case 39:
|
||||
#endif
|
||||
_view->zoom(-1);
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user