diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-12-08 17:08:06 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-12-08 17:08:06 +0000 |
commit | 710194c1cc6399878eadda84c23f7a52e7baa879 (patch) | |
tree | 68d081a12b2b0a6ab23e29b11443247e04f0a318 /textedit.cpp | |
parent | updated TODO (diff) | |
download | gpg4usb-710194c1cc6399878eadda84c23f7a52e7baa879.tar.gz gpg4usb-710194c1cc6399878eadda84c23f7a52e7baa879.zip |
added zoom in/out to textedit
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@677 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'textedit.cpp')
-rw-r--r-- | textedit.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/textedit.cpp b/textedit.cpp index f69715b..b3b9f58 100644 --- a/textedit.cpp +++ b/textedit.cpp @@ -497,6 +497,24 @@ void TextEdit::redo() curTextPage()->redo(); } +void TextEdit::zoomIn() +{ + if (tabWidget->count() == 0 || curTextPage() == 0) { + return; + } + + curTextPage()->zoomIn(); +} + +void TextEdit::zoomOut() +{ + if (tabWidget->count() == 0 || curTextPage() == 0) { + return; + } + + curTextPage()->zoomOut(); +} + void TextEdit::selectAll() { if (tabWidget->count() == 0 || curTextPage() == 0) { |