diff options
Diffstat (limited to 'src/editor.cc')
-rw-r--r-- | src/editor.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/editor.cc b/src/editor.cc index f237c2e..5282677 100644 --- a/src/editor.cc +++ b/src/editor.cc @@ -97,4 +97,14 @@ void Editor::zoomOut() this->setFont( tmp_font ); } +void Editor::wheelEvent ( QWheelEvent * event ) +{ + if (event->modifiers() == Qt::ControlModifier) { + if (event->delta() > 0 ) + zoomIn(); + else if (event->delta() < 0 ) + zoomOut(); + } +} + #endif |