aboutsummaryrefslogtreecommitdiffstats
path: root/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r--mainwindow.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index e6242c0..58267ae 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -206,6 +206,14 @@ void MainWindow::createActions()
redoAct->setToolTip(tr("Redo Last Edit Action"));
connect(redoAct, SIGNAL(triggered()), edit, SLOT(redo()));
+ zoomInAct = new QAction(tr("Zoom In"), this);
+ zoomInAct->setShortcut(QKeySequence::ZoomIn);
+ connect(zoomInAct, SIGNAL(triggered()), edit, SLOT(zoomIn()));
+
+ zoomOutAct = new QAction(tr("Zoom Out"), this);
+ zoomOutAct->setShortcut(QKeySequence::ZoomOut);
+ connect(zoomOutAct, SIGNAL(triggered()), edit, SLOT(zoomOut()));
+
pasteAct = new QAction(tr("&Paste"), this);
pasteAct->setIcon(QIcon(iconPath + "button_paste.png"));
pasteAct->setShortcut(QKeySequence::Paste);
@@ -370,6 +378,9 @@ void MainWindow::createMenus()
editMenu->addAction(undoAct);
editMenu->addAction(redoAct);
editMenu->addSeparator();
+ editMenu->addAction(zoomInAct);
+ editMenu->addAction(zoomOutAct);
+ editMenu->addSeparator();
editMenu->addAction(copyAct);
editMenu->addAction(cutAct);
editMenu->addAction(pasteAct);