summaryrefslogtreecommitdiff
path: root/src/editor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/editor.cc')
-rw-r--r--src/editor.cc10
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
contact: Jan Huwald // Impressum