From ae3b9042c96f195500cb9e89b21a9e8f5d70345a Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 12 Jan 2016 12:22:01 +0100 Subject: [PATCH] Editor: Use internal zoom functions. Task-number: QTCREATORBUG-15609 Task-number: QTCREATORBUG-15608 Change-Id: I133ddbbb55cd5b876daed9e33c7a93b07e2d2e38 Reviewed-by: Robert Loehning Reviewed-by: Eike Ziller --- src/plugins/texteditor/texteditoractionhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/texteditor/texteditoractionhandler.cpp b/src/plugins/texteditor/texteditoractionhandler.cpp index c61d5b79c81..b30e9cbe4b7 100644 --- a/src/plugins/texteditor/texteditoractionhandler.cpp +++ b/src/plugins/texteditor/texteditoractionhandler.cpp @@ -429,11 +429,11 @@ void TextEditorActionHandlerPrivate::createActions() QKeySequence(), G_EDIT_COLLAPSING, advancedEditMenu); m_increaseFontSizeAction = registerAction(INCREASE_FONT_SIZE, - [this] (TextEditorWidget *w) { w->zoomIn(); }, false, tr("Increase Font Size"), + [this] (TextEditorWidget *w) { w->zoomF(1.f); }, false, tr("Increase Font Size"), QKeySequence(tr("Ctrl++")), G_EDIT_FONT, advancedEditMenu); m_decreaseFontSizeAction = registerAction(DECREASE_FONT_SIZE, - [this] (TextEditorWidget *w) { w->zoomOut(); }, false, tr("Decrease Font Size"), + [this] (TextEditorWidget *w) { w->zoomF(-1.f); }, false, tr("Decrease Font Size"), QKeySequence(tr("Ctrl+-")), G_EDIT_FONT, advancedEditMenu); m_resetFontSizeAction = registerAction(RESET_FONT_SIZE,