wasm: make rasterwindow use non-deprecated API

Pick-to: 6.3
Change-Id: I17f2c9517cb8b8e7103fc40068580f953ceb6aff
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
This commit is contained in:
Morten Johan Sørvig 2022-01-11 16:10:12 +01:00
parent 69555b364d
commit d99e8d96b6

View File

@ -101,7 +101,7 @@ void RasterWindow::paintEvent(QPaintEvent * event)
}
void RasterWindow::exposeEvent(QExposeEvent * ev)
{
qDebug() << __PRETTY_FUNCTION__ << ev->region();
qDebug() << __PRETTY_FUNCTION__;
QRasterWindow::exposeEvent(ev);
incrementEventCount();
}
@ -155,8 +155,8 @@ void RasterWindow::mouseMoveEvent(QMouseEvent * ev)
incrementEventCount();
if (m_pressed)
m_offset += ev->localPos().toPoint() - m_lastPos;
m_lastPos = ev->localPos().toPoint();
m_offset += ev->position().toPoint() - m_lastPos;
m_lastPos = ev->position().toPoint();
}
void RasterWindow::mousePressEvent(QMouseEvent * ev)