aboutsummaryrefslogtreecommitdiffstats
path: root/textedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'textedit.cpp')
-rw-r--r--textedit.cpp18
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) {