From 710194c1cc6399878eadda84c23f7a52e7baa879 Mon Sep 17 00:00:00 2001 From: nils Date: Thu, 8 Dec 2011 17:08:06 +0000 Subject: added zoom in/out to textedit git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@677 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- textedit.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'textedit.cpp') 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) { -- cgit v1.2.3