TextEditor: C++-ify texteditoractionhandler

Macros are not necessary here.

Change-Id: I19e5c38e64f1b7f254c1fcb33d891e02704e3657
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
hjk
2014-08-19 16:00:58 +02:00
parent e9f7625a0b
commit 8d74fdd6d4
3 changed files with 176 additions and 323 deletions

View File

@@ -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()