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 --- mainwindow.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'mainwindow.cpp') 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); -- cgit v1.2.3