MCPcopy Create free account
hub / github.com/cloose/CuteMarkEd / createActions

Method createActions

app-static/htmlpreviewcontroller.cpp:43–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void 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
58QAction *HtmlPreviewController::createAction(const QString &text, const QKeySequence &shortcut)
59{

Callers

nothing calls this directly

Calls 1

trFunction · 0.85

Tested by

no test coverage detected