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

Method HtmlPreviewController

app-static/htmlpreviewcontroller.cpp:26–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24static const qreal ZOOM_CHANGE_VALUE = 0.1;
25
26HtmlPreviewController::HtmlPreviewController(QWebView *view, QObject *parent) :
27 QObject(parent),
28 view(view),
29 zoomInAction(0),
30 zoomOutAction(0),
31 zoomResetAction(0),
32 diskCache(new QNetworkDiskCache(this))
33{
34 createActions();
35 registerActionsWithView();
36
37 // use registered actions as custom context menu
38 view->setContextMenuPolicy(Qt::ActionsContextMenu);
39
40 setupNetworkDiskCache();
41}
42
43void HtmlPreviewController::createActions()
44{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected