mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 08:40:53 +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) {
|
void TitleBlockTemplateView::wheelEvent(QWheelEvent *e) {
|
||||||
// si la touche Ctrl est enfoncee, on zoome / dezoome
|
// si la touche Ctrl est enfoncee, on zoome / dezoome
|
||||||
if (e -> modifiers() & Qt::ControlModifier) {
|
if (e -> modifiers() & Qt::ControlModifier) {
|
||||||
if (e -> delta() > 0) {
|
if (e -> angleDelta().y() > 0) {
|
||||||
zoomIn();
|
zoomIn();
|
||||||
} else {
|
} else {
|
||||||
zoomOut();
|
zoomOut();
|
||||||
|
|||||||
Reference in New Issue
Block a user