mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
fix deprecated warning int QWheelEvent::delta() const
Use angleDelta() instead and .y();
This commit is contained in:
committed by
Laurent Trinques
parent
2241343fba
commit
ca2e737df3
@@ -511,7 +511,7 @@ qreal TitleBlockTemplateView::templateHeight() const {
|
||||
void TitleBlockTemplateView::wheelEvent(QWheelEvent *e) {
|
||||
// si la touche Ctrl est enfoncee, on zoome / dezoome
|
||||
if (e -> modifiers() & Qt::ControlModifier) {
|
||||
if (e -> delta() > 0) {
|
||||
if (e -> angleDelta().y() > 0) {
|
||||
zoomIn();
|
||||
} else {
|
||||
zoomOut();
|
||||
|
||||
Reference in New Issue
Block a user