Commit 8d74fdd6 authored by hjk's avatar hjk

TextEditor: C++-ify texteditoractionhandler

Macros are not necessary here.

Change-Id: I19e5c38e64f1b7f254c1fcb33d891e02704e3657
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent e9f7625a
......@@ -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()
......
......@@ -412,8 +412,8 @@ public slots:
void circularPaste();
void switchUtf8bom();
void zoomIn(int range = 1);
void zoomOut(int range = 1);
void zoomIn();
void zoomOut();
void zoomReset();
void cutLine();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment