Skip to content
Snippets Groups Projects

Legge til støtte for zoom med CTRL + scroll

Merged Thomas Holene Løkkeborg requested to merge zoom-fiks into master
All threads resolved!
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -34,7 +34,7 @@ SCROLL_ZOOM_FACTOR = 1.1
class QGraphicsViewWithCtrlScrollListener(QGraphicsView):
"""QGraphicsView with support for scroll listener
"""QGraphicsView with support for scroll listener.
Catches wheelEvents and calls listener if CTRL was held.
"""
@@ -219,7 +219,7 @@ class InlineEditableSOIView(QScrollArea):
## Important note about QScrollArea superclass
This class was originally derived from QScrollArea for scrolling, but it
turns out QGrapihcsView has it's own scrolling. We are using
turns out QGraphicsView has it's own scrolling. We are using
QGraphicsView's scrolling instead. This class should probably inherit
directly from QGraphicsView, but because of time pressure we decided not
to refactor.
Loading