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 /mainwindow.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 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 11 |
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); |