| 41 | } |
| 42 | |
| 43 | void HtmlPreviewController::createActions() |
| 44 | { |
| 45 | zoomInAction = createAction(tr("Zoom &In"), QKeySequence(Qt::CTRL | Qt::Key_Plus)); |
| 46 | connect(zoomInAction, SIGNAL(triggered()), |
| 47 | this, SLOT(zoomInView())); |
| 48 | |
| 49 | zoomOutAction = createAction(tr("Zoom &Out"), QKeySequence(Qt::CTRL | Qt::Key_Minus)); |
| 50 | connect(zoomOutAction, SIGNAL(triggered()), |
| 51 | this, SLOT(zoomOutView())); |
| 52 | |
| 53 | zoomResetAction = createAction(tr("Reset &Zoom"), QKeySequence(Qt::CTRL | Qt::Key_0)); |
| 54 | connect(zoomResetAction, SIGNAL(triggered()), |
| 55 | this, SLOT(resetZoomOfView())); |
| 56 | } |
| 57 | |
| 58 | QAction *HtmlPreviewController::createAction(const QString &text, const QKeySequence &shortcut) |
| 59 | { |