Commit 3bb130bf authored by Davide Gianforte's avatar Davide Gianforte

replace deprecated QWheelEvent::delta

parent a77ceb07
......@@ -748,7 +748,7 @@ void ListerTextArea::mouseMoveEvent(QMouseEvent * e)
void ListerTextArea::wheelEvent(QWheelEvent * e)
{
int delta = e->delta();
int delta = e->angleDelta().y();
if (delta) {
// zooming
......
......@@ -301,7 +301,7 @@ bool KrMouseHandler::wheelEvent(QWheelEvent *e)
_view->op()->emitNeedFocus();
if (e->modifiers() == Qt::ControlModifier) {
if (e->delta() > 0) {
if (e->angleDelta().y() > 0) {
_view->zoomIn();
} else {
_view->zoomOut();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment