hot fix zoom and scrolling

bug: was only zoom In
    (int QPoint::manhattanLength() const
    Returns the sum of the absolute values)
This commit is contained in:
Laurent Trinques
2020-06-14 14:29:59 +02:00
parent 39fba2702d
commit a8c2283cbe

View File

@@ -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 -> angleDelta().manhattanLength() > 0) {
if (e -> delta() > 0) {
zoomIn();
} else {
zoomOut();