From b5afea68df165c93a3ce317ca6f9e224242fa197 Mon Sep 17 00:00:00 2001 From: ubbo Date: Thu, 29 Dec 2011 01:11:10 +0000 Subject: enable zoom for help git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@720 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- textedit.cpp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'textedit.cpp') diff --git a/textedit.cpp b/textedit.cpp index 49c9b6d..de7f54c 100644 --- a/textedit.cpp +++ b/textedit.cpp @@ -518,20 +518,29 @@ void TextEdit::redo() void TextEdit::zoomIn() { - if (tabWidget->count() == 0 || curTextPage() == 0) { + if (tabWidget->count() == 0 ) { return; } - curTextPage()->zoomIn(); + if(curTextPage() != 0) { + curTextPage()->zoomIn(); + } else { + curHelpPage()->zoomIn(); + } + } void TextEdit::zoomOut() { - if (tabWidget->count() == 0 || curTextPage() == 0) { + if (tabWidget->count() == 0 ) { return; } - curTextPage()->zoomOut(); + if(curTextPage() != 0) { + curTextPage()->zoomOut(); + } else { + curHelpPage()->zoomOut(); + } } void TextEdit::selectAll() -- cgit v1.2.3