| 24 | static const qreal ZOOM_CHANGE_VALUE = 0.1; |
| 25 | |
| 26 | HtmlPreviewController::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 | |
| 43 | void HtmlPreviewController::createActions() |
| 44 | { |
nothing calls this directly
no outgoing calls
no test coverage detected