aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/basetexteditor.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-08-19 16:00:58 +0200
committerhjk <hjk121@nokiamail.com>2014-08-27 17:06:24 +0200
commit8d74fdd6d418bbcff33f34dd2a87a29e28eddb8d (patch)
treee98579594a5ce29cb96d8632a525d80dcaa160a8 /src/plugins/texteditor/basetexteditor.cpp
parente9f7625a0b4b98da8fe7edc45a78f287d84f3cb0 (diff)
TextEditor: C++-ify texteditoractionhandler
Macros are not necessary here. Change-Id: I19e5c38e64f1b7f254c1fcb33d891e02704e3657 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Diffstat (limited to 'src/plugins/texteditor/basetexteditor.cpp')
-rw-r--r--src/plugins/texteditor/basetexteditor.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp
index c43d8ea430..84b6a2f3cc 100644
--- a/src/plugins/texteditor/basetexteditor.cpp
+++ b/src/plugins/texteditor/basetexteditor.cpp
@@ -5300,15 +5300,16 @@ void BaseTextEditorWidget::wheelEvent(QWheelEvent *e)
QPlainTextEdit::wheelEvent(e);
}
-void BaseTextEditorWidget::zoomIn(int range)
+void BaseTextEditorWidget::zoomIn()
{
d->clearVisibleFoldedBlock();
- emit requestFontZoom(range*10);
+ emit requestFontZoom(10);
}
-void BaseTextEditorWidget::zoomOut(int range)
+void BaseTextEditorWidget::zoomOut()
{
- zoomIn(-range);
+ d->clearVisibleFoldedBlock();
+ emit requestFontZoom(-10);
}
void BaseTextEditorWidget::zoomReset()