diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-12-29 01:11:10 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-12-29 01:11:10 +0000 |
commit | b5afea68df165c93a3ce317ca6f9e224242fa197 (patch) | |
tree | efa281997da20526dfde8814c7587023dcded965 /textedit.cpp | |
parent | enable copy on help (diff) | |
download | gpg4usb-b5afea68df165c93a3ce317ca6f9e224242fa197.tar.gz gpg4usb-b5afea68df165c93a3ce317ca6f9e224242fa197.zip |
enable zoom for help
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@720 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'textedit.cpp')
-rw-r--r-- | textedit.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
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() |